diff --git a/composer.json b/composer.json index 888715c..c2712a1 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "require": { "php": "^8.1.0", "nyholm/psr7": "^1.8.1", - "openai-php/client": "^0.8.0", + "openai-php/client": "^0.10", "psr/http-client": "^1.0.3", "psr/http-factory": "^1.0.2", "symfony/config": "^5.4|^6.3|^7.0", diff --git a/src/OpenAIBundle.php b/src/OpenAIBundle.php index 4a58def..c14715b 100644 --- a/src/OpenAIBundle.php +++ b/src/OpenAIBundle.php @@ -6,6 +6,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle; -final class OpenAIBundle extends Bundle -{ -} +final class OpenAIBundle extends Bundle {} diff --git a/src/Resources/config/services.php b/src/Resources/config/services.php index 42ad5b5..5f00864 100644 --- a/src/Resources/config/services.php +++ b/src/Resources/config/services.php @@ -17,7 +17,7 @@ ->set(Factory::class) ->factory([OpenAI::class, 'factory']) ->call('withHttpClient', [service('openai.http_client')]) - ->call('withHttpHeader', ['OpenAI-Beta', 'assistants=v1']) + ->call('withHttpHeader', ['OpenAI-Beta', 'assistants=v2']) ->set(Client::class) ->factory([service(Factory::class), 'make'])