Skip to content

Commit

Permalink
Assistant v2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
slim-dg9 authored and slimacek committed Jun 7, 2024
1 parent 26f9b8b commit 4aaf134
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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
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 4aaf134

Please sign in to comment.