mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-25 12:32:58 -05:00
Unable to support Chinese input #430
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @freefer on GitHub (Mar 7, 2024).
@freefer commented on GitHub (Mar 7, 2024):
2024-03-07 11:52:52 INFO: 172.17.0.1:53560 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
2024-03-07 11:52:52 http://host.docker.internal:11434
2024-03-07 11:52:52 {"model":"gemma:latest","messages":[{"role":"user","content":"hellow"},{"role":"assistant","content":""}],"options":{},"stream":true}
2024-03-07 11:52:52 INFO: 172.17.0.1:53560 - "POST /ollama/api/chat HTTP/1.1" 200 OK
2024-03-07 11:52:53 INFO: 172.17.0.1:53560 - "POST /api/v1/chats/fd65bd23-3113-4c25-b3f9-64edd1dc2e9a HTTP/1.1" 200 OK
2024-03-07 11:52:53 INFO: 172.17.0.1:53560 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
2024-03-07 11:52:53 http://host.docker.internal:11434
2024-03-07 11:52:53 INFO: 172.17.0.1:53560 - "POST /ollama/api/generate HTTP/1.1" 200 OK
2024-03-07 11:52:53 INFO: 172.17.0.1:53560 - "POST /api/v1/chats/fd65bd23-3113-4c25-b3f9-64edd1dc2e9a HTTP/1.1" 200 OK
2024-03-07 11:52:53 INFO: 172.17.0.1:53560 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
2024-03-07 11:52:53 INFO: 172.17.0.1:53560 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
2024-03-07 11:53:07 http://host.docker.internal:11434
2024-03-07 11:53:07 {"model":"gemma:latest","messages":[{"role":"user","content":"hellow"},{"role":"assistant","content":"Hello, how are you?\n\nI'm an AI language model, here to help you with your queries. Would you like me to tell you more about myself or answer a question?"},{"role":"user","content":"介绍一下JavaScript"},{"role":"assistant","content":""}],"options":{},"stream":true}
2024-03-07 11:53:07 INFO: 172.17.0.1:54364 - "POST /ollama/api/chat HTTP/1.1" 500 Internal Server Error
2024-03-07 11:53:07 INFO: 172.17.0.1:54364 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
@freefer commented on GitHub (Mar 7, 2024):
@wanderingmeow commented on GitHub (Mar 7, 2024):
This commit removed the use of
\xencoding for Unicode characters in the JSON body passed to therequests.request()function call:f04d60b6d9Before:
b'{"model":"****","messages":[{"role":"user","content":"\xe4\xbd\xa0\xe5\xa5\xbd"},{"role":"assistant","content":""}],"options":{}}'After this commit:
'{"model":"****","messages":[{"role":"user","content":"你好"},{"role":"assistant","content":""}],"options":{}}'@tjbck commented on GitHub (Mar 7, 2024):
The latest version should fix the issue, please let us know if the issue persists! Thanks!
@YuanfengZhang commented on GitHub (Mar 18, 2024):
It works well now and this thread shall be closed 👍