Skip to content

Commit 24643b2

Browse files
committed
Merge branch '0.10.x'
2 parents d88dc48 + f3569e5 commit 24643b2

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## v0.10.0-beta.2 (2024-05-28)
8+
### Fixed
9+
- Api version header in Service Provider - ([#100](https://github.com/openai-php/laravel/issues/100))
10+
11+
## v0.10.0-beta.1 (2024-05-27)
12+
### Changed
13+
- Changed underlying `openai/client` package version from 0.9.1 to v0.10.0-beta.1
14+
715
## v0.9.1 (2024-05-25)
816
### Changed
917
- Changed underlying `openai/client` package version from 0.9.0 to v0.9.1

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"php": "^8.1.0",
1414
"guzzlehttp/guzzle": "^7.8.1",
1515
"laravel/framework": "^9.46.0|^10.34.2|^11.0",
16-
"openai-php/client": "^v0.9.1"
16+
"openai-php/client": "^v0.10.0-beta.1"
1717
},
1818
"require-dev": {
1919
"laravel/pint": "^1.13.6",

src/Facades/OpenAI.php

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* @method static \OpenAI\Resources\Models models()
2424
* @method static \OpenAI\Resources\Moderations moderations()
2525
* @method static \OpenAI\Resources\Threads threads()
26+
* @method static \OpenAI\Resources\VectorStores vectorStores()
2627
*/
2728
final class OpenAI extends Facade
2829
{

src/ServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function register(): void
3333
return OpenAI::factory()
3434
->withApiKey($apiKey)
3535
->withOrganization($organization)
36-
->withHttpHeader('OpenAI-Beta', 'assistants=v1')
36+
->withHttpHeader('OpenAI-Beta', 'assistants=v2')
3737
->withHttpClient(new \GuzzleHttp\Client(['timeout' => config('openai.request_timeout', 30)]))
3838
->make();
3939
});

0 commit comments

Comments
 (0)