Skip to content

feat(session): 支持推理模型 reasoning_content 多轮对话回传 - #67

Merged
Ec3o merged 1 commit into
refactor/decouple-main-sessionfrom
feat/reasoning-content-roundtrip
May 28, 2026
Merged

Ec3o merged 1 commit into
refactor/decouple-main-sessionfrom
feat/reasoning-content-roundtrip

Conversation

@Ec3o

@Ec3o Ec3o commented May 28, 2026

Copy link
Copy Markdown
Collaborator

stepFun/DeepSeek 等推理模型在 tool call 场景的多轮对话中,
要求历史 assistant 消息必须包含原始的 reasoning_content,
否则 API 返回 400。

  • Message/LLMResult/LLMChunk 增加 reasoningContent 字段
  • OpenAI-compatible adapter 提取和回传 reasoning_content
  • Session 层持久化 reasoningContent 到 assistant 记录
  • 新增 3 个 adapter 测试覆盖 round-trip

stepFun/DeepSeek 等推理模型在 tool call 场景的多轮对话中,
要求历史 assistant 消息必须包含原始的 reasoning_content,
否则 API 返回 400。

- Message/LLMResult/LLMChunk 增加 reasoningContent 字段
- OpenAI-compatible adapter 提取和回传 reasoning_content
- Session 层持久化 reasoningContent 到 assistant 记录
- 新增 3 个 adapter 测试覆盖 round-trip

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Ec3o
Ec3o force-pushed the feat/reasoning-content-roundtrip branch from d962d38 to 555dd60 Compare May 28, 2026 10:24
@Ec3o
Ec3o merged commit 12fd735 into refactor/decouple-main-session May 28, 2026
1 of 3 checks passed
@uchouT
uchouT deleted the feat/reasoning-content-roundtrip branch May 28, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant