Skip to content

Conversation

@AVtheking
Copy link
Contributor

Background

Mistral outputs strings as reference_ids frequently, but we defined the schema for it to be numbers, which result in schema validation errors

Summary

Update the refrence_ids type to be union of string and number

Manual Verification

Added a unit test with mix of numbers and string ref_ids

Checklist

  • 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)

Related Issues

Fixes #11384

@lgrammel lgrammel merged commit 45631ab into vercel:main Jan 5, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mistral reference_ids can be strings

2 participants