Skip to content

Fix bug#88

Open
Crazydonelu wants to merge 2 commits into
shaxiu:mainfrom
Crazydonelu:fix-bug
Open

Fix bug#88
Crazydonelu wants to merge 2 commits into
shaxiu:mainfrom
Crazydonelu:fix-bug

Conversation

@Crazydonelu
Copy link
Copy Markdown

修复使用Minimax模型时,发送内容带有ai think的文案
b2b4af66a4ce86d9904411c2713d46b5

- 在context_manager.py中初始化messages变量以避免可能的未定义错误
- 在main.py异常处理中定义message变量确保程序稳定性
- 在xianyu_utils.py中添加cookie解析的安全检查防止空值错误
- 在XianyuAgent.py中添加think标签过滤功能提升输出质量
- 移除AI回复中的<think>标签内容增强安全性
- 优化数据库查询语句的可读性和维护性
- 移除开头的空行
- 合并多余的空行(超过一个换行的缩为单个换行)
- 对于中文句子,将句号后的空格去掉
- 移除句子之间的多余空格,保留必要的间隔
- 优化正则表达式匹配逻辑,提升清理效果
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant