Skip to content

Commit f510133

Browse files
authored
Fix gemini stream handler sends empty array for thinkingConfig (#420)
1 parent c2bde59 commit f510133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/Gemini/Handlers/Stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ protected function sendRequest(Request $request): Response
245245
'maxOutputTokens' => $request->maxTokens(),
246246
'thinkingConfig' => Arr::whereNotNull([
247247
'thinkingBudget' => $providerOptions['thinkingBudget'] ?? null,
248-
]),
248+
]) ?: null,
249249
]),
250250
'tools' => $tools !== [] ? $tools : null,
251251
'tool_config' => $request->toolChoice() ? ToolChoiceMap::map($request->toolChoice()) : null,

0 commit comments

Comments
 (0)