chore: update model-to-API mapping (2026-07-02)#5804
Conversation
- Fix endpoint support for gpt-5.4, gpt-5.3, gpt-5.2, gpt-5.1: all are in ModelIdsShared (OpenAI OpenAPI spec), meaning they support both /v1/chat/completions and /v1/responses (not responses-only as before). - Fix o4 family: o4-mini is in ModelIdsShared (both endpoints); only o4-mini-deep-research is ResponsesOnlyModel. - Fix gpt-5 family: gpt-5/mini/nano support both endpoints; gpt-5-codex and gpt-5-pro are ResponsesOnlyModel. - Fix gpt-5.1 notes: remove non-existent gpt-5.1-codex-mini; gpt-5.1-codex-max is the real ResponsesOnlyModel variant. - Fix gpt-5.3 notes: remove unconfirmed codex variants; only gpt-5.3-chat-latest exists in the OpenAPI spec. - Enrich gpt-4.1 notes with confirmed sub-models (mini, nano). - Source: openai/openai-openapi ModelIdsShared + ResponsesOnlyModel schemas. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates the OpenAI portion of the model→endpoint reference map used to decide whether a model should be called via /v1/chat/completions, /v1/responses, or both.
Changes:
- Bumped
lastUpdatedtimestamp. - Reassigned several OpenAI model families (gpt-5.x, o4) from
responses-only tochat_completions+responses. - Expanded/clarified notes for certain families (e.g., gpt-4.1 sub-models).
Show a summary per file
| File | Description |
|---|---|
| docs/model-api-mapping.json | Updates OpenAI model family endpoint support and refresh timestamp. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 4
- Review effort level: Low
| "title": "Model-to-API Endpoint Mapping", | ||
| "description": "Maps AI model families to their supported API endpoints. Used to determine which endpoint (chat/completions vs responses vs messages) a model requires.", | ||
| "lastUpdated": "2026-07-01T08:18:06Z", | ||
| "lastUpdated": "2026-07-02T07:56:20Z", |
| "family": "gpt-5.1", | ||
| "patterns": ["gpt-5.1*"], | ||
| "endpoints": ["responses"], | ||
| "notes": "Responses API only. Includes gpt-5.1-codex, gpt-5.1-codex-max, gpt-5.1-codex-mini variants." | ||
| "endpoints": ["chat_completions", "responses"], | ||
| "notes": "Supports both endpoints for gpt-5.1, gpt-5.1-codex, gpt-5.1-mini. gpt-5.1-codex-max is Responses API only (ResponsesOnlyModel)." |
| "family": "gpt-5", | ||
| "patterns": ["gpt-5", "gpt-5-*"], | ||
| "endpoints": ["responses"], | ||
| "notes": "Responses API only. Includes gpt-5-mini, gpt-5-nano, gpt-5-pro." | ||
| "endpoints": ["chat_completions", "responses"], | ||
| "notes": "Supports both endpoints for gpt-5, gpt-5-mini, gpt-5-nano. Responses API only for gpt-5-codex and gpt-5-pro (ResponsesOnlyModel)." |
| "family": "o4", | ||
| "patterns": ["o4*"], | ||
| "endpoints": ["responses"], | ||
| "notes": "Reasoning model. Responses API only. Includes o4-mini." | ||
| "endpoints": ["chat_completions", "responses"], | ||
| "notes": "Reasoning model. o4-mini supports both endpoints (ModelIdsShared). o4-mini-deep-research is Responses API only." |
|
@copilot address review feedback |
Addressed in 4389198.
|
|
✅ Copilot review passed with no inline comments. @github-actions[bot] Add the |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
❌ Security Guard failed. Please review the logs for details. |
|
Chroot tests failed Smoke Chroot failed - See logs for details. |
|
✅ Smoke Gemini completed. All facets verified. 💎 Smoke test completed with partial failures. Comment added to PR #5804. |
|
🔌 Smoke Services — All services reachable! ✅ |
|
✅ Build Test Suite completed successfully! |
|
✅ Smoke Claude passed |
|
✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓 |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓 |
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓 |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
✅ Contribution Check completed successfully! PR #5804 follows the applicable CONTRIBUTING.md guidelines based on the provided context: it has a clear description, updates documentation/data, includes relevant tests, and keeps files in appropriate locations. |
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 98.64% | 98.66% | 📈 +0.02% |
| Statements | 98.53% | 98.55% | 📈 +0.02% |
| Functions | 99.56% | 99.56% | ➡️ +0.00% |
| Branches | 94.51% | 94.42% | 📉 -0.09% |
📁 Per-file Coverage Changes (2 files)
| File | Lines (Before → After) | Statements (Before → After) |
|---|---|---|
src/container-stop.ts |
100.0% → 95.7% (-4.35%) | 100.0% → 95.7% (-4.35%) |
src/workdir-setup.ts |
93.0% → 94.8% (+1.74%) | 93.0% → 94.8% (+1.74%) |
Coverage comparison generated by scripts/ci/compare-coverage.ts
Smoke Test: Claude Engine Validation
Overall Result: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
|
PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
|
GitHub MCP Testing: ✅ Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra Overall: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test: GitHub Actions Services Connectivity
Overall: FAIL — Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
🔬 Smoke Test Results
Overall: FAIL — workflow template variables ( cc Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test: Copilot BYOK (Direct) Mode✅ GitHub MCP connectivity Status: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
🔬 Smoke Test: Copilot PAT Auth
Overall: FAIL — workflow step outputs ( Auth mode: PAT (COPILOT_GITHUB_TOKEN) Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Warning Firewall blocked 2 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"
- "registry.npmjs.org"See Network Configuration for more information.
|
Smoke Test Results\n- GitHub MCP Testing: ❌\n- GitHub.com Connectivity: ❌\n- File Writing Testing: ✅\n- Bash Tool Testing: ✅\n\nOverall Status: FAILWarning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
🔍 Smoke Test: API Proxy OpenTelemetry Tracing
All scenarios passed. OTEL tracing integration is functioning correctly. Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Summary
Updates
docs/model-api-mapping.jsonbased on the official OpenAI OpenAPI specification (openai/openai-openapi), specifically theModelIdsSharedandResponsesOnlyModelschemas.Changes
Six OpenAI model families had incorrect endpoint assignments (marked
responses-only when they actually support both endpoints):gpt-5.4*responseschat_completions, responsesgpt-5.3*responseschat_completions, responsesgpt-5.2*responseschat_completions, responsesgpt-5.1*responseschat_completions, responsesgpt-5/gpt-5-*responseschat_completions, responseso4*responseschat_completions, responsesNotes fixes
gpt-5.1-codex-mini; clarified thatgpt-5.1-codex-maxis the ResponsesOnlyModel variant.gpt-5.3-chat-latestexists in the OpenAPI spec.gpt-5-codexandgpt-5-proare ResponsesOnlyModel; base/mini/nano support both.o4-minisupports both;o4-mini-deep-researchis ResponsesOnlyModel.Anthropic
No changes needed — current entries match the Anthropic docs (claude-fable-5, claude-opus-4-8, claude-sonnet-5, claude-haiku-4-5, claude-mythos-5 all confirmed).
Source
https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml—ModelIdsSharedandResponsesOnlyModelcomponent schemas.Warning
Firewall blocked 3 domains
The following domains were blocked by the firewall during workflow execution:
awmgmcpgdevelopers.openai.comopenai.comSee Network Configuration for more information.