Skip to content

Commit

Permalink
Switch from legacy to latest version of Assistants (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
rashidlaasri authored Jun 12, 2024
1 parent 8d3c57b commit ed1019c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChatBotServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function registerServices(): void
$openAI = OpenAIFactory::factory()
->withApiKey($apiKey)
->withOrganization($organization)
->withHttpHeader('OpenAI-Beta', 'assistants=v1')
->withHttpHeader('OpenAI-Beta', 'assistants=v2')
->withHttpClient(new \GuzzleHttp\Client(['timeout' => config('chatbot.request_timeout', 30)]))
->make();

Expand Down

0 comments on commit ed1019c

Please sign in to comment.