diff --git a/app/Services/GeminiIntentService.php b/app/Services/GeminiIntentService.php index eb250e0..132d820 100755 --- a/app/Services/GeminiIntentService.php +++ b/app/Services/GeminiIntentService.php @@ -27,7 +27,11 @@ class GeminiIntentService { return [ 'contents' => $contents, - 'generationConfig' => array_merge(['temperature' => 0.1, 'maxOutputTokens' => 1024], $genConfig), + 'generationConfig' => array_merge([ + 'temperature' => 0.1, + 'maxOutputTokens' => 2048, + 'thinkingConfig' => ['thinkingBudget' => 0], + ], $genConfig), ]; } diff --git a/app/Services/GeminiVisionService.php b/app/Services/GeminiVisionService.php index cd84048..0c00e94 100755 --- a/app/Services/GeminiVisionService.php +++ b/app/Services/GeminiVisionService.php @@ -34,7 +34,11 @@ class GeminiVisionService $body = [ 'contents' => $contents, - 'generationConfig' => ['temperature' => 0.1, 'maxOutputTokens' => 2048], + 'generationConfig' => [ + 'temperature' => 0.1, + 'maxOutputTokens' => 8192, + 'thinkingConfig' => ['thinkingBudget' => 0], + ], ]; $inicio = microtime(true);