fix: rename QWEN_API_KEY to DASHSCOPE_API_KEY for accuracy

This commit is contained in:
AI Clinical Dev Team
2025-10-10 20:44:04 +08:00
parent 8afff23995
commit 8bd2b4fc54
3 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ export const config = {
// LLM API配置
deepseekApiKey: process.env.DEEPSEEK_API_KEY || '',
qwenApiKey: process.env.QWEN_API_KEY || '',
dashscopeApiKey: process.env.DASHSCOPE_API_KEY || '', // 用于Qwen模型
geminiApiKey: process.env.GEMINI_API_KEY || '',
// Dify配置
@@ -52,7 +52,7 @@ export function validateEnv(): void {
}
// 检查LLM API Keys
if (!config.deepseekApiKey && !config.qwenApiKey) {
console.warn('Warning: No LLM API keys configured. At least one of DEEPSEEK_API_KEY or QWEN_API_KEY should be set.');
if (!config.deepseekApiKey && !config.dashscopeApiKey) {
console.warn('Warning: No LLM API keys configured. At least one of DEEPSEEK_API_KEY or DASHSCOPE_API_KEY should be set.');
}
}