mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[PR #14308] [CLOSED] fix: Handle special cases of LLM output not following markdown syntax #62294
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/14308
Author: @Yu-QX
Created: 5/25/2025
Status: ❌ Closed
Base:
dev← Head:main📝 Commits (1)
49fe137fix: Handle special cases of LLM output not following markdown syntax 20250525📊 Changes
2 files changed (+87 additions, -0 deletions)
View changed files
📝
src/lib/utils/index.ts(+6 -0)➕
src/lib/utils/processResponseContent/special-cases.ts(+81 -0)📄 Description
fix: Handle special cases of LLM output not following markdown syntax
The $2^{\text{nd}}$ change basing on Discussion #14085.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
specialCasesto handle special cases of LLM output that do not follow markdown syntax, particularly focusing on Chinese characters and parentheses. The function ensures that the original text is modified as little as possible while addressing specific rendering issues.Added
$lib/utils/processResponseContent/specialCases.tsto handle special cases of LLM output.$lib/utils/processResponseContent/to organize utility functions for processing response content.Changed
processResponseContentfunction in$lib/utils/index.tsto include the newspecialCasesfunction.Fixed
Additional Information
$lib/utils/processResponseContent/folder.specialCasesis designed to handle specific cases and should not be used for general markdown parsing issues.Screenshots or Videos
The changes are visual, and the screenshots demonstrate the improvement in rendering.
Before the changes:
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.