Repository navigation
Description
Description
I'm using a GitHub Agentic Workflow with the Copilot SDK:
engine:
id: copilot
copilot-sdk: true
model: gpt-6-luna
env:
COPILOT_PROVIDER_WIRE_API: responsesThe workflow works correctly with other models, for example gpt-5.6-terra, but fails consistently with gpt-6-luna.
The Copilot harness correctly detects that COPILOT_PROVIDER_WIRE_API is set to responses:
[copilot-harness] COPILOT_PROVIDER_WIRE_API already set to responses — skipping auto-configure
However, immediately afterwards the reflected provider configuration resolves gpt-6-luna using the Chat Completions wire API:
[copilot-harness] sdk-mode(multi): resolved provider="copilot" (raw="copilot") type="openai" wireApi="completions" inferredFrom="gpt-6-luna"
The SDK driver receives the same configuration:
[copilot-sdk-driver] provider: name=copilot type=openai baseUrl=http://api-proxy:10002 wireApi=completions
The request then fails with:
400 model "gpt-6-luna" is not accessible via the /chat/completions endpoint
Expected behavior
gpt-6-luna should be routed through the Responses API when used with the Copilot SDK, especially when:
COPILOT_PROVIDER_WIRE_API=responses
is explicitly configured.
Actual behavior
The multi-provider/reflection configuration appears to override or ignore the configured wire API and resolves gpt-6-luna with:
wireApi="completions"
This causes the request to be sent through /chat/completions and fail.
Additional context
The same Agentic Workflow works when replacing:
model: gpt-6-lunawith:
model: gpt-5.6-terraI'm currently using:
gh-aw / gh-aw-actions: v0.89.22
engine: copilot
copilot-sdk: true
My real workflow selects the review model dynamically, but the issue also reproduces with gpt-6-luna hardcoded as shown above.
Relevant log sequence
[copilot-harness] COPILOT_PROVIDER_WIRE_API already set to responses — skipping auto-configure
[copilot-harness] sdk-mode(multi): resolved provider="copilot" (raw="copilot") type="openai" wireApi="completions" inferredFrom="gpt-6-luna"
[copilot-harness] inference endpoint selected: model="copilot/gpt-6-luna" provider="copilot" type="openai" wireApi="completions" endpoint="http://api-proxy:10002/"
[copilot-sdk-driver] provider: name=copilot type=openai baseUrl=http://api-proxy:10002 wireApi=completions
[copilot-sdk-driver] error: 400 model "gpt-6-luna" is not accessible via the /chat/completions endpoint
Activity
igolaizola commentedon Oct 2, 2026
I've seen that the AI is taking the approach of fixing this by correctly honoring
COPILOT_PROVIDER_WIRE_API: responses. However, it would also be nice if gpt-6-luna worked out of the box, without requiring specifying theCOPILOT_PROVIDER_WIRE_APIenv var.