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

After starting correctly, the website cannot be put in and the chatbot reports an error:The request was received successfully, but the LLM server was unable to handle it, please make sure your env keys are set correctly. code: llm5XX #170

Open
qihanghou726 opened this issue Oct 18, 2023 · 17 comments

Comments

@qihanghou726
Copy link

The request was received successfully, but the LLM server was unable to handle it, please make sure your env keys are set correctly. code: llm5XX,

@lvalics
Copy link
Collaborator

lvalics commented Oct 18, 2023

You have the OPENAI_KEY set up in .env file?

@qihanghou726
Copy link
Author

You have the OPENAI_KEY set up in .env file?
Thank you for your reply.
In which folder is the .env? I watched a tutorial and he asked me to fill in the contents of common.env in the home directory and rename the file to .env.docker. I also need to copy the .env.docker file separately. Go to the home directory and dj_backend_server directory. I can make sure that in both files my openai_api_key is filled in.

@qihanghou726
Copy link
Author

You have the OPENAI_KEY set up in .env file?
Which .env file are you talking about and in which directory is it located?

@lvalics
Copy link
Collaborator

lvalics commented Oct 18, 2023

You are using DJANGO or PHP version?

@qihanghou726
Copy link
Author

You are using DJANGO or PHP version?

I think I am using DJANGO because the directory he asked me to change is dj_backend server. Does this require me to make any preparations?

@lvalics
Copy link
Collaborator

lvalics commented Oct 18, 2023

.env.docker or example.env.docker

@qihanghou726
Copy link
Author

.env.docker or example.env.docker
I think I am using DJANGO because the directory he asked me to change is dj_backend server. Does this require me to make any preparations?
If it's possible, thank you very much.

@lvalics
Copy link
Collaborator

lvalics commented Oct 19, 2023

Edit this file: .env.docker or example.env.docker

@qihanghou726
Copy link
Author

Edit this file: .env.docker or example.env.docker
I modified it, but it still didn't work. I sent a message to the chatbot and it returned "error sending the message."

@lvalics
Copy link
Collaborator

lvalics commented Oct 19, 2023

The DJANGO (Python) version is still in dev. Use the PHP version, as I know is compatible with the same database. Django part will be better when will be finished. I wait for that as well. :-)

@qihanghou726
Copy link
Author

DJANGO (Python) 版本仍在开发中。使用PHP版本,据我所知兼容相同的数据库。Django 部分完成后会更好。我也在等那个。:-)

OK thanks for your guidance

@qihanghou726
Copy link
Author

DJANGO (Python) 版本仍在开发中。使用PHP版本,据我所知兼容相同的数据库。Django 部分完成后会更好。我也在等那个。:-)

What should I do to start it with php? Can you tell me briefly?

@qihanghou726
Copy link
Author

The DJANGO (Python) version is still in dev. Use the PHP version, as I know is compatible with the same database. Django part will be better when will be finished. I wait for that as well. :-)

Or where can I know the php version of OPENCHAT?

@lvalics
Copy link
Collaborator

lvalics commented Oct 19, 2023

PHP documentation is quite OK, please read the instalation manual.

@codebanesr
Copy link
Contributor

codebanesr commented Oct 19, 2023

Adding correct credentials to .env.docker will work. It is compatible with docker too.
You will find two docker files, one for mac environment, and the other for linux. Let me know if you face any issue.

The full documentation can be found here
https://github.com/openchatai/OpenChat/blob/60693cb2cf111daa65ad8407f43bcf5cb5494933/dj_backend_server/readme.md

If you still face issue, please reach out to us

@qihanghou726
Copy link
Author

Adding correct credentials to .env.docker will work. It is compatible with docker too. You will find two docker files, one for mac environment, and the other for linux. Let me know if you face any issue.

The full documentation can be found here https://github.com/openchatai/OpenChat/blob/60693cb2cf111daa65ad8407f43bcf5cb5494933/dj_backend_server/readme.md

If you still face issue, please reach out to us

OPENAI_API_KEY=xxxxxxxxxxxxxxxxxx
STORE=pinecone
PINECONE_API_KEY=xxxxxxxxxxxxxxxxxxx

PINECONE_ENV=xxxxx

VECTOR_STORE_INDEX_NAME=xxxx
I filled this out in my .env.docker, is there anything else I need to add?

@qihanghou726
Copy link
Author

Adding correct credentials to .env.docker will work. It is compatible with docker too. You will find two docker files, one for mac environment, and the other for linux. Let me know if you face any issue.

The full documentation can be found here https://github.com/openchatai/OpenChat/blob/60693cb2cf111daa65ad8407f43bcf5cb5494933/dj_backend_server/readme.md

If you still face issue, please reach out to us

I saw a .common.env file in the home directory of OpenChat, and my .env.docker was filled in based on this file.

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

3 participants