Weixin-Liang/LLM-scientific-feedback

API issue

jianke22 opened this issue · 1 comments

I got the following error message:
Failed to generate review... 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), 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.

image

Anyone knows what is the solution?

Please add OpenAI api key by:
cat YOUR_OPENAI_API_KEY > key.txt

Replace YOUR_OPENAI_API_KEY with your OpenAI API key starting with "sk-"