mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 22:21:27 -05:00
[PR #1741] [MERGED] fix: Improve katex render performance in responses #7559
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/1741
Author: @domsleee
Created: 4/25/2024
Status: ✅ Merged
Merged: 4/25/2024
Merged by: @tjbck
Base:
dev← Head:katex-render-performance📝 Commits (2)
06a6136fix: improve katex render performance in responsesdcb92f7refac: naming convention📊 Changes
2 files changed (+4 additions, -3 deletions)
View changed files
📝
backend/start_windows.bat(+1 -1)📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+3 -2)📄 Description
Pull Request Checklist
Description
Improve render performance of katex by making
ResponseMessageonly call katexauto_renderon its children, instead of the entiredocument.This is much faster since every time a token is received, every
ResponseMessageis rendered again.Related: #1740
Changelog Entry
Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.