LangChain-ChatGLM-Webui icon indicating copy to clipboard operation
LangChain-ChatGLM-Webui copied to clipboard

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)

Open shenshaowei opened this issue 2 years ago • 2 comments

(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 avatar Mar 22 '24 04:03 shenshaowei

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

shenshaowei avatar Mar 22 '24 04:03 shenshaowei

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

damon-ldl avatar Mar 22 '24 05:03 damon-ldl