Commit fdb6d5d
feat(provider/openai,provider/gateway): add gpt-5.6 model id (#17021)
## Background
OpenAI released GPT-5.6.
## Summary
Add the `gpt-5.6` model ID:
- `@ai-sdk/openai`: added `gpt-5.6` and the `gpt-5.6-sol`,
`gpt-5.6-terra`, `gpt-5.6-luna` snapshot 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 when
`reasoningEffort` is `none`, like GPT-5.1+).
- `@ai-sdk/gateway`: added `openai/gpt-5.6` to the gateway model IDs.
- Docs: added `gpt-5.6` to the model capability tables (foundations,
OpenAI provider page, providers index).
- Examples: updated examples that used a prior flagship GPT model
(`gpt-5`, `gpt-5.1`, `gpt-5.2`, `gpt-5.4`, `gpt-5.5`) as a generic
default to use `gpt-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. Added `gpt-5.6` to the
e2e chat model list. Restored `generate-text/openai/basic.ts` to its
pre-debugging state (keeping `gpt-5.6`) and added `reasoning-max.ts`
examples (generate-text + stream-text) demonstrating `reasoningEffort:
'max'`.
## Manual Verification
Ran the new
`examples/ai-functions/src/generate-text/openai/reasoning-max.ts` and
`examples/ai-functions/src/stream-text/openai/reasoning-max.ts` against
the live OpenAI API: `reasoningEffort: 'max'` is accepted and returns
reasoning summaries.
Ran the updated
`examples/ai-functions/src/stream-text/openai/reasoning.ts` against the
live OpenAI API with `gpt-5.6`: streaming works, including reasoning
summary deltas and reasoning provider metadata (the API resolves the ID
to the `gpt-5.6-sol` snapshot).
Note: `openai/gpt-5.6` is not yet served by the AI Gateway
(`model_not_found` as of this PR); the gateway model ID addition is
launch preparation.
## Checklist
- [ ] All commits are signed (PRs with unsigned commits cannot be
merged)
- [x] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 17d66c5 commit fdb6d5d
88 files changed
Lines changed: 236 additions & 82 deletions
File tree
- .changeset
- content
- docs/02-foundations
- providers/01-ai-sdk-providers
- examples
- ai-e2e-next
- agent/openai
- app
- api/chat
- reasoning-tools
- tool-timeout
- chat/upload-file
- ai-functions/src
- agent/openai
- e2e
- generate-text/openai
- registry
- stream-text-custom-loop
- stream-text/openai
- upload-skill
- openai
- angular/src
- app/chat
- next-langchain/app/api
- createAgent
- hitl
- reasoning
- next-openai-pages/app/api
- call-tool
- generate-chat
- generate-object
- generate-text
- stream-chat
- stream-text
- packages
- gateway/src
- openai/src
- chat
- responses
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2349 | 2349 | | |
2350 | 2350 | | |
2351 | 2351 | | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
2352 | 2356 | | |
2353 | 2357 | | |
2354 | 2358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments