feat(provider/openai,provider/gateway): add gpt-5.6 model id#17021
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…odel ids Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
gr2m
commented
Jul 9, 2026
| | [xAI Grok](/providers/ai-sdk-providers/xai) | `grok-3` | <Cross /> | <Check /> | <Check /> | <Check /> | | ||
| | [xAI Grok](/providers/ai-sdk-providers/xai) | `grok-3-mini` | <Cross /> | <Check /> | <Check /> | <Check /> | | ||
| | [Vercel](/providers/ai-sdk-providers/vercel) | `v0-1.0-md` | <Check /> | <Check /> | <Check /> | <Check /> | | ||
| | [OpenAI](/providers/ai-sdk-providers/openai) | `gpt-5.6` | <Check /> | <Check /> | <Check /> | <Check /> | |
Collaborator
Author
There was a problem hiding this comment.
also add gpt-5.6-sol/terra/luna
n1ckoates
reviewed
Jul 9, 2026
| | [xAI Grok](/providers/ai-sdk-providers/xai) | `grok-3` | <Cross /> | <Check /> | <Check /> | <Check /> | | ||
| | [xAI Grok](/providers/ai-sdk-providers/xai) | `grok-3-mini` | <Cross /> | <Check /> | <Check /> | <Check /> | | ||
| | [Vercel](/providers/ai-sdk-providers/vercel) | `v0-1.0-md` | <Check /> | <Check /> | <Check /> | <Check /> | | ||
| | [OpenAI](/providers/ai-sdk-providers/openai) | `gpt-5.6` | <Check /> | <Check /> | <Check /> | <Check /> | |
Member
There was a problem hiding this comment.
docs should list each model, not just 5.6 as a whole
Member
There was a problem hiding this comment.
same thing in other docs files
Collaborator
Author
There was a problem hiding this comment.
Added individual rows for gpt-5.6-luna, gpt-5.6-sol, and gpt-5.6-terra to all three docs capability tables in 96d916b.
| | 'openai/gpt-5.4-pro' | ||
| | 'openai/gpt-5.5' | ||
| | 'openai/gpt-5.5-pro' | ||
| | 'openai/gpt-5.6' |
Collaborator
Author
There was a problem hiding this comment.
Added openai/gpt-5.6-luna, openai/gpt-5.6-sol, and openai/gpt-5.6-terra to the gateway model IDs in 96d916b.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
gr2m
commented
Jul 9, 2026
Collaborator
Author
There was a problem hiding this comment.
update docs for new max reasoning setting
n1ckoates
approved these changes
Jul 9, 2026
gr2m
enabled auto-merge (squash)
July 9, 2026 17:47
Contributor
|
🚀 Published in:
|
gr2m
added a commit
that referenced
this pull request
Jul 9, 2026
…ontrols (#17028) ## Summary - add GPT-5.6 `max` reasoning effort support for Chat Completions - add Responses API `reasoningMode` and `reasoningContext` options, including the effective reasoning context in provider metadata - support GPT-5.6 implicit and explicit prompt cache options, 30-minute TTL, and explicit cache breakpoints for supported message content - report cache-write tokens for Chat Completions and Responses without double-counting uncached input tokens - document GPT-5.6 reasoning, prompt caching, cache-write usage, and original image detail behavior - add `generateText` and `streamText` examples for pro mode, persisted reasoning context, and explicit prompt caching Follow-up to #17021. ## Test plan - `pnpm test:node` in `packages/openai` — 19 files, 772 tests - `pnpm test:edge` in `packages/openai` — 19 files, 772 tests - `pnpm type-check` in `packages/openai` - `pnpm type-check:full` - `pnpm check` - `node tools/validate-properties-tables.mjs` Live GPT-5.6 examples were not run locally because no `OPENAI_API_KEY` was configured.
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.
Background
OpenAI released GPT-5.6.
Summary
Add the
gpt-5.6model ID:@ai-sdk/openai: addedgpt-5.6and thegpt-5.6-sol,gpt-5.6-terra,gpt-5.6-lunasnapshot IDs to the chat and responses model ID types, the responses reasoning model IDs, and the language model capabilities (GPT-5.6 supports temperature/topP/logProbs whenreasoningEffortisnone, like GPT-5.1+).@ai-sdk/gateway: addedopenai/gpt-5.6to the gateway model IDs.gpt-5.6to the model capability tables (foundations, OpenAI provider page, providers index).gpt-5,gpt-5.1,gpt-5.2,gpt-5.4,gpt-5.5) as a generic default to usegpt-5.6. Examples that are deliberately model-specific (codex/mini/nano/pro/chat-latest/dated variants, Azure deployment names, files named after a model) were left unchanged. Addedgpt-5.6to the e2e chat model list. Restoredgenerate-text/openai/basic.tsto its pre-debugging state (keepinggpt-5.6) and addedreasoning-max.tsexamples (generate-text + stream-text) demonstratingreasoningEffort: 'max'.Manual Verification
Ran the new
examples/ai-functions/src/generate-text/openai/reasoning-max.tsandexamples/ai-functions/src/stream-text/openai/reasoning-max.tsagainst the live OpenAI API:reasoningEffort: 'max'is accepted and returns reasoning summaries.Ran the updated
examples/ai-functions/src/stream-text/openai/reasoning.tsagainst the live OpenAI API withgpt-5.6: streaming works, including reasoning summary deltas and reasoning provider metadata (the API resolves the ID to thegpt-5.6-solsnapshot).Note:
openai/gpt-5.6is not yet served by the AI Gateway (model_not_foundas of this PR); the gateway model ID addition is launch preparation.Checklist
pnpm changesetin the project root)