Commit 7871ffb
authored
fix(Mistral): default tool call type to function for Mistral compatibility (#744)
The Mistral API currently omits the `type` attribute in its tool call
responses, which causes an `Undefined array key "type"` exception.
This commit defaults the missing `type` to `'function'` (the standard
supported type per OpenAI documentation) to prevent runtime errors
and ensure broader compatibility with OpenAI-compatible APIs.
Fixes #3971 parent fae210e commit 7871ffb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments