UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

16 lines (12 loc) 600 B
import { isDeprecatedEdition } from '@/const/version'; import { aiModelSelectors, useAiInfraStore } from '@/store/aiInfra'; import { useUserStore } from '@/store/user'; import { modelProviderSelectors } from '@/store/user/selectors'; export const useModelSupportToolUse = (model: string, provider: string) => { const newValue = useAiInfraStore(aiModelSelectors.isModelSupportToolUse(model, provider)); // TODO: remove this in V2.0 const oldValue = useUserStore(modelProviderSelectors.isModelEnabledFunctionCall(model)); if (isDeprecatedEdition) return oldValue; // return newValue; };