Commit 314cd8d
committed
fix(core): default tool-call input to {} when undefined in convertToModelMessages
When a tool has no parameters, the UI message part omits `input`.
convertToModelMessages propagated this omission, causing OpenAI to reject
the request with "Missing required parameter: arguments". Now defaults
to empty object.
Fixes #143491 parent 6e706db commit 314cd8d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
0 commit comments