Skip to content

Commit 3caa544

Browse files
vercel-ai-sdk[bot]mvanhornclaudefelixarntz
authored
Backport: fix(xai): update model list - add GA models, remove beta variants (#13769)
This is an automated backport of #13720 to the release-v6.0 branch. FYI @mvanhorn Co-authored-by: Matt Van Horn <mvanhorn@users.noreply.github.com> Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Felix Arntz <felix.arntz@vercel.com> Co-authored-by: Felix Arntz <flixos90@gmail.com>
1 parent c77352d commit 3caa544

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.changeset/short-hairs-love.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@ai-sdk/gateway": patch
3+
"@ai-sdk/xai": patch
4+
---
5+
6+
chore(provider/xai): update Grok 4.20 model IDs to their non-beta versions

packages/gateway/src/gateway-language-model-settings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ export type GatewayModelId =
160160
| 'xai/grok-4-fast-reasoning'
161161
| 'xai/grok-4.1-fast-non-reasoning'
162162
| 'xai/grok-4.1-fast-reasoning'
163-
| 'xai/grok-4.20-multi-agent-beta'
164-
| 'xai/grok-4.20-non-reasoning-beta'
165-
| 'xai/grok-4.20-reasoning-beta'
163+
| 'xai/grok-4.20-multi-agent'
164+
| 'xai/grok-4.20-non-reasoning'
165+
| 'xai/grok-4.20-reasoning'
166166
| 'xai/grok-code-fast-1'
167167
| 'xiaomi/mimo-v2-flash'
168168
| 'xiaomi/mimo-v2-pro'

packages/xai/src/responses/xai-responses-options.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export type XaiResponsesModelId =
66
| 'grok-4'
77
| 'grok-4-fast-non-reasoning'
88
| 'grok-4-fast-reasoning'
9+
| 'grok-4.20-0309-non-reasoning'
10+
| 'grok-4.20-0309-reasoning'
11+
| 'grok-4.20-multi-agent-0309'
912
| (string & {});
1013

1114
/**

packages/xai/src/xai-chat-options.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export type XaiChatModelId =
66
| 'grok-4-1-fast-non-reasoning'
77
| 'grok-4-fast-non-reasoning'
88
| 'grok-4-fast-reasoning'
9+
| 'grok-4.20-0309-non-reasoning'
10+
| 'grok-4.20-0309-reasoning'
11+
| 'grok-4.20-multi-agent-0309'
912
| 'grok-code-fast-1'
1013
| 'grok-4'
1114
| 'grok-4-0709'

0 commit comments

Comments
 (0)