Replies: 3 comments
-
使用PyCharm进一步调试发现,在执行到Client类的__init__函数时,在“self._check_cluster_authenticated()”这一行代码中: |
Beta Was this translation helpful? Give feedback.
-
既然调用http://127.0.0.1:9997/v1/cluster/auth返回502,请问我是不是还需要部署什么本地服务? |
Beta Was this translation helpful? Give feedback.
-
操作系统:Windows11 |
Beta Was this translation helpful? Give feedback.
-
我根据 https://github.com/chatchat-space/Langchain-Chatchat 的README_dev.md文档,进行如下操作:
执行以下命令初始化项目配置文件和数据目录:
python cli.py init
但是运行报错:
Traceback (most recent call last):
File "D:\ProgramFiles\Miniconda\envs\Langchain-chatchat\lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "D:\ProgramFiles\Miniconda\envs\Langchain-chatchat\lib\site-packages\simplejson_init_.py", line 514, in loads
return _default_decoder.decode(s)
File "D:\ProgramFiles\Miniconda\envs\Langchain-chatchat\lib\site-packages\simplejson\decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
File "D:\ProgramFiles\Miniconda\envs\Langchain-chatchat\lib\site-packages\simplejson\decoder.py", line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\DevelopCode\DeepLearning\Langchain-Chatchat\libs\chatchat-server\chatchat\cli.py", line 7, in
from chatchat.init_database import main as kb_main, create_tables, folder2db
File "D:\DevelopCode\DeepLearning\Langchain-Chatchat\libs\chatchat-server\chatchat\init_database.py", line 11, in
from chatchat.server.knowledge_base.migrate import (
File "D:\DevelopCode\DeepLearning\Langchain-Chatchat\libs\chatchat-server\chatchat\server\knowledge_base\migrate.py", line 11, in
from chatchat.server.db.repository.knowledge_file_repository import (
File "D:\DevelopCode\DeepLearning\Langchain-Chatchat\libs\chatchat-server\chatchat\server\db\repository_init_.py", line 3, in
from .knowledge_file_repository import *
File "D:\DevelopCode\DeepLearning\Langchain-Chatchat\libs\chatchat-server\chatchat\server\db\repository\knowledge_file_repository.py", line 9, in
from chatchat.server.knowledge_base.utils import KnowledgeFile
File "D:\DevelopCode\DeepLearning\Langchain-Chatchat\libs\chatchat-server\chatchat\server\knowledge_base\utils.py", line 19, in
from chatchat.server.utils import run_in_process_pool, run_in_thread_pool
File "D:\DevelopCode\DeepLearning\Langchain-Chatchat\libs\chatchat-server\chatchat\server\utils.py", line 199, in
model_name: str = get_default_llm(),
File "D:\DevelopCode\DeepLearning\Langchain-Chatchat\libs\chatchat-server\chatchat\server\utils.py", line 180, in get_default_llm
available_llms = list(get_config_models(model_type="llm").keys())
File "D:\DevelopCode\DeepLearning\Langchain-Chatchat\libs\chatchat-server\chatchat\server\utils.py", line 134, in get_config_models
xf_client = Client(xf_url)
File "D:\ProgramFiles\Miniconda\envs\Langchain-chatchat\lib\site-packages\xinference_client\client\restful\restful_client.py", line 773, in init
self._check_cluster_authenticated()
File "D:\ProgramFiles\Miniconda\envs\Langchain-chatchat\lib\site-packages\xinference_client\client\restful\restful_client.py", line 798, in _check_cluster_authenticated
f"Failed to get cluster information, detail: {response.json()['detail']}"
File "D:\ProgramFiles\Miniconda\envs\Langchain-chatchat\lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Beta Was this translation helpful? Give feedback.
All reactions