fix api key bug

This commit is contained in:
bridge
2025-12-29 22:56:49 +08:00
parent 32c6bf1d46
commit 853e74630e
3 changed files with 12 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ class LLMConfig:
)
# API Key 优先从环境变量读取
api_key = os.getenv("QWEN_API_KEY") or CONFIG.llm.key
api_key = CONFIG.llm.key
return cls(
model_name=model_name,