Originally created by @truebit on GitHub (Dec 6, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/7659
pip
Open WebUI Version: 0.4.7
Operating System: macOS 15.1.1 (24B91)
Browser (if applicable): Chrome 131.0.6778.86, Firefox 133
Confirmation:
response displayed on chat page
resposne text not displayed on chat page.
I wrote a custom API using OpenAI schema, but the response cannot be updated from skeletion frame to actual text content in open-webui.
Browser Console Logs: This is the API response of api/chat/completions:
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
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):
No dependencies set.
The note is not visible to the blocked user.
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:
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
Logs and Screenshots
Browser Console Logs:
This is the API response of
api/chat/completions:This is the API respone of session
api/v1/chats/8a9e1bb4-2ecb-437f-8f75-1f41090c3720Screenshots/Screen Recordings (if applicable):