xiaozhi-esp32-server/main/xiaozhi-server/core/providers
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
..
asr fix: 停止帧发送后与原先音频时序问题 2026-04-22 15:55:28 +08:00
intent Merge branch 'py_test_typing' into feature/python-typing 2026-02-05 17:14:47 +08:00
llm fix(llm/openai): strip <think> tags against the original chunk 2026-06-18 11:01:04 -04:00
memory delete log 2026-05-01 16:03:02 +08:00
tools perf: 2026-05-12 15:16:08 +08:00
tts Merge pull request #3158 from xinnan-tech/chore/cleanup 2026-05-08 10:38:53 +08:00
vad refactor: vad独立时间戳,相关残余状态处理 2026-04-09 17:15:35 +08:00
vllm fix: 修正VLLM本地调用,question参数为空会用英文回复的问题 2025-07-07 09:02:59 +08:00