openchatai / OpenChat

LLMs custom-chatbots console ⚡
https://open.cx
MIT License
5.17k stars 642 forks source link

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 11 months ago

qihanghou726 commented 11 months ago

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 commented 11 months ago

You have the OPENAI_KEY set up in .env file?

qihanghou726 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

You are using DJANGO or PHP version?

qihanghou726 commented 11 months ago

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 commented 11 months ago

.env.docker or example.env.docker

qihanghou726 commented 11 months ago

.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 commented 11 months ago

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

qihanghou726 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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

OK thanks for your guidance

qihanghou726 commented 11 months ago

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

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

qihanghou726 commented 11 months ago

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 commented 11 months ago

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

codebanesr commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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.