-
-
Notifications
You must be signed in to change notification settings - Fork 663
Description
Hello,
I created and changed my key today and yesterday.. But I have the errors. What can I do?
Fatal error: Uncaught OpenAI\Exceptions\ErrorException: You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. in D:\OpenServer\domains\localhost\openai\vendor\openai-php\client\src\Transporters\HttpTransporter.php:61 Stack trace: #0 D:\OpenServer\domains\localhost\openai\vendor\openai-php\client\src\Resources\Completions.php(26): OpenAI\Transporters\HttpTransporter->requestObject() #1 D:\OpenServer\domains\localhost\openai\test.php(9): OpenAI\Resources\Completions->create() #2 {main} thrown in D:\OpenServer\domains\localhost\openai\vendor\openai-php\client\src\Transporters\HttpTransporter.php on line 61