[GH-ISSUE #7659] chat response not dislayed on dialog, but presented on the title #30360

Closed
opened 2026-04-25 04:35:16 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @truebit on GitHub (Dec 6, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7659

Bug Report


Installation Method

pip

Environment

  • Open WebUI Version: 0.4.7

  • Operating System: macOS 15.1.1 (24B91)

  • Browser (if applicable): Chrome 131.0.6778.86, Firefox 133

Confirmation:

  • [ *] I have read and followed all the instructions provided in the README.md.
  • [ *] I am on the latest version of both Open WebUI and Ollama.
  • [ *] I have included the browser console logs.
  • [ *] I have included the Docker container logs.
  • [ *] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

response displayed on chat page

Actual Behavior:

resposne text not displayed on chat page.

Description

I wrote a custom API using OpenAI schema, but the response cannot be updated from skeletion frame to actual text content in open-webui.

Reproduction Details

  • add API in admin settings;
  • ask with an image and one sentence;
  • waiting for response in about 3.5 minutes.
  • the API returned with code 200.

Logs and Screenshots

Browser Console Logs:
This is the API response of api/chat/completions:

{
    "id": "chatcmpl-20241207014311",
    "object": "chat.completion",
    "created": 1733506991,
    "model": "testmodel",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "[0.11, 0.25]"
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 1403,
        "completion_tokens": 13,
        "total_tokens": 1416
    }
}

This is the API respone of session api/v1/chats/8a9e1bb4-2ecb-437f-8f75-1f41090c3720

{
    "id": "8a9e1bb4-2ecb-437f-8f75-1f41090c3720",
    "user_id": "d21f9b2b-30d9-4e42-a1f7-42e14d1a40fd",
    "title": "[0.5, 0.19]",
    "chat": {
        "id": "",
        "title": "[0.5, 0.19]",
        "models": [
            "testmodel-2b"
        ],
        "params": {},
        "history": {
            "messages": {
                "1bdaa372-33ec-47e2-a9c3-95ec42cf369c": {
                    "id": "1bdaa372-33ec-47e2-a9c3-95ec42cf369c",
                    "parentId": null,
                    "childrenIds": [
                        "76fe96b0-ef19-44b7-aa71-587adb37cf3c",
                        "5bcb82f6-b5ba-4c9f-a497-c53e866858d9"
                    ],
                    "role": "user",
                    "content": "click 茶餐厅",
                    "files": [
                        {
                            "type": "image",
                            "url": "data:image/png;base64,xxx",
                        }
                    ],
                    "timestamp": 1733505996,
                    "models": [
                        "testmodel-2b"
                    ]
                },
                "76fe96b0-ef19-44b7-aa71-587adb37cf3c": {
                    "parentId": "1bdaa372-33ec-47e2-a9c3-95ec42cf369c",
                    "id": "76fe96b0-ef19-44b7-aa71-587adb37cf3c",
                    "childrenIds": [],
                    "role": "assistant",
                    "content": "",
                    "model": "testmodel-2b",
                    "modelName": "qwen-vl2",
                    "modelIdx": 0,
                    "userContext": null,
                    "timestamp": 1733505997,
                    "done": true
                },
                "5bcb82f6-b5ba-4c9f-a497-c53e866858d9": {
                    "parentId": "1bdaa372-33ec-47e2-a9c3-95ec42cf369c",
                    "id": "5bcb82f6-b5ba-4c9f-a497-c53e866858d9",
                    "childrenIds": [],
                    "role": "assistant",
                    "content": "",
                    "model": "testmodel-2b",
                    "modelName": "qwen-vl2",
                    "modelIdx": 0,
                    "userContext": null,
                    "timestamp": 1733506831,
                    "done": true
                }
            },
            "currentId": "5bcb82f6-b5ba-4c9f-a497-c53e866858d9"
        },
        "messages": [
            {
                "id": "1bdaa372-33ec-47e2-a9c3-95ec42cf369c",
                "parentId": null,
                "childrenIds": [
                    "76fe96b0-ef19-44b7-aa71-587adb37cf3c",
                    "5bcb82f6-b5ba-4c9f-a497-c53e866858d9"
                ],
                "role": "user",
                "content": "click 茶餐厅",
                "files": [
                    {
                        "type": "image",
                        "url": "data:image/png;base64,xxx"
                    }
                ],
                "timestamp": 1733505996,
                "models": [
                    "testmodel-2b"
                ]
            },
            {
                "parentId": "1bdaa372-33ec-47e2-a9c3-95ec42cf369c",
                "id": "5bcb82f6-b5ba-4c9f-a497-c53e866858d9",
                "childrenIds": [],
                "role": "assistant",
                "content": "",
                "model": "testmodel-2b",
                "modelName": "qwen-vl2",
                "modelIdx": 0,
                "userContext": null,
                "timestamp": 1733506831,
                "done": true
            }
        ],
        "tags": [],
        "timestamp": 1733505996920,
        "files": []
    },
    "updated_at": 1733506992,
    "created_at": 1733505996,
    "share_id": null,
    "archived": false,
    "pinned": false,
    "meta": {},
    "folder_id": null
}

Screenshots/Screen Recordings (if applicable):

图片

Originally created by @truebit on GitHub (Dec 6, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/7659 # Bug Report --- ## Installation Method pip ## Environment - **Open WebUI Version:** 0.4.7 - **Operating System:** macOS 15.1.1 (24B91) - **Browser (if applicable):** Chrome 131.0.6778.86, Firefox 133 **Confirmation:** - [ *] I have read and followed all the instructions provided in the README.md. - [ *] I am on the latest version of both Open WebUI and Ollama. - [ *] I have included the browser console logs. - [ *] I have included the Docker container logs. - [ *] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: response displayed on chat page ## Actual Behavior: resposne text not displayed on chat page. ## Description I wrote a custom API using OpenAI schema, but the response cannot be updated from skeletion frame to actual text content in open-webui. ## Reproduction Details - add API in admin settings; - ask with an image and one sentence; - waiting for response in about 3.5 minutes. - the API returned with code 200. ## Logs and Screenshots **Browser Console Logs:** This is the API response of `api/chat/completions`: ```json { "id": "chatcmpl-20241207014311", "object": "chat.completion", "created": 1733506991, "model": "testmodel", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "[0.11, 0.25]" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 1403, "completion_tokens": 13, "total_tokens": 1416 } } ``` This is the API respone of session `api/v1/chats/8a9e1bb4-2ecb-437f-8f75-1f41090c3720` ```json { "id": "8a9e1bb4-2ecb-437f-8f75-1f41090c3720", "user_id": "d21f9b2b-30d9-4e42-a1f7-42e14d1a40fd", "title": "[0.5, 0.19]", "chat": { "id": "", "title": "[0.5, 0.19]", "models": [ "testmodel-2b" ], "params": {}, "history": { "messages": { "1bdaa372-33ec-47e2-a9c3-95ec42cf369c": { "id": "1bdaa372-33ec-47e2-a9c3-95ec42cf369c", "parentId": null, "childrenIds": [ "76fe96b0-ef19-44b7-aa71-587adb37cf3c", "5bcb82f6-b5ba-4c9f-a497-c53e866858d9" ], "role": "user", "content": "click 茶餐厅", "files": [ { "type": "image", "url": "data:image/png;base64,xxx", } ], "timestamp": 1733505996, "models": [ "testmodel-2b" ] }, "76fe96b0-ef19-44b7-aa71-587adb37cf3c": { "parentId": "1bdaa372-33ec-47e2-a9c3-95ec42cf369c", "id": "76fe96b0-ef19-44b7-aa71-587adb37cf3c", "childrenIds": [], "role": "assistant", "content": "", "model": "testmodel-2b", "modelName": "qwen-vl2", "modelIdx": 0, "userContext": null, "timestamp": 1733505997, "done": true }, "5bcb82f6-b5ba-4c9f-a497-c53e866858d9": { "parentId": "1bdaa372-33ec-47e2-a9c3-95ec42cf369c", "id": "5bcb82f6-b5ba-4c9f-a497-c53e866858d9", "childrenIds": [], "role": "assistant", "content": "", "model": "testmodel-2b", "modelName": "qwen-vl2", "modelIdx": 0, "userContext": null, "timestamp": 1733506831, "done": true } }, "currentId": "5bcb82f6-b5ba-4c9f-a497-c53e866858d9" }, "messages": [ { "id": "1bdaa372-33ec-47e2-a9c3-95ec42cf369c", "parentId": null, "childrenIds": [ "76fe96b0-ef19-44b7-aa71-587adb37cf3c", "5bcb82f6-b5ba-4c9f-a497-c53e866858d9" ], "role": "user", "content": "click 茶餐厅", "files": [ { "type": "image", "url": "data:image/png;base64,xxx" } ], "timestamp": 1733505996, "models": [ "testmodel-2b" ] }, { "parentId": "1bdaa372-33ec-47e2-a9c3-95ec42cf369c", "id": "5bcb82f6-b5ba-4c9f-a497-c53e866858d9", "childrenIds": [], "role": "assistant", "content": "", "model": "testmodel-2b", "modelName": "qwen-vl2", "modelIdx": 0, "userContext": null, "timestamp": 1733506831, "done": true } ], "tags": [], "timestamp": 1733505996920, "files": [] }, "updated_at": 1733506992, "created_at": 1733505996, "share_id": null, "archived": false, "pinned": false, "meta": {}, "folder_id": null } ``` **Screenshots/Screen Recordings (if applicable):** ![图片](https://github.com/user-attachments/assets/b6edba8c-8d9f-4667-a10f-90950a798e57)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#30360