mirror of
https://gitcode.com/JianFeeeee/TrulyMEM-TrueHumanMEM.git
synced 2026-09-20 17:08:18 +00:00
fix: 修复 TUI 界面 API Key 配置和消息处理问题
1. 修复配置保存问题:config_section.py 现在正确发送 API 配置和工具限制两个消息
2. 修复代理环境变量问题:graph_client.py 自动修正缺少 scheme 前缀的代理 URL
3. 修复响应解析问题:app.py 正确从 data 字段获取 content 和 tool_calls
4. 添加操作日志更新:app.py 处理工具调用信息并更新操作日志
🤖 Generated with CodeArts Agent
This commit is contained in:
@ -141,6 +141,9 @@ class ConfigSection(Vertical):
|
||||
memory_update_max=int(memory_update.value or 10),
|
||||
)
|
||||
|
||||
# 先发送 API 配置更新(is_tool_limits=False)
|
||||
self.post_message(self.ConfigChanged(self._config, is_tool_limits=False))
|
||||
# 再发送工具限制更新(is_tool_limits=True)
|
||||
self.post_message(self.ConfigChanged(self._config, is_tool_limits=True))
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user