chore: update model-to-API mapping (2026-07-04)#5895
Conversation
- Add chatgpt-4o-latest entry (in ModelIdsShared, supports both chat_completions and responses endpoints; not matched by gpt-4o* glob due to chatgpt- prefix) - Update gpt-4o notes to mention audio and search preview variants - Bump lastUpdated to 2026-07-04T06:17:12Z Sources: - OpenAI: https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml - Anthropic: https://docs.anthropic.com/en/docs/about-claude/models/overview Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates the model-to-API endpoint reference mapping used for documenting (and reflecting) which OpenAI model families support /v1/chat/completions vs /v1/responses, with a focus on ensuring chatgpt-4o-latest is correctly classified.
Changes:
- Bumped
lastUpdatedtimestamp to2026-07-04T06:17:12Z. - Added an explicit
chatgpt-4o-latestmapping entry (chat_completions + responses). - Expanded
gpt-4onotes to mention audio and search preview variants.
Show a summary per file
| File | Description |
|---|---|
| docs/model-api-mapping.json | Updates OpenAI model-family mappings and metadata (adds chatgpt-4o-latest, refreshes notes, bumps lastUpdated). |
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: 1
- 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-03T06:21:01Z", | ||
| "lastUpdated": "2026-07-04T06:17:12Z", |
|
@copilot address review feedback |
Done — |
|
✅ Copilot review passed with no inline comments. @github-actions[bot] Add the |
|
✅ Build Test Suite completed successfully! |
|
❌ Smoke Copilot BYOK reports failed. BYOK mode investigation needed... |
|
Chroot tests failed Smoke Chroot failed - See logs for details. |
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed... |
|
✅ Smoke Gemini completed. All facets verified. 💎 Testing safeoutputs |
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
✅ Contribution Check completed successfully! PR #5895 follows the applicable CONTRIBUTING.md guidelines; no contribution-guidelines comment needed. |
|
✅ Smoke Claude passed |
|
🔌 Smoke Services — All services reachable! ✅ |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
❌ Security Guard failed. Please review the logs for details. |
|
✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓 |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
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.
|
Smoke Test Results
Overall: PASS Author: 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 — PASS
Overall: PASS | 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.
|
Smoke Test: 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:
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: API Proxy OpenTelemetry Tracing
All 5 scenarios passed. OTEL tracing integration is functional. 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.
|
|
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: 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 Status: PASS Warning 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.
|
|
@copilot fix this failing ci check https://github.com/github/gh-aw-firewall/actions/runs/28707785859/job/85136357818?pr=5895 |
Fixed — |
Summary
Updates
docs/model-api-mapping.jsonwith the latest model-to-API endpoint mappings verified against official provider documentation.Changes
OpenAI
chatgpt-4o-latestas a separate entry. This model exists in OpenAI'sModelIdsSharedschema (supports both/v1/chat/completionsand/v1/responses), but was not covered by the existinggpt-4o*glob pattern because its name starts withchatgpt-notgpt-4o.gpt-4ofamily notes to mention audio and search preview variants.Anthropic
Metadata
lastUpdatedto2026-07-04T06:17:12Z.Sources
https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml(verifiedModelIdsSharedandResponsesOnlyModelenums)https://docs.anthropic.com/en/docs/about-claude/models/overviewand/model-ids-and-versionsVerification
python3).chatgpt-4o-latestnow matches its new entry pattern.Warning
Firewall blocked 2 domains
The following domains were blocked by the firewall during workflow execution:
awmgmcpgdevelopers.openai.comSee Network Configuration for more information.