From 86801829215e8efd5f935eb8221b104a6456c177 Mon Sep 17 00:00:00 2001 From: river Date: Mon, 27 Jan 2025 12:48:59 +0800 Subject: [PATCH] feat: Add DeepSeek API key and fix MCP environment variable parsing --- .env.template | 6 ++++++ app/config/server.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.env.template b/.env.template index c0cd80c65..fd2f68df0 100644 --- a/.env.template +++ b/.env.template @@ -1,6 +1,11 @@ + + # Your openai api key. (required) OPENAI_API_KEY=sk-xxxx +# DeepSeek Api Key. (Optional) +DEEPSEEK_API_KEY= + # Access password, separated by comma. (optional) CODE=your-password @@ -70,5 +75,6 @@ ANTHROPIC_API_VERSION= ### anthropic claude Api url (optional) ANTHROPIC_URL= + ### (optional) WHITE_WEBDAV_ENDPOINTS= \ No newline at end of file diff --git a/app/config/server.ts b/app/config/server.ts index 6792a8330..1166805b5 100644 --- a/app/config/server.ts +++ b/app/config/server.ts @@ -255,6 +255,6 @@ export const getServerSideConfig = () => { defaultModel, visionModels, allowedWebDavEndpoints, - enableMcp: !!process.env.ENABLE_MCP, + enableMcp: process.env.ENABLE_MCP === "true", }; };