chore: update model-to-API mapping (2026-07-02)#5804
Draft
github-actions[bot] wants to merge 1 commit into
Draft
chore: update model-to-API mapping (2026-07-02)#5804github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.