Skip to content

Commit

Permalink
Merge branch 'main' of github.com:openai-php/symfony
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Oct 17, 2024
2 parents 0bf2a5a + 7eee58b commit ed1f1e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ 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 (2024-06-19)
### Changed
- Specify header `OpenAI-Beta: assistants=v2`
- Changed underlying `openai/client` package version to 0.10.0

## v0.7.10 (2023-11-14)
### Changed
- Changed underlying `openai/client` package version to 0.7.10
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Finally, you may use the `openai` service to access the OpenAI API:

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

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require": {
"php": "^8.1.0",
"nyholm/psr7": "^1.8.2",
"openai-php/client": "^0.8.5",
"openai-php/client": "^0.10.2",
"psr/http-client": "^1.0.3",
"psr/http-factory": "^1.1.0",
"symfony/config": "^5.4|^6.3|^7.1.1",
Expand Down
1 change: 1 addition & 0 deletions src/Resources/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
->set(Factory::class)
->factory([OpenAI::class, 'factory'])
->call('withHttpClient', [service('openai.http_client')])
->call('withHttpHeader', ['OpenAI-Beta', 'assistants=v2'])

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

0 comments on commit ed1f1e4

Please sign in to comment.