Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue after deploy #1

Closed
alimaqsood opened this issue Feb 3, 2023 · 5 comments
Closed

Issue after deploy #1

alimaqsood opened this issue Feb 3, 2023 · 5 comments

Comments

@alimaqsood
Copy link

Hi,

this is the only response it gives:

"Sorry, but I don't know how to answer that."

@unconv
Copy link
Owner

unconv commented Feb 3, 2023

You need to create a file called api_key.txt in the same folder as the message.php file and put your OpenAI API key there. Make sure there is no whitespace or newlines in the file and the API key is correct.

@alimaqsood
Copy link
Author

yes i have done that, and i've made sure that there is no whitespace or newlines in the file. still getting this error.

@unconv
Copy link
Owner

unconv commented Feb 3, 2023

I updated the code so that it will show the error message from the OpenAI API as a chat message. Pull the latest changes and try again.

@alimaqsood
Copy link
Author

did that, and got the error message:
"You exceeded your current quota, please check your plan and billing details."

so have to upgrade my account at openai then. thanks.

@unconv
Copy link
Owner

unconv commented Feb 3, 2023

Good to know the problem was solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants