feat: 修改插件模型版本限制

This commit is contained in:
Hk-Gosuto
2023-08-21 23:55:08 +08:00
parent 609155b318
commit 987ddf5f0f
5 changed files with 11 additions and 8 deletions

View File

@@ -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(

View File

@@ -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,

View File

@@ -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>()(