diff --git a/app/api/azure/[...path]/route.ts b/app/api/azure/[...path]/route.ts index 474ee761d..8cdaf2157 100644 --- a/app/api/azure/[...path]/route.ts +++ b/app/api/azure/[...path]/route.ts @@ -2,7 +2,6 @@ import { getServerSideConfig } from "@/app/config/server"; import { ModelProvider } from "@/app/constant"; import { prettyObject } from "@/app/utils/format"; import { NextRequest, NextResponse } from "next/server"; -import { NextApiResponse, NextApiRequest } from "next"; import { auth } from "../../auth"; import { requestOpenai } from "../../common"; diff --git a/app/components/chat.tsx b/app/components/chat.tsx index ac6e16944..a114ee5fe 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -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);