在使用qwen2来进行数据库对话时,报错 UnicodeEncodeError: 'latin-1' codec can't encode characters
具体报错如下:
INFO: 127.0.0.1:50933 - "POST /chat/chat/completions HTTP/1.1" 500 Internal Server Error
2024-08-20 16:18:56,444 httpx 17356 INFO HTTP Request: POST http://127.0.0.1:7861/chat/chat/completions "HTTP/1.1 500 Internal Server Error"
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\Users\dell\anaconda3\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 398, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "C:\Users\dell\anaconda3\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 70, in __call__
return await self.app(scope, receive, send)
中间省略...........
File "C:\Users\dell\anaconda3\lib\site-packages\sqlalchemy\pool\base.py", line 896, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
File "C:\Users\dell\anaconda3\l

最低0.47元/天 解锁文章
2815

被折叠的 条评论
为什么被折叠?



