feat: LLM 切换为 DeepSeek deepseek-flash
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* LLM 客户端 — SiliconFlow OpenAI 兼容接口
|
||||
* LLM 客户端 — DeepSeek OpenAI 兼容接口
|
||||
*
|
||||
* 设计要点:
|
||||
* - Key 从环境变量读取,永不写入代码或日志
|
||||
@@ -21,9 +21,9 @@ export interface LlmConfig {
|
||||
|
||||
export function loadConfig(): LlmConfig {
|
||||
return {
|
||||
apiUrl: process.env.LLM_API_URL ?? "https://api.siliconflow.cn/v1/chat/completions",
|
||||
apiUrl: process.env.LLM_API_URL ?? "https://api.deepseek.com/v1/chat/completions",
|
||||
apiKey: process.env.LLM_API_KEY ?? "",
|
||||
model: process.env.LLM_MODEL ?? "Qwen/Qwen2.5-32B-Instruct",
|
||||
model: process.env.LLM_MODEL ?? "deepseek-flash",
|
||||
timeoutMs: Number(process.env.LLM_TIMEOUT_MS ?? 120000),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user