DocsGPT 选择源代码文档

bwleehnv  于 5个月前  发布在  其他
关注(0)|答案(6)|浏览(60)

选择源代码文档弹出窗口在前端。

Ubuntu控制台:

AttributeError: 'str' object has no attribute 'reverse'
docsgpt-backend-1   | Traceback (most recent call last):
docsgpt-backend-1   |   File "/app/app.py", line 335, in api_answer
docsgpt-backend-1   |     history.reverse()
docsgpt-backend-1   | AttributeError: 'str' object has no attribute 'reverse'
docsgpt-redis-1     | 1:M 15 Aug 2023 12:36:09.116 * DB saved on disk
docsgpt-redis-1     | 1:M 15 Aug 2023 12:36:10.243 * DB saved on disk
docsgpt-redis-1     | 1:M 15 Aug 2023 12:36:12.774 # Failed opening the RDB file root (in server root dir /var/spool/cron) for saving: Permission denied
docsgpt-redis-1     | 1:M 15 Aug 2023 12:36:13.314 # Failed opening the RDB file root (in server root dir /etc/crontabs) for saving: Permission denied
docsgpt-redis-1     | 1:M 15 Aug 2023 12:36:13.662 # Failed opening the RDB file root (in server root dir /etc/crontabs) for saving: Permission denied

8zzbczxx

8zzbczxx1#

我遇到了同样的问题。

pepwfjgg

pepwfjgg2#

我在Docker中发现了一个错误信息,无法将SELF_HOSTED_MODEL转换为布尔值。然后我尝试通过在.env文件中添加SELF_HOSTED_MODEL=false并重启docker compose来修复它。这起作用了。

h9a6wy2h

h9a6wy2h3#

谢谢,@panapol-p
它起作用了

ukdjmx9f

ukdjmx9f4#

@AonBalouch i try to add SELF_HOSTED_MODEL=false into .env file and restart docker compose, that error message disappear, but i still can't Select Source Documentation popup on frontend.
env as follow:
LLM_NAME=llama.cpp
VITE_API_STREAMING=true
EMBEDDINGS_NAME=huggingface_sentence-transformers/all-mpnet-base-v2
SELF_HOSTED_MODEL=false
but when i docker logs -f docgpt_redis_1, i got this warning message:
WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see jemalloc/jemalloc#1328 . To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

7gs2gvoe

7gs2gvoe5#

当前端无法访问后端时,会出现这个问题。

zbdgwd5y

zbdgwd5y6#

@bck01215 你说得对,现在我已经解决了这个问题,但是源代码没有像演示网站那样显示,我不知道如何更改这些源代码。

相关问题