X-D-Lab / LangChain-ChatGLM-Webui

基于LangChain和ChatGLM-6B等系列LLM的针对本地知识库的自动问答
Apache License 2.0
3.12k stars 469 forks source link

Traceback (most recent call last): from fastchat.conversation import (compute_skip_echo_len, ImportError: cannot import name 'compute_skip_echo_len' from 'fastchat.conversation' (/home/a/miniconda3/envs/rag/lib/python3.9/site-packages/fastchat/conversation.py) #157

Open shenshaowei opened 5 months ago

shenshaowei commented 5 months ago

(rag) a@a-Super-Server:/media/a/DATA/LangChain-ChatGLM-Webui-master$ python3 app.py Traceback (most recent call last): File "/media/a/DATA/LangChain-ChatGLM-Webui-master/app.py", line 16, in from chatllm import ChatLLM File "/media/a/DATA/LangChain-ChatGLM-Webui-master/chatllm.py", line 5, in from fastchat.conversation import (compute_skip_echo_len, ImportError: cannot import name 'compute_skip_echo_len' from 'fastchat.conversation' (/home/a/miniconda3/envs/rag/lib/python3.9/site-packages/fastchat/conversation.py) 刚刚查看了fastchat,已经没这个库了怎么办

shenshaowei commented 5 months ago

已经没这个函数了,fastchat这个库conversation.py已经没有compute_skip_echo_len和get_default_conv_template咋搞??

damon-ldl commented 5 months ago

目前项目适配的应该是fschat==0.2.3这个,pip install fschat==0.2.3试试看