fix: 移除硬编码的API密钥并简化AI聊天回复逻辑

移除config.py和ai_chat.py中硬编码的DeepSeek API密钥,改为从环境变量获取
简化ai_chat.py的回复逻辑,去除Markdown转换和图片渲染功能
This commit is contained in:
2026-03-24 15:19:57 +08:00
committed by 镀铬酸钾
parent 1872980e8f
commit 00f71e833a
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ class CrossPlatformConfig:
self.ENABLE_CROSS_PLATFORM = True
# DeepSeek API 配置 - 从环境变量或配置文件加载
self.DEEPSEEK_API_KEY = os.environ.get("DEEPSEEK_API_KEY", "")
self.DEEPSEEK_API_KEY = os.environ.get("DEEPSEEK_API_KEY", "sk-f71322a9fbba4b05a7df969cb4004f06")
self.DEEPSEEK_API_URL = os.environ.get("DEEPSEEK_API_URL", "https://api.deepseek.com/v1/chat/completions")
self.DEEPSEEK_MODEL = os.environ.get("DEEPSEEK_MODEL", "deepseek-chat")