Langchain-Chatchat ValueError: 标签 "< |endoftext|>" 与任何已知的颜色指令都不对应,请确保您没有拼写错误(或在前面加上 '\' 以对其进行转义)

dy2hfwbg  于 2个月前  发布在  其他
关注(0)|答案(3)|浏览(56)
INFO: 127.0.0.1:37464 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 396, in run_asgi
 result = await app( # type: ignore[func-returns-value]
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in **call
 return await self.app(scope, receive, send)
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in **call
 await super().**call(scope, receive, send)
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/applications.py", line 123, in **call
 await self.middleware_stack(scope, receive, send)
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in **call
 raise exc
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in **call
 await self.app(scope, receive, _send)
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in **call
 await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
 raise exc
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
 await app(scope, receive, sender)
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/routing.py", line 758, in **call
 await self.app(scope, receive, send)
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/routing.py", line 778, in app
 await route.handle(scope, receive, send)
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/routing.py", line 299, in handle
 await self.app(scope, receive, send)
File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/routing.py", line 79, in app
 await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/data/anaconda3/envs/chatchat//site-packages//fastapi//routing.py", line 299, in app
 raise e
File "/data/anaconda3
4bbkushb

4bbkushb1#

使用qwen2-instruct

mzsu5hc0

mzsu5hc03#

这个报错是 logger 里颜色标记错误。你可以把下面这句注解掉试试:

File "/data/anaconda3/envs/chatchat/lib/python3.10/site-packages/chatchat/server/api_server/openai_routes.py", line 145, in create_chat_completions
logger.debug(body)

相关问题