Skip to content

Commit ed1f1e4

Browse files
committed
Merge branch 'main' of github.com:openai-php/symfony
2 parents 0bf2a5a + 7eee58b commit ed1f1e4

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ 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 (2024-06-19)
8+
### Changed
9+
- Specify header `OpenAI-Beta: assistants=v2`
10+
- Changed underlying `openai/client` package version to 0.10.0
11+
712
## v0.7.10 (2023-11-14)
813
### Changed
914
- Changed underlying `openai/client` package version to 0.7.10

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Finally, you may use the `openai` service to access the OpenAI API:
4646

4747
```php
4848
$result = $container->get('openai')->completions()->create([
49-
'model' => 'text-davinci-003',
49+
'model' => 'gpt-3.5-turbo-instruct',
5050
'prompt' => 'PHP is',
5151
]);
5252

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"require": {
1818
"php": "^8.1.0",
1919
"nyholm/psr7": "^1.8.2",
20-
"openai-php/client": "^0.8.5",
20+
"openai-php/client": "^0.10.2",
2121
"psr/http-client": "^1.0.3",
2222
"psr/http-factory": "^1.1.0",
2323
"symfony/config": "^5.4|^6.3|^7.1.1",

src/Resources/config/services.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
->set(Factory::class)
1818
->factory([OpenAI::class, 'factory'])
1919
->call('withHttpClient', [service('openai.http_client')])
20+
->call('withHttpHeader', ['OpenAI-Beta', 'assistants=v2'])
2021

2122
->set(Client::class)
2223
->factory([service(Factory::class), 'make'])

0 commit comments

Comments
 (0)