fix: exclude name field from Mistral tool_calls (#3572)

* fix: exclude name field from Mistral tool_calls (#3572)

Add skip_serializing_if to the compatibility fields (name, arguments,
parameters) on the ToolCall struct so they are omitted from the JSON
payload when None. Mistral's API returns 422 "Extra inputs are not
permitted" when these extra null fields are present in tool_calls.

* fix: format serde attribute for CI lint compliance
This commit is contained in:
Argenis 2026-03-15 18:38:41 -04:00 committed by Roman Tataurov
parent c9c8f5df1d
commit 9c0189f255
No known key found for this signature in database
GPG Key ID: 70A51EF3185C334B

Diff Content Not Available