Skip to content

fix(provider): extend mistral transform to codestral, pixtral, mixtra…#16638

Open
tobwen wants to merge 1 commit intoanomalyco:devfrom
tobwen:fix/mistral-family-transform
Open

fix(provider): extend mistral transform to codestral, pixtral, mixtra…#16638
tobwen wants to merge 1 commit intoanomalyco:devfrom
tobwen:fix/mistral-family-transform

Conversation

@tobwen
Copy link
Copy Markdown
Contributor

@tobwen tobwen commented Mar 8, 2026

Issue for this PR

Closes #16636, extends #2440

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Extends #2440 by adding codestral, pixtral, and mixtral to the Mistral family transform. These were missing in the previous PR, so tool call IDs were not normalized to the required 9-character alphanumeric format when these models run via @ai-sdk/openai-compatible (like with Ollama).

The condition is now expressed as:

["codestral", "devstral", "mistral", "mixtral", "pixtral"].some((s) =>
  model.providerID === s || model.api.id.toLowerCase().includes(s),
)

How did you verify your code works?

Added tests for codestral, pixtral, and mixtral tool call ID normalization. 108 tests pass.

Screenshots / recordings

No UI changes.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@tobwen tobwen force-pushed the fix/mistral-family-transform branch 3 times, most recently from 654f666 to 82b5281 Compare March 9, 2026 00:54
@tobwen tobwen force-pushed the fix/mistral-family-transform branch 2 times, most recently from 50bcceb to efbb216 Compare March 9, 2026 18:32
@tobwen tobwen marked this pull request as draft March 9, 2026 18:45
@tobwen tobwen force-pushed the fix/mistral-family-transform branch from efbb216 to 931d14e Compare March 13, 2026 03:22
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.

[BUG]: codestral, pixtral, mixtral skip Mistral tool call transform (has fix)

1 participant