Skip to content

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

:bug: Unable to set up Azure OpenAI Fix https://github.com/siyuan-note/siyuan/issues/10390

Danielf2182b5ef57e
diff --git a/app/src/config/ai.ts b/app/src/config/ai.ts
index bef14242b3..8285a68428 100644
--- a/app/src/config/ai.ts
+++ b/app/src/config/ai.ts
@@ -151,6 +151,7 @@ export const ai = {
apiMaxTokens: parseInt((ai.element.querySelector("#apiMaxTokens") 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,
}
}, response => {
window.siyuan.config.ai = response.data;