mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-17 04:55:51 +00:00
🐛 fix: can't load custom provider config (#8880)
This commit is contained in:
@@ -7,11 +7,15 @@ import { Flexbox } from 'react-layout-kit';
|
||||
import Loading from '@/components/Loading/BrandTextLoading';
|
||||
import { useClientDataSWR } from '@/libs/swr';
|
||||
import { aiProviderService } from '@/services/aiProvider';
|
||||
import { useAiInfraStore } from '@/store/aiInfra';
|
||||
|
||||
import ModelList from '../../features/ModelList';
|
||||
import ProviderConfig from '../../features/ProviderConfig';
|
||||
|
||||
const ClientMode = memo<{ id: string }>(({ id }) => {
|
||||
const useFetchAiProviderItem = useAiInfraStore((s) => s.useFetchAiProviderItem);
|
||||
useFetchAiProviderItem(id);
|
||||
|
||||
const { data, isLoading } = useClientDataSWR('get-client-provider', () =>
|
||||
aiProviderService.getAiProviderById(id),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user