diff --git a/CHANGELOG.md b/CHANGELOG.md index b2d0d71..c22efa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## v0.7.10 (2023-11-14) +### Changed +- Changed underlying `openai/client` package version to 0.7.10 + ## v0.4.1 (2023-03-24) ### Changed - Changed underlying `openai/client` package version from 0.4.0 to 0.4.1 diff --git a/composer.json b/composer.json index 530d8e1..67c5dca 100644 --- a/composer.json +++ b/composer.json @@ -12,20 +12,20 @@ ], "require": { "php": "^8.1.0", - "nyholm/psr7": "^1.5.1", - "openai-php/client": "^0.4.1", - "psr/http-client": "^1.0.1", - "psr/http-factory": "^1.0.1", + "nyholm/psr7": "^1.8.0", + "openai-php/client": "^v0.7.10", + "psr/http-client": "^1.0.2", + "psr/http-factory": "^1.0.2", "symfony/config": "^5.4.21|^6.2.7", - "symfony/dependency-injection": "^5.4.21|^6.2.7", - "symfony/http-client": "^5.4.21|^6.2.7", - "symfony/http-kernel": "^5.4.21|^6.2.7" + "symfony/dependency-injection": "^5.4.21|^6.2.10", + "symfony/http-client": "^5.4.21|^6.2.10", + "symfony/http-kernel": "^5.4.21|^6.2.10" }, "require-dev": { - "laravel/pint": "^1.7.0", - "phpstan/phpstan": "^1.10.8", + "laravel/pint": "^1.10.0", + "phpstan/phpstan": "^1.10.14", "rector/rector": "^0.14.8", - "symfony/phpunit-bridge": "^6.2.7" + "symfony/phpunit-bridge": "^6.2.10" }, "autoload": { "psr-4": { diff --git a/src/Resources/config/services.php b/src/Resources/config/services.php index b239f39..a4780b6 100644 --- a/src/Resources/config/services.php +++ b/src/Resources/config/services.php @@ -12,14 +12,14 @@ return static function (ContainerConfigurator $container) { $container->services() ->set('openai.http_client', Psr18Client::class) - ->arg(0, service('http_client')) + ->arg(0, service('http_client')) ->set(Factory::class) - ->factory([OpenAI::class, 'factory']) - ->call('withHttpClient', [service('openai.http_client')]) + ->factory([OpenAI::class, 'factory']) + ->call('withHttpClient', [service('openai.http_client')]) ->set(Client::class) - ->factory([service(Factory::class), 'make']) + ->factory([service(Factory::class), 'make']) ->alias('openai', Client::class); }; diff --git a/tests/DependencyInjection/OpenAIExtensionTest.php b/tests/DependencyInjection/OpenAIExtensionTest.php index 4d07166..54f225c 100644 --- a/tests/DependencyInjection/OpenAIExtensionTest.php +++ b/tests/DependencyInjection/OpenAIExtensionTest.php @@ -25,6 +25,7 @@ public function testService(): void 'http_code' => 200, 'response_headers' => [ 'content-type' => 'application/json', + 'x-request-id' => '0123456789abcdef0123456789abcdef', ], ]); });