Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: AI supports configuration randomness and context number https://github.com/siyuan-note/siyuan/issues/10660

Daniel41b4984de3d3
diff --git a/app/src/config/ai.ts b/app/src/config/ai.ts
index 8cc4a0f54a..47f642e8de 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,