From 41b4984de3d316bdbc179272e983224301d4e182 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 20 Mar 2024 11:00:12 +0800 Subject: [PATCH] :art: AI supports configuration randomness and context number https://github.com/siyuan-note/siyuan/issues/10660 --- app/src/config/ai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/config/ai.ts b/app/src/config/ai.ts index 8cc4a0f54..47f642e8d 100644 --- a/app/src/config/ai.ts +++ b/app/src/config/ai.ts @@ -190,7 +190,7 @@ export const ai = { apiKey: (ai.element.querySelector("#apiKey") as HTMLInputElement).value, apiModel: (ai.element.querySelector("#apiModel") as HTMLSelectElement).value, apiMaxTokens: parseInt((ai.element.querySelector("#apiMaxTokens") as HTMLInputElement).value), - apiTemperature: parseInt((ai.element.querySelector("#apiTemperature") as HTMLInputElement).value), + apiTemperature: parseFloat((ai.element.querySelector("#apiTemperature") as HTMLInputElement).value), apiProxy: (ai.element.querySelector("#apiProxy") as HTMLInputElement).value, apiTimeout: parseInt((ai.element.querySelector("#apiTimeout") as HTMLInputElement).value), apiProvider: (ai.element.querySelector("#apiProvider") as HTMLSelectElement).value,