xiaozhi-esp32-server/main/xiaozhi-server/core
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
..
api add:测试页面增加拍照识物功能 2026-02-02 15:08:24 +08:00
handle fix: 通讯录页面时间不显示 2026-06-17 14:34:42 +08:00
providers fix(llm/openai): strip <think> tags against the original chunk 2026-06-18 11:01:04 -04:00
utils 修复设备快速提示词缓存key错误 2026-04-28 15:52:23 +08:00
auth.py update: 2025-10-13 17:52:28 +08:00
connection.py 优化相关逻辑 2026-06-03 16:13:03 +08:00
http_server.py update:从vision_url配置里读取域名和端口号 2025-12-18 17:37:20 +08:00
websocket_server.py update:关于对digital-human的markdown文档的修改 2026-05-12 09:45:43 +08:00