Skip to content

Commit ad76865

Browse files
author
miroslav
committed
Feature: update config
1 parent 07bef19 commit ad76865

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

config/laravel-openai.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
return [
4+
'base_url' => 'https://api.openai.com/v1',
5+
'api_key' => env('OPENAI_API_KEY'),
6+
];

src/Services/API/Auth/AuthService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ class AuthService
66
{
77
public function getToken(): string
88
{
9-
return config('laravel-openai.token');
9+
return config('laravel-openai.api_key');
1010
}
1111
}

0 commit comments

Comments
 (0)