Skip to content

Commit 71f3ea7

Browse files
authored
Merge pull request #19 from slim-dg9/assistants-v2
Assistants API v2 update
2 parents 39c3cdb + 3e99723 commit 71f3ea7

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"require": {
1818
"php": "^8.1.0",
1919
"nyholm/psr7": "^1.8.1",
20-
"openai-php/client": "^0.8.0",
20+
"openai-php/client": "^0.10",
2121
"psr/http-client": "^1.0.3",
2222
"psr/http-factory": "^1.0.2",
2323
"symfony/config": "^5.4|^6.3|^7.0",

src/OpenAIBundle.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@
66

77
use Symfony\Component\HttpKernel\Bundle\Bundle;
88

9-
final class OpenAIBundle extends Bundle
10-
{
11-
}
9+
final class OpenAIBundle extends Bundle {}

src/Resources/config/services.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
->set(Factory::class)
1818
->factory([OpenAI::class, 'factory'])
1919
->call('withHttpClient', [service('openai.http_client')])
20-
->call('withHttpHeader', ['OpenAI-Beta', 'assistants=v1'])
20+
->call('withHttpHeader', ['OpenAI-Beta', 'assistants=v2'])
2121

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

0 commit comments

Comments
 (0)