Skip to content

Different IPs request different things when linking to the UI #1193

@fallinloveq

Description

@fallinloveq

I am currently writing the OpenAI backend interface based on the document. I encountered an issue where the same API interface was used but the request content was different.


  1. env:
    Ubuntu 24.04.2 LTS
docker run -d \
  -p 80:8080 \
  --gpus=all \
  --ipc=host \
  -v open-webui:/app/backend/data \
  --name open-webui \
  --restart always \
  open-webui:main

openwebui接口:http://10.255.x.x:9090/v1,The necessary API endpoints have been implemented。
There are two network ports: one with a local link of 192 and one with a local area network link of 10


  1. reproduction process:
    
    1.Using a 192.168.1.x link to access openwebui, sending a question, the openwebui log output is as follows:
GET /api/v1/configs/banners HTTP/1.1 200
/api/v1/tools/ HTTP/1.1" 200
/api/v1/chats/new HTTP/1.1" 200
/api/v1/tools/ HTTP/1.1" 200
/api/v1/chats/?page=1 HTTP/1.1" 200
/api/v1/chats/7e0f861e-6d8a-4370-b71d-2244e33fb0ec HTTP/1.1" 200
/api/chat/completions HTTP/1.1" 200
/api/chat/completed HTTP/1.1" 200
/api/v1/chats/7e0f861e-6d8a-4370-b71d-2244e33fb0ec HTTP/1.1" 200
/api/v1/chats/?page=1 HTTP/1.1" 200
/api/chat/completions Response:{"status":true,"task_id":"3dd61522-5e93-4052-8f0f-20ef553e2986"}
/api/chat/completed Response:{"model":"Qwen/Qwen3.5-122B-A10B","messages":[{"id":"efb09d29-ba73-4d81-a269-8556f2fe8685","role":"user","content":"hi","timestamp":1776318332},{"id":"e73edaf5-aafe-47fd-8fcd-38fe2d31c50e","role":"assistant","content":" Hi there! How can I help you today?","timestamp":1776318332}],"chat_id":"0d5dc6f1-cd48-4ddb-9d4f-a263366a3b31","session_id":"6ceq0XiA0mD-H7o6AAAF","id":"e73edaf5-aafe-47fd-8fcd-38fe2d31c50e"}
2.Using 10.255.x.x IP remote access to send issues to openwebui, and the openwebui log outputs
/api/v1/chats/new HTTP/1.1" 200
/api/v1/tools/ HTTP/1.1" 200
/api/v1/chats/?page=1 HTTP/1.1" 200
/api/v1/chats/21a2909f-20d4-45e6-bfb2-c28ee0a8c4b2 HTTP/1.1" 200
/api/chat/completions HTTP/1.1" 200
/_app/version.json HTTP/1.1" 200
/_app/version.json HTTP/1.1" 200
/api/chat/completions Response is not task_id,but rather `data: {"id":"0c9b6d1bd301497da52764cef1c9bc04","object":"chat.completion.chunk","created":1776318646,"model":"Qwen/Qwen3.5-122B-A10B","choices":[{"index":0,"delta":{"role":null,"content":null,"reasoning_content":null,"tool_calls":null},"logprobs":null,"finish_reason":"stop","matched_stop":248046}],"usage":null}

data: [DONE]`

Cause a page error:Unexpected token 'd', "data: {"id"... is not valid JSON

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions