OpenChat icon indicating copy to clipboard operation
OpenChat copied to clipboard

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

Open qihanghou726 opened this issue 2 years ago • 17 comments

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,

qihanghou726 avatar Oct 18 '23 02:10 qihanghou726

You have the OPENAI_KEY set up in .env file?

lvalics avatar Oct 18 '23 07:10 lvalics

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 avatar Oct 18 '23 13:10 qihanghou726

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

qihanghou726 avatar Oct 18 '23 13:10 qihanghou726

You are using DJANGO or PHP version?

lvalics avatar Oct 18 '23 13:10 lvalics

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?

qihanghou726 avatar Oct 18 '23 16:10 qihanghou726

.env.docker or example.env.docker

lvalics avatar Oct 18 '23 16:10 lvalics

.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.

qihanghou726 avatar Oct 19 '23 09:10 qihanghou726

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

lvalics avatar Oct 19 '23 10:10 lvalics

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."

qihanghou726 avatar Oct 19 '23 10:10 qihanghou726

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. :-)

lvalics avatar Oct 19 '23 10:10 lvalics

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

OK thanks for your guidance

qihanghou726 avatar Oct 19 '23 10:10 qihanghou726

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

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

qihanghou726 avatar Oct 19 '23 10:10 qihanghou726

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?

qihanghou726 avatar Oct 19 '23 10:10 qihanghou726

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

lvalics avatar Oct 19 '23 11:10 lvalics

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

codebanesr avatar Oct 19 '23 20:10 codebanesr

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 avatar Oct 23 '23 05:10 qihanghou726

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.

qihanghou726 avatar Oct 23 '23 06:10 qihanghou726