Skip to content

feat(vertex): add grok models to vertex provider#14883

Merged
gr2m merged 8 commits intomainfrom
aayush/vertex-grok
May 1, 2026
Merged

feat(vertex): add grok models to vertex provider#14883
gr2m merged 8 commits intomainfrom
aayush/vertex-grok

Conversation

@aayush-kapoor
Copy link
Copy Markdown
Collaborator

@aayush-kapoor aayush-kapoor commented Apr 30, 2026

Background

Vertex supports xAI's Grok models https://docs.cloud.google.com/vertex-ai/generative-ai/docs/partner-models/grok

The AI SDK didn't support those models yet

Summary

added a new provider within google vertex provider specific for XAI. Grok models couldn't be appended to just the MaaS provider since Grok models on vertex support structured outputs.

Manual Verification

  • examples/ai-functions/src/generate-text/google/vertex-xai-image-url.ts
  • examples/ai-functions/src/generate-text/google/vertex-xai-output-object.ts
  • examples/ai-functions/src/generate-text/google/vertex-xai-tool-call.ts
  • examples/ai-functions/src/generate-text/google/vertex-xai.ts
  • examples/ai-functions/src/stream-text/google/vertex-xai-output-object.ts
  • examples/ai-functions/src/stream-text/google/vertex-xai-tool-call.ts
  • examples/ai-functions/src/stream-text/google/vertex-xai.ts

Checklist

  • All commits are signed (PRs with unsigned commits cannot be merged)
  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Comment thread content/providers/01-ai-sdk-providers/16-google-vertex.mdx Outdated
Comment thread content/providers/01-ai-sdk-providers/16-google-vertex.mdx Outdated
@aayush-kapoor aayush-kapoor added the backport Admins only: add this label to a pull request in order to backport it to the prior version label May 1, 2026
@gr2m gr2m merged commit e59c955 into main May 1, 2026
22 checks passed
@gr2m gr2m deleted the aayush/vertex-grok branch May 1, 2026 16:14
github-actions Bot added a commit that referenced this pull request May 1, 2026
@github-actions github-actions Bot removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label May 1, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

⚠️ Backport to release-v6.0 created but has conflicts: #14902

aayush-kapoor added a commit that referenced this pull request May 1, 2026
This is an automated backport of #14883 to the release-v6.0 branch. FYI
@aayush-kapoor
This backport has conflicts that need to be resolved manually.

### `git cherry-pick` output

```
Auto-merging content/providers/01-ai-sdk-providers/16-google-vertex.mdx
Auto-merging packages/google-vertex/package.json
CONFLICT (content): Merge conflict in packages/google-vertex/package.json
Auto-merging packages/google-vertex/tsup.config.ts
Auto-merging packages/openai-compatible/src/chat/openai-compatible-chat-language-model.ts
CONFLICT (content): Merge conflict in packages/openai-compatible/src/chat/openai-compatible-chat-language-model.ts
Auto-merging packages/openai-compatible/src/openai-compatible-provider.ts
error: could not apply e59c955... feat(vertex): add grok models to vertex provider (#14883)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
```

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aayush Kapoor <aayushkapoor34@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants