We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aadd1b7 commit 3472ab4Copy full SHA for 3472ab4
src/Providers/OpenAI/MessageMapper.php
@@ -121,7 +121,7 @@ protected function mapToolCall(ToolCallMessage $message): array
121
'type' => 'function',
122
'function' => [
123
'name' => $tool->getName(),
124
- ...($tool->getInputs() === [] ? [] : ['arguments' => json_encode($tool->getInputs())]),
+ 'arguments' => json_encode($tool->getInputs() === [] ? new \stdClass() : $tool->getInputs()),
125
],
126
], $message->getTools())
127
];
0 commit comments