fix(ai): 修复语义问题
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user