Skip to content

Commit

Permalink
Merge pull request #19 from slim-dg9/assistants-v2
Browse files Browse the repository at this point in the history
Assistants API v2 update
  • Loading branch information
GromNaN authored Jun 19, 2024
2 parents 39c3cdb + 3e99723 commit 71f3ea7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
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.1",
"openai-php/client": "^0.8.0",
"openai-php/client": "^0.10",
"psr/http-client": "^1.0.3",
"psr/http-factory": "^1.0.2",
"symfony/config": "^5.4|^6.3|^7.0",
Expand Down
4 changes: 1 addition & 3 deletions src/OpenAIBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Symfony\Component\HttpKernel\Bundle\Bundle;

final class OpenAIBundle extends Bundle
{
}
final class OpenAIBundle extends Bundle {}
2 changes: 1 addition & 1 deletion src/Resources/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
->set(Factory::class)
->factory([OpenAI::class, 'factory'])
->call('withHttpClient', [service('openai.http_client')])
->call('withHttpHeader', ['OpenAI-Beta', 'assistants=v1'])
->call('withHttpHeader', ['OpenAI-Beta', 'assistants=v2'])

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

0 comments on commit 71f3ea7

Please sign in to comment.