diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 02331c66..d97361e7 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -126,7 +126,7 @@ const cn = { Model: "模型 (model)", Temperature: { Title: "随机性 (temperature)", - SubTitle: "值越大,回复越随机", + SubTitle: "值越大,回复越随机,大于 1 的值可能会导致乱码", }, MaxTokens: { Title: "单次回复限制 (max_tokens)", diff --git a/app/requests.ts b/app/requests.ts index 2bca67f7..ee3498c1 100644 --- a/app/requests.ts +++ b/app/requests.ts @@ -20,7 +20,11 @@ const makeRequestParam = ( sendMessages = sendMessages.filter((m) => m.role !== "assistant"); } - const modelConfig = useChatStore.getState().config.modelConfig; + const modelConfig = { ...useChatStore.getState().config.modelConfig }; + + // @yidadaa: wont send max_tokens, because it is nonsense for Muggles + // @ts-expect-error + delete modelConfig.max_tokens; return { messages: sendMessages,