Improve ModelTypeEnum type (#3051)
This commit is contained in:
parent
e4f686deb7
commit
718ac3f83b
15 changed files with 47 additions and 44 deletions
|
|
@ -24,6 +24,7 @@ import {
|
|||
useModelList,
|
||||
useModelListAndDefaultModelAndCurrentProviderAndModel,
|
||||
} from '@/app/components/header/account-setting/model-provider-page/hooks'
|
||||
import { ModelTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'
|
||||
|
||||
const rowClass = `
|
||||
flex justify-between py-4 flex-wrap gap-y-2
|
||||
|
|
@ -63,8 +64,8 @@ const Form = () => {
|
|||
modelList: rerankModelList,
|
||||
defaultModel: rerankDefaultModel,
|
||||
currentModel: isRerankDefaultModelVaild,
|
||||
} = useModelListAndDefaultModelAndCurrentProviderAndModel(3)
|
||||
const { data: embeddingModelList } = useModelList(2)
|
||||
} = useModelListAndDefaultModelAndCurrentProviderAndModel(ModelTypeEnum.rerank)
|
||||
const { data: embeddingModelList } = useModelList(ModelTypeEnum.textEmbedding)
|
||||
|
||||
const handleSave = async () => {
|
||||
if (loading)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue