mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-11-30 02:08:37 +08:00
fix application model selector style (#360)
This commit is contained in:
parent
a66ef7210b
commit
e22814b291
@ -97,7 +97,7 @@ const ConifgModel: FC<IConifgModelProps> = ({
|
||||
key: 'max_tokens',
|
||||
tip: t('common.model.params.maxTokenTip'),
|
||||
step: 100,
|
||||
max: modelId === 'gpt-4' ? 8000 : 4000,
|
||||
max: (modelId === 'gpt-4' || modelId === 'gpt-3.5-turbo-16k') ? 8000 : 4000,
|
||||
},
|
||||
]
|
||||
|
||||
@ -215,11 +215,11 @@ const ConifgModel: FC<IConifgModelProps> = ({
|
||||
{!selectModelDisabled && <ChevronDownIcon className={cn(isShowOption && 'rotate-180', 'w-[14px] h-[14px] text-gray-500')} />}
|
||||
</div>
|
||||
{isShowOption && (
|
||||
<div className={cn(isChatApp ? 'w-[159px]' : 'w-[179px]', 'absolute right-0 bg-gray-50 rounded-lg shadow')}>
|
||||
<div className={cn(isChatApp ? 'min-w-[159px]' : 'w-[179px]', 'absolute right-0 bg-gray-50 rounded-lg shadow')}>
|
||||
{availableModels.map(item => (
|
||||
<div key={item.id} onClick={handleSelectModel(item.id)} className="flex items-center h-9 px-3 rounded-lg cursor-pointer hover:bg-gray-100">
|
||||
<ModelIcon className='mr-2' />
|
||||
<div className="text-sm gray-900">{item.name}</div>
|
||||
<ModelIcon className='shrink-0 mr-2' />
|
||||
<div className="text-sm gray-900 whitespace-nowrap">{item.name}</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user