repro: BYOK sub-agent with sonnet model fails with Responses API 400#42215
repro: BYOK sub-agent with sonnet model fails with Responses API 400#42215Copilot wants to merge 1 commit into
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
/scout suggest a resolution |
|
🔭 Recon complete! Scout has charted the territory. Map ready! 🗺️ |
🔍 Scout Research ReportTriggered by Executive SummaryThe Click to expand detailed findingsResearch FindingsAnthropic does not implement the Responses APIClaude's only OpenAI-compatible surface is Identical bug confirmed in LiteLLM — and fixed
Copilot routes wire-API per model
Recommendations
Key Sources
Suggested Next Steps
|
|
/scout generate a bug report for copilot cli |
|
🔭 Recon complete! Scout has charted the territory. Map ready! 🗺️ |
🔍 Scout Research ReportTriggered by Executive SummaryResearch confirms the PR's root cause. Anthropic/Claude models do not support OpenAI's Responses API wire format — they use the Anthropic Messages API (with optional OpenAI Chat Completions compatibility). Forcing Click to expand detailed findingsResearch FindingsAnthropic does not natively support the Responses API
Copilot CLI BYOK uses provider type, not a uniform wire API
Recommendations
Key Sources
Suggested Next Steps
|
🤖 PR Triage — §28376613466
Score breakdown: Impact 15 + Urgency 8 + Quality 5 Rationale: Standalone reproduction workflow for the BYOK + sonnet sub-agent
|
🔍 PR Triage — §28395315609
Score breakdown: impact 10 + urgency 5 + quality 8
|
All 5
pr-processorsub-agents in PR Sous Chef run 28359605525 returnedsub_agent_errorbecauseclaude-sonnet-4.6does not support the OpenAI Responses API wire format that AWF injects into every agent container.Failure chain
COPILOT_PROVIDER_WIRE_API=responsesunconditionally → all Copilot CLI requests use Responses API formattasktool's optionalmodelparameter, passing"sonnet"despite thepr-processoragent definition specifyingclaude-haiku-4.5sonnet→claude-sonnet-4.6(Anthropic)400 unsupported_api_for_model: model claude-sonnet-4.6 does not support Responses APIRepro workflow (
repro-byok-sonnet-subagent.md)workflow_dispatch, bare Copilot engine with explicit BYOK config:dummy-sonnet-sub(defined withmodel: claude-sonnet-4.6) viataskwithmodel: "sonnet"override400 model claude-sonnet-4.6 does not support Responses API