Skip to content

Commit 0d0d76e

Browse files
authored
Merge pull request #16 from frithjof/main
add assistant beta header to make it possible to use assistants
2 parents ad92976 + 4e03acc commit 0d0d76e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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=v1'])
2021

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

0 commit comments

Comments
 (0)