Repository navigation
Conversation
wxhking
force-pushed
the
fix/groq-reasoning-content-replay
branch
2 times, most recently
from
November 3, 2026 02:47
e01e8ab to
f248def
Compare
wxhking
force-pushed
the
fix/groq-reasoning-content-replay
branch
from
November 4, 2026 02:49
f248def to
f55aaa5
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
400: property 'reasoning_content' is unsupported。根因链路:上一轮助手回复把推理文本写进additional_kwargs.reasoning_content(history/projection.py、recorder.py),下一轮 LangGraph 把整段消息历史原样回放给模型;harness 侧_attach_reasoning_to_payload无条件把该字段回贴到 assistant payload(octop-harness/llm/factory.py),对不支持 reasoning 的 OpenAI 兼容端点直接 400。harness_request.build_harness_request新增reasoning_gate参数 →configurable["octop_reasoning_roundtrip"];processor._resolve_reasoning_overrides现在总是知道能力有无:capability 为 None 时给{"_roundtrip": False},有能力时True,并在调用点拆出为 gate(IM 通道路径同理单独解析);ReasoningRequestMiddleware._scrub_replayed_reasoning在调用模型前把历史 AIMessage 的reasoning_content剥离(model_copy不可变方式),gate 缺失/为 True 时不干预,DeepSeek 等 reasoning 模型的思考链回放不受影响。Target branch
develop
Type
Bug fix
Test plan
tests/unit/agents/test_reasoning_middleware.py新增 4 例:gate=False 剔除、gate=True 保留、历史无字段时跳过、gate 缺失时默认不动(历史行为兼容)。tests/unit/gateway全量 549 passed(含 IM 通道路径回归)。Checklist