Skip to content

Commit

Permalink
Update OPENAI_ORGANIZATION_KEY env name
Browse files Browse the repository at this point in the history
  • Loading branch information
mounirrquiba committed May 22, 2023
1 parent 3e70888 commit cb259ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Abstracts/AbstractService.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function __construct(string $id = null)

if (null === $instance) {
$apiKey = getenv('OPENAI_API_KEY');
$organizationKey = getenv('OPENAI_ORGANIZATIONI_KEY');
$organizationKey = getenv('OPENAI_ORGANIZATION_KEY');

if ($apiKey) {
$this->openIa = OpenAi::init($apiKey, $organizationKey ? $organizationKey : null);
Expand Down

0 comments on commit cb259ed

Please sign in to comment.