fix(providers): use reasoning_text for DeepSeek Responses reasoning replay

DeepSeek's Responses API documents reasoning content blocks as
reasoning_text. Full-history replay of assistant reasoning_content was
emitting output_text inside the reasoning item. Assistant message
content stays output_text.

Fixes #6411

Co-authored-by: DDT <1786035110@qq.com>
This commit is contained in:
DDTandDDT authored and chengyongru committed 2026-10-23 22:14:56 +08:00
1 parent cab2af7e94
commit a88c333466
3 files changed
+15 -11

No files matched your search

@@ -44,7 +44,7 @@ def convert_messages(
if isinstance(reasoning, str) and reasoning:
input_items.append({
"type": "reasoning",
"content": [{"type": "output_text", "text": reasoning}],
"content": [{"type": "reasoning_text", "text": reasoning}],
})
if isinstance(content, str) and content:
input_items.append({