diff --git a/composer.json b/composer.json index 1e474c6..3cd8d0a 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": "^8.2.0", - "guzzlehttp/guzzle": "^7.9.3", + "guzzlehttp/guzzle": "^7.9.3|^8.0", "laravel/framework": "^11.29|^12.12|^13.0", "openai-php/client": "^0.20.1" }, diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index b385c8f..dc04d61 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -35,7 +35,7 @@ public function register(): void $client = OpenAI::factory() ->withApiKey($apiKey) ->withOrganization($organization) - ->withHttpClient(new \GuzzleHttp\Client(['timeout' => config('openai.request_timeout', 30)])); + ->withHttpClient(new \GuzzleHttp\Client(['timeout' => config()->integer('openai.request_timeout', 30)])); if (is_string($project)) { $client->withProject($project);