0xacx / chatGPT-shell-cli

Simple shell script to use OpenAI's ChatGPT and DALL-E from the terminal. No Python or JS required.
https://gptshell.cc
MIT License
1.05k stars 150 forks source link

Help this: Welcome to chatgpt.. Your request to Open AI API failed: invalid_request_error #60

Closed abdulbadii closed 1 year ago

abdulbadii commented 1 year ago

Please help solve this error in step by step explanation, after got the key:

$ chatgpt
Welcome to chatgpt. You can quit with 'exit' or 'q'.

Enter a prompt:
tesla
Your request to Open AI API failed: invalid_request_error
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)
0xacx commented 1 year ago

You need to provide the OpenAI API key to the script.

abdulbadii commented 1 year ago

correct