diff --git a/CHANGELOG.md b/CHANGELOG.md index a9e1d65..7905819 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.10.0-beta.2 (2024-05-28) +### Fixed +- Api version header in Service Provider - ([#100](https://github.com/openai-php/laravel/issues/100)) + ## v0.10.0-beta.1 (2024-05-27) ### Changed - Changed underlying `openai/client` package version from 0.9.1 to v0.10.0-beta.1 diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 976fcee..a6e6808 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -33,7 +33,7 @@ public function register(): void return OpenAI::factory() ->withApiKey($apiKey) ->withOrganization($organization) - ->withHttpHeader('OpenAI-Beta', 'assistants=v1') + ->withHttpHeader('OpenAI-Beta', 'assistants=v2') ->withHttpClient(new \GuzzleHttp\Client(['timeout' => config('openai.request_timeout', 30)])) ->make(); });