[PR #3080] Fix: Normalize Mistral tool call IDs to comply with API requirements #10530

Closed
opened 2026-02-16 18:15:12 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3080

State: closed
Merged: No


Fixes #1680

Summary

This pull request addresses an incompatibility with the Mistral API's requirements for tool call IDs. The Mistral API expects tool call IDs to be exactly 9 characters long and contain onlyalphanumeric characters (a-z, A-Z, 0-9).

The previous implementation generated longer IDs with a call_ prefix, causing tool calls to fail. This change updates the ID generation logic to produce compliant IDs, ensuring thattool-dependent workflows function correctly with Mistral models.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3080 **State:** closed **Merged:** No --- Fixes #1680 ## Summary This pull request addresses an incompatibility with the Mistral API's requirements for tool call IDs. The Mistral API expects tool call IDs to be exactly 9 characters long and contain onlyalphanumeric characters (`a-z`, `A-Z`, `0-9`). The previous implementation generated longer IDs with a `call_` prefix, causing tool calls to fail. This change updates the ID generation logic to produce compliant IDs, ensuring thattool-dependent workflows function correctly with Mistral models.
yindo added the pull-request label 2026-02-16 18:15:12 -05:00
yindo closed this issue 2026-02-16 18:15:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10530