Fix bug#88
Open
Crazydonelu wants to merge 2 commits into
Open
Conversation
- 在context_manager.py中初始化messages变量以避免可能的未定义错误 - 在main.py异常处理中定义message变量确保程序稳定性 - 在xianyu_utils.py中添加cookie解析的安全检查防止空值错误 - 在XianyuAgent.py中添加think标签过滤功能提升输出质量 - 移除AI回复中的<think>标签内容增强安全性 - 优化数据库查询语句的可读性和维护性
- 移除开头的空行 - 合并多余的空行(超过一个换行的缩为单个换行) - 对于中文句子,将句号后的空格去掉 - 移除句子之间的多余空格,保留必要的间隔 - 优化正则表达式匹配逻辑,提升清理效果
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复使用Minimax模型时,发送内容带有ai think的文案
