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
3条答案
按热度按时间4bbkushb1#
使用qwen2-instruct
vc9ivgsu2#
请问解决了吗
mzsu5hc03#
这个报错是 logger 里颜色标记错误。你可以把下面这句注解掉试试: