[PR #268] [CLOSED] fix: decode the message to render them onto UI #7029

Closed
opened 2025-11-11 17:14:56 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/268
Author: @anuraagdjain
Created: 12/23/2023
Status: Closed

Base: mainHead: fix/267


📝 Commits (2)

  • 3601e58 fix: decode the component to render them onto UI
  • 6bbc541 Merge branch 'main' into fix/267

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/routes/(app)/+page.svelte (+1 -1)

📄 Description

Fixes this bug https://github.com/ollama-webui/ollama-webui/issues/267. The received response contains raw characters which we have to decode to convert "\u003c" to "<".

{
    "model": "deepseek-coder:6.7b",
    "created_at": "2023-12-23T14:16:01.764806Z",
    "message": {
        "role": "assistant",
        "content": "\u003c"
    },
    "done": false
}

Before
image

After

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/268 **Author:** [@anuraagdjain](https://github.com/anuraagdjain) **Created:** 12/23/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/267` --- ### 📝 Commits (2) - [`3601e58`](https://github.com/open-webui/open-webui/commit/3601e58ea2291937ea87ae12a69fab444d31ac7d) fix: decode the component to render them onto UI - [`6bbc541`](https://github.com/open-webui/open-webui/commit/6bbc541d21455224ae82eb71320c5a73a8b224d4) Merge branch 'main' into fix/267 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/routes/(app)/+page.svelte` (+1 -1) </details> ### 📄 Description Fixes this bug https://github.com/ollama-webui/ollama-webui/issues/267. The received response contains raw characters which we have to decode to convert "\u003c" to "<". ```json { "model": "deepseek-coder:6.7b", "created_at": "2023-12-23T14:16:01.764806Z", "message": { "role": "assistant", "content": "\u003c" }, "done": false } ``` **Before** <img width="785" alt="image" src="https://github.com/ollama-webui/ollama-webui/assets/4705103/b4a99245-7ecf-4b93-99d3-8d7b3cdc2e45"> **After** ![image](https://github.com/ollama-webui/ollama-webui/assets/4705103/71ab73e4-31f7-456f-9fd9-f7075fe969f2) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:14:56 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7029