Repository navigation
feat(model): forward explicit Anthropic output effort - #5962
RyaliNvidia wants to merge 1 commit into
Conversation
6f89b56 to
a8844dc
Compare
a8844dc to
6c338b0
Compare
|
/ok to test 6c338b0 |
0b77dca to
2a4a8c5
Compare
|
/ok to test 2a4a8c5 |
Signed-off-by: RyaliNvidia <[email protected]>
2a4a8c5 to
12591ff
Compare
|
/ok to test 12591ff |
|
@RyaliNvidia the description says not to merge until Claude Code on a vLLM model has rollout evidence and the |
|
Moved this back to draft. The readiness gates in the description are still open: the current patch forwards Before marking this ready, we need to agree the compatibility behavior (including the suggested opt-in flag), cover disabled thinking combined with explicit effort, and attach rollout evidence for Claude Code against a vLLM-served model, including model-supported effort values. The existing unit-test results do not settle those rollout requirements. Related work: #6904 now proposes |
What does this PR do?
Forward an explicit Anthropic
output_config.effortfrom Gym's/v1/messageshandler into Responsesreasoning.effort. This feature was split from #5464 following review. The SDK upgrade has now merged; main continues ignoring this control.The SDK prerequisite #5464 is merged. This PR now targets
mainand contains only the five effort-related files.Missing or null
output_config, missing or nulleffort, and unrelated output configuration leave reasoning unset. Explicitlow,medium,high,xhighandmaxforward unchanged. Invalid non-null controls return a static HTTP 400 JSON error before a backend call or SSE headers; unrelated conversion errors retain their previous handling.Compatibility and readiness
Do not merge yet: Claude Code against a vLLM model still needs rollout evidence. No live provider, model rollout, image build or remote-sandbox qualification was performed.
Forwarding effort can change model prompts and rollout behavior:
noneunless the request explicitly suppliesenable_thinking; see the pinned vLLM implementation.xhighandmaxfor gpt-oss; see Harmony validation.thinking: {"type": "disabled"}. Combined with effort forwarding, that can enable reasoning despite the client disabling thinking. Resolve this behavior and qualify it before marking the PR ready; this split does not introduce an unreviewed mapping.Shared components for review: Anthropic request conversion and the shared Messages handler.
Validation
Rebased the single feature commit onto main
1d1dbb4fon 2026-11-17;git range-diffconfirms the feature patch is unchanged. Re-ran the converter, Messages and streaming suites: 387 passed. Full available hooks and whitespace checks passed.Converter, Messages, streaming, base-model and API checks: 1,350 passed, using this worktree's source.
Explicit-effort regression tests fail with forwarding removed: 15 expected failures.
Independent review: 48 focused tests and 7 probes passed; verifier and simplifier approved the five-file draft scope while retaining the readiness gates above.
Tests cover null/omitted controls in streaming and non-streaming requests, static errors without request-content leakage, JSON errors before SSE/backend invocation, and preservation of unrelated error behavior.
Full available pre-commit hooks, import-linter and whitespace checks passed. The private guardwords catalog is unavailable.
Fern validation: 0 errors, 1 warning.