|
|
|
@ -60,7 +60,6 @@ import {
|
|
|
|
useModelListAndDefaultModelAndCurrentProviderAndModel,
|
|
|
|
useModelListAndDefaultModelAndCurrentProviderAndModel,
|
|
|
|
useTextGenerationCurrentProviderAndModelAndModelList,
|
|
|
|
useTextGenerationCurrentProviderAndModelAndModelList,
|
|
|
|
} from '@/app/components/header/account-setting/model-provider-page/hooks'
|
|
|
|
} from '@/app/components/header/account-setting/model-provider-page/hooks'
|
|
|
|
import { fetchCollectionList } from '@/service/tools'
|
|
|
|
|
|
|
|
import type { Collection } from '@/app/components/tools/types'
|
|
|
|
import type { Collection } from '@/app/components/tools/types'
|
|
|
|
import { useStore as useAppStore } from '@/app/components/app/store'
|
|
|
|
import { useStore as useAppStore } from '@/app/components/app/store'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
@ -521,7 +520,8 @@ const Configuration: FC = () => {
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
(async () => {
|
|
|
|
(async () => {
|
|
|
|
const collectionList = await fetchCollectionList()
|
|
|
|
// const collectionList = await fetchCollectionList()
|
|
|
|
|
|
|
|
const collectionList: any[] = [] // this api has problem in dev, so comment it for temporarily
|
|
|
|
if (basePath) {
|
|
|
|
if (basePath) {
|
|
|
|
collectionList.forEach((item) => {
|
|
|
|
collectionList.forEach((item) => {
|
|
|
|
if (typeof item.icon == 'string' && !item.icon.includes(basePath))
|
|
|
|
if (typeof item.icon == 'string' && !item.icon.includes(basePath))
|
|
|
|
@ -693,7 +693,6 @@ const Configuration: FC = () => {
|
|
|
|
setHasFetchedDetail(true)
|
|
|
|
setHasFetchedDetail(true)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})()
|
|
|
|
})()
|
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
|
|
|
|
}, [appId])
|
|
|
|
}, [appId])
|
|
|
|
|
|
|
|
|
|
|
|
const promptEmpty = (() => {
|
|
|
|
const promptEmpty = (() => {
|
|
|
|
|