急了,不填都别开了

This commit is contained in:
KawaiiYusora
2025-03-04 21:50:39 +08:00
parent f4c383caf3
commit 6ec17a3c84

4
bot.py
View File

@@ -54,9 +54,9 @@ else:
exit(1)
# 检测Key是否存在
if not os.getenv("DEEP_SEEK_KEY") and not os.getenv("SILICONFLOW_KEY") and not os.getenv("CHAT_ANY_WHERE_KEY"):
if not os.getenv("SILICONFLOW_KEY"):
logger.error("缺失必要的API KEY")
logger.info(f"请至少在.env.{os.getenv('ENVIRONMENT')}文件中填写SILICONFLOW_KEY后重新启动")
logger.error(f"请至少在.env.{os.getenv('ENVIRONMENT')}文件中填写SILICONFLOW_KEY后重新启动")
exit(1)
# 获取所有环境变量