mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-15 21:43:45 +08:00
feat: 修改插件模型版本限制
This commit is contained in:
@@ -577,7 +577,7 @@ export const useChatStore = create<ChatStore>()(
|
||||
api.llm.chat({
|
||||
messages: topicMessages,
|
||||
config: {
|
||||
model: "gpt-3.5-turbo-0613",
|
||||
model: "gpt-3.5-turbo",
|
||||
},
|
||||
onFinish(message) {
|
||||
get().updateCurrentSession(
|
||||
|
||||
@@ -39,7 +39,7 @@ export const DEFAULT_CONFIG = {
|
||||
models: DEFAULT_MODELS as any as LLMModel[],
|
||||
|
||||
modelConfig: {
|
||||
model: "gpt-3.5-turbo-0613" as ModelType,
|
||||
model: "gpt-3.5-turbo" as ModelType,
|
||||
temperature: 0.5,
|
||||
top_p: 1,
|
||||
max_tokens: 2000,
|
||||
|
||||
@@ -47,7 +47,7 @@ export const createEmptyMask = () =>
|
||||
lang: getLang(),
|
||||
builtin: false,
|
||||
createdAt: Date.now(),
|
||||
usePlugins: useAppConfig.getState().modelConfig.model.endsWith("0613"),
|
||||
usePlugins: !/03\d{2}$/.test(useAppConfig.getState().modelConfig.model),
|
||||
} as Mask);
|
||||
|
||||
export const useMaskStore = create<MaskStore>()(
|
||||
|
||||
Reference in New Issue
Block a user