7 Commits

Author SHA1 Message Date
anbei.yuan
5789d78c34 fix: strip <think> tokens from reasoning model output
Models with thinking/reasoning capabilities (DeepSeek-R1, MiniMax-M2.7,
QwQ, etc.) include <think>...</think> blocks in their response content.
These internal reasoning tokens leak into agent output and downstream
node inputs, corrupting the workflow.

Add _strip_thinking_tokens() classmethod to OpenAIProvider that filters
<think>...</think> blocks via regex. Applied in both:
- _deserialize_chat_response() (Message content)
- _append_chat_response_output() (timeline content)

The fix is zero-cost for models without thinking tokens (fast path
checks for '<think>' substring before regex).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-09 10:13:10 +08:00
Shu Yao
e092cb6575 fix: chat completion remove redundant function calling return 2026-01-20 23:23:40 +08:00
Shu Yao
2833fcd7ff fix: parallel image generation error
upgrade: gemini provider enable setting image ratio
2026-01-16 16:10:28 +08:00
Shu Yao
53c01e6b61 fix: OpenAI Provider json, jsonl file load error
(cherry picked from commit 4648ea662c82c0a93be3833f5207529eae124125)
2026-01-12 18:19:54 +08:00
Shu Yao
4384790c55 fix: OpenAI chat.completions.create API function calling error 2026-01-09 23:07:40 +08:00
NA-Wen
82dcf4a587 [fix] support chat interface 2026-01-08 21:26:00 +08:00
NA-Wen
f0db945ed3 initial commit of chatdev 2.0 2026-01-07 16:24:01 +08:00