-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
embedding_document 接口报 500 错误 #248
Comments
I have this problem to
|
I found a solution for me: Had to make sure that the python manage.py collectstatic was properly making the static files in /app/static/ for production (which you can check the docker image by doing docker exec -it [container_id] sh to bring up a shell command within it, and using ls where needed. (Located within the chatgpt-ui-server repo) Next, I had to modify the /chat/llm.py file on line 141 to include an openai_api_key, like this:
There was also a string and bytes conflict with the /chat/views.py at line 162 for writing and dumping. I had to modify the code like this:
Primarily, you have to enable django_error.logfile in the settings.py and look at the error log to see what needs done for the embedding call to work. Once you have the docker image running, you can access the log file by doing
There was a lot I had to fix, and I don't remember every little step unfortunately. That should be the bulk of it though. |
上传文件接口报错
/api/chat/embedding_document
报500错误
负载:
响应:
The text was updated successfully, but these errors were encountered: