mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-03 00:26:40 +08:00
merge
This commit is contained in:
parent
d3356f692e
commit
04ceade37a
@ -2,7 +2,6 @@ import { getServerSideConfig } from "@/app/config/server";
|
|||||||
import { ModelProvider } from "@/app/constant";
|
import { ModelProvider } from "@/app/constant";
|
||||||
import { prettyObject } from "@/app/utils/format";
|
import { prettyObject } from "@/app/utils/format";
|
||||||
import { NextRequest, NextResponse } from "next/server";
|
import { NextRequest, NextResponse } from "next/server";
|
||||||
import { NextApiResponse, NextApiRequest } from "next";
|
|
||||||
import { auth } from "../../auth";
|
import { auth } from "../../auth";
|
||||||
import { requestOpenai } from "../../common";
|
import { requestOpenai } from "../../common";
|
||||||
|
|
||||||
|
@ -472,11 +472,9 @@ export function ChatActions(props: {
|
|||||||
|
|
||||||
// switch model
|
// switch model
|
||||||
const currentModel = chatStore.currentSession().mask.modelConfig.model;
|
const currentModel = chatStore.currentSession().mask.modelConfig.model;
|
||||||
// 这里获取的不准确,看起来没有什么地方可以更新这个providerName
|
|
||||||
const currentProviderName =
|
const currentProviderName =
|
||||||
chatStore.currentSession().mask.modelConfig?.providerName ||
|
chatStore.currentSession().mask.modelConfig?.providerName ||
|
||||||
ServiceProvider.OpenAI;
|
ServiceProvider.OpenAI;
|
||||||
console.log("222222222", currentModel, currentProviderName);
|
|
||||||
const allModels = useAllModels();
|
const allModels = useAllModels();
|
||||||
const models = useMemo(() => {
|
const models = useMemo(() => {
|
||||||
const filteredModels = allModels.filter((m) => m.available);
|
const filteredModels = allModels.filter((m) => m.available);
|
||||||
|
Loading…
Reference in New Issue
Block a user