Giter Club home page Giter Club logo

Comments (4)

wanderingmeow avatar wanderingmeow commented on June 1, 2024 1

This commit removed the use of \x encoding for Unicode characters in the JSON body passed to the requests.request() function call: f04d60b

Before:
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":{}}'

from open-webui.

freefer avatar freefer commented on June 1, 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

from open-webui.

freefer avatar freefer commented on June 1, 2024

image

from open-webui.

tjbck avatar tjbck commented on June 1, 2024

The latest version should fix the issue, please let us know if the issue persists! Thanks!

from open-webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.