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 3472ab4 commit 7738937Copy full SHA for 7738937
src/Providers/OpenAI/MessageMapper.php
@@ -18,6 +18,7 @@
18
use NeuronAI\Exceptions\ProviderException;
19
use NeuronAI\Providers\MessageMapperInterface;
20
use NeuronAI\Tools\ToolInterface;
21
+use stdClass;
22
23
use function array_filter;
24
use function array_is_list;
@@ -121,7 +122,7 @@ protected function mapToolCall(ToolCallMessage $message): array
121
122
'type' => 'function',
123
'function' => [
124
'name' => $tool->getName(),
- 'arguments' => json_encode($tool->getInputs() === [] ? new \stdClass() : $tool->getInputs()),
125
+ 'arguments' => json_encode($tool->getInputs() === [] ? new stdClass() : $tool->getInputs()),
126
],
127
], $message->getTools())
128
];
0 commit comments