diff --git a/frontend/src/components/Modals/MangeWorkspace/Settings/ChatModelPreference/index.jsx b/frontend/src/components/Modals/MangeWorkspace/Settings/ChatModelPreference/index.jsx new file mode 100644 index 0000000000..ea03c09a96 --- /dev/null +++ b/frontend/src/components/Modals/MangeWorkspace/Settings/ChatModelPreference/index.jsx @@ -0,0 +1,120 @@ +import useGetProviderModels, { + DISABLED_PROVIDERS, +} from "./useGetProviderModels"; + +export default function ChatModelSelection({ + settings, + workspace, + setHasChanges, +}) { + const { defaultModels, customModels, loading } = useGetProviderModels( + settings?.LLMProvider + ); + if (DISABLED_PROVIDERS.includes(settings?.LLMProvider)) return null; + + if (loading) { + return ( +
+ The specific chat model that will be used for this workspace. If + empty, will use the system LLM preference. +
++ The specific chat model that will be used for this workspace. If + empty, will use the system LLM preference. +
+