Pārlūkot izejas kodu

Merge pull request #6001 from bestsanmao/add_deepseek

docs: add DEEPSEEK_API_KEY and DEEPSEEK_URL in README
Dogtiti 1 gadu atpakaļ
vecāks
revīzija
d56566cd73
3 mainītis faili ar 17 papildinājumiem un 1 dzēšanām
  1. 8 0
      README.md
  2. 8 0
      README_CN.md
  3. 1 1
      app/client/platforms/deepseek.ts

+ 8 - 0
README.md

@@ -312,6 +312,14 @@ ChatGLM Api Key.
 
 ChatGLM Api Url.
 
+### `DEEPSEEK_API_KEY` (optional)
+
+DeepSeek Api Key.
+
+### `DEEPSEEK_URL` (optional)
+
+DeepSeek Api Url.
+
 ### `HIDE_USER_API_KEY` (optional)
 
 > Default: Empty

+ 8 - 0
README_CN.md

@@ -192,6 +192,14 @@ ChatGLM Api Key.
 
 ChatGLM Api Url.
 
+### `DEEPSEEK_API_KEY` (可选)
+
+DeepSeek Api Key.
+
+### `DEEPSEEK_URL` (可选)
+
+DeepSeek Api Url.
+
 
 ### `HIDE_USER_API_KEY` (可选)
 

+ 1 - 1
app/client/platforms/deepseek.ts

@@ -35,7 +35,7 @@ export class DeepSeekApi implements LLMApi {
     let baseUrl = "";
 
     if (accessStore.useCustomConfig) {
-      baseUrl = accessStore.moonshotUrl;
+      baseUrl = accessStore.deepseekUrl;
     }
 
     if (baseUrl.length === 0) {