xiaozhi-esp32-server/main/xiaozhi-server
Brad Shannon d46a4f6006 fix(llm/openai): strip <think> tags against the original chunk
Reasoning models often emit both <think> and </think> in a single streamed
chunk. The previous code truncated `content` at <think> first, then tested
the already-truncated string for </think>. The closing tag was gone, so
`is_active` was never restored to True and the entire post-</think> answer
was dropped — the user received silence.

Snapshot the chunk as `original_content` and test both tags against the
snapshot so the closing tag is still detectable after truncation.
2026-06-18 11:01:04 -04:00
..
config Bump to 0.9.4 2026-06-03 09:07:39 +08:00
core fix(llm/openai): strip <think> tags against the original chunk 2026-06-18 11:01:04 -04:00
models 重新划分目录 (#214) 2025-03-05 23:13:24 +08:00
music 重新划分目录 (#214) 2025-03-05 23:13:24 +08:00
performance_tester update:解决base类修改后测速工具兼容性问题 2026-04-27 15:06:40 +08:00
plugins_func 优化相关逻辑 2026-06-03 16:13:03 +08:00
agent-base-prompt.txt update:根据数字人 emoji 开关动态渲染系统提示词 2026-05-26 11:43:18 +08:00
app.py Merge pull request #3176 from xinnan-tech/perf-tool-add-online-search 2026-05-14 10:51:23 +08:00
config.yaml perf: 2026-05-12 15:16:08 +08:00
config_from_api.yaml fix:修复全模块时缺少prompt_template配置的问题 2025-10-31 20:36:55 +08:00
docker-compose.yml fix: 设备最后连接时间返回 UTC 时间戳,修复时区显示问题 2026-05-27 17:35:10 +08:00
docker-compose_all.yml update:增加ragflow部署教程 2025-11-11 18:47:25 +08:00
mcp_server_settings.json update:服务端MCP新增支持Streamable HTTP传输协议 2025-10-29 23:14:42 +08:00
performance_tester.py update:优化测试工具目录结构 2025-08-16 10:09:36 +08:00
requirements.txt update:更新sherpa_onnx依赖至1.12.29版本 2026-03-16 11:43:07 +08:00