This commit is contained in:
sijinhui
2024-07-12 11:37:33 +08:00
parent d3356f692e
commit 04ceade37a
2 changed files with 0 additions and 3 deletions

View File

@@ -472,11 +472,9 @@ export function ChatActions(props: {
// switch model
const currentModel = chatStore.currentSession().mask.modelConfig.model;
// 这里获取的不准确看起来没有什么地方可以更新这个providerName
const currentProviderName =
chatStore.currentSession().mask.modelConfig?.providerName ||
ServiceProvider.OpenAI;
console.log("222222222", currentModel, currentProviderName);
const allModels = useAllModels();
const models = useMemo(() => {
const filteredModels = allModels.filter((m) => m.available);