fix(lpt-ai):增加 LLM 超时到 2 分钟 + Fastify 连接超时 3 分钟
- LLM_TIMEOUT_MS 默认值 60000 → 120000 - Fastify connectionTimeout 设为 180000(3 分钟)
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ export function loadConfig(): LlmConfig {
|
||||
apiUrl: process.env.LLM_API_URL ?? "https://api.siliconflow.cn/v1/chat/completions",
|
||||
apiKey: process.env.LLM_API_KEY ?? "",
|
||||
model: process.env.LLM_MODEL ?? "Qwen/Qwen2.5-32B-Instruct",
|
||||
timeoutMs: Number(process.env.LLM_TIMEOUT_MS ?? 60000),
|
||||
timeoutMs: Number(process.env.LLM_TIMEOUT_MS ?? 120000),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user