Skip to content

Commit

Permalink
Bumps openai-client to ^0.8.0 (#461)
Browse files Browse the repository at this point in the history
Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia committed Nov 23, 2023
1 parent d2ff3eb commit 8467057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"hyperf/config": "~3.1.0",
"hyperf/di": "~3.1.0",
"hyperf/guzzle": "~3.1.0",
"openai-php/client": "^0.7.0"
"openai-php/client": "^0.8.0"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 1 addition & 0 deletions src/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function __invoke(ContainerInterface $container)
->withBaseUri($baseUri)
->withApiKey($apiKey)
->withOrganization($organization)
->withHttpHeader('OpenAI-Beta', 'assistants=v1')
->withHttpClient($httpClient)
->make();
}
Expand Down

0 comments on commit 8467057

Please sign in to comment.