Skip to content

fix(xai): ensure strict mode for tools#12996

Merged
dancer merged 3 commits intomainfrom
aayush/xai-strict-tools
Mar 4, 2026
Merged

fix(xai): ensure strict mode for tools#12996
dancer merged 3 commits intomainfrom
aayush/xai-strict-tools

Conversation

@aayush-kapoor
Copy link
Copy Markdown
Collaborator

Background

as a follow up to #12766, we were ignoring the strict mode for tools for the xai provider

Summary

ensure choice for strict mode on tools isn't ignored for both:

  • responses api
  • chat api

Manual Verification

verified by running the example examples/ai-functions/src/generate-text/xai/strict-tool-call.ts

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • na 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)

@tigent tigent Bot added ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label bug Something isn't working as documented provider/xai Issues related to the @ai-sdk/xai provider labels Mar 2, 2026
@dancer dancer merged commit d5801fe into main Mar 4, 2026
18 checks passed
@dancer dancer deleted the aayush/xai-strict-tools branch March 4, 2026 23:15
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

vercel-ai-sdk Bot commented Mar 4, 2026

🚀 Published in:

Package Version
@ai-sdk/xai 3.0.65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label bug Something isn't working as documented provider/xai Issues related to the @ai-sdk/xai provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants