fix(ai): 修复语义问题

This commit is contained in:
2025-11-29 11:33:58 +08:00
parent a580e39a7c
commit 89f8b181c5
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ class DeepSeek:
def __init__(self) -> None:
self.key = os.environ.get("DEEPSEEK_API_KEY")
if self.key:
if not self.key:
raise Exception("找不到 DEEPSEEK_API_KEY 请设置环境变量在运行代码")
self.client = OpenAI(
api_key=self.key,