[GH-ISSUE #12653] issue: math formulas output overflow #16671

Closed
opened 2026-04-19 22:33:30 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @harrywang on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12653

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

0.6.2

Ollama Version (if applicable)

No response

Operating System

Ubuntu 22.04

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using 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 listed steps to reproduce the bug in detail.

Expected Behavior

Prompt used:

I'm building a solar power installation and I need help working out the financials.- Land costs $100 / square foot - I can buy solar panels for $250 / square foot - I negotiated a contract for maintenance that will cost me a flat $100k per year, and an additional $10 / square foot. What is the total cost for the first year of operations as a function of the number of square feet.

Expect to see formatted output.

Actual Behavior

Overflow as shown:

Image Image

Steps to Reproduce

choose two or more models and use

I'm building a solar power installation and I need help working out the financials.- Land costs $100 / square foot - I can buy solar panels for $250 / square foot - I negotiated a contract for maintenance that will cost me a flat $100k per year, and an additional $10 / square foot. What is the total cost for the first year of operations as a function of the number of square feet.

Logs & Screenshots

see above

Additional Information

No response

Originally created by @harrywang on GitHub (Apr 9, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/12653 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.6.2 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 22.04 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior Prompt used: I'm building a solar power installation and I need help working out the financials.- Land costs $100 / square foot - I can buy solar panels for $250 / square foot - I negotiated a contract for maintenance that will cost me a flat $100k per year, and an additional $10 / square foot. What is the total cost for the first year of operations as a function of the number of square feet. Expect to see formatted output. ### Actual Behavior Overflow as shown: <img width="1183" alt="Image" src="https://github.com/user-attachments/assets/f56f86e2-f57a-4bdb-8301-45032707c860" /> <img width="1176" alt="Image" src="https://github.com/user-attachments/assets/521fc8c3-77eb-4179-a0dc-23c9c1f38e33" /> ### Steps to Reproduce choose two or more models and use I'm building a solar power installation and I need help working out the financials.- Land costs $100 / square foot - I can buy solar panels for $250 / square foot - I negotiated a contract for maintenance that will cost me a flat $100k per year, and an additional $10 / square foot. What is the total cost for the first year of operations as a function of the number of square feet. ### Logs & Screenshots see above ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-19 22:33:30 -05:00
Author
Owner

@tjbck commented on GitHub (Apr 10, 2025):

ChatGPT experiences the same issue, solution here isn't trivial. PR Welcome!

<!-- gh-comment-id:2794296315 --> @tjbck commented on GitHub (Apr 10, 2025): ChatGPT experiences the same issue, solution here isn't trivial. PR Welcome!
Author
Owner

@mbeps commented on GitHub (Apr 12, 2025):

I remember dealing with this in one of my projects but it was NextJS (React) and not Svelte so I am not sure if the same logic will fix it. If anyone still wants to see that code as inspiration or maybe because it could be helpful it is at https://github.com/mbeps/personal-portfolio/tree/main/components/Reader

<!-- gh-comment-id:2798963582 --> @mbeps commented on GitHub (Apr 12, 2025): I remember dealing with this in one of my projects but it was NextJS (React) and not Svelte so I am not sure if the same logic will fix it. If anyone still wants to see that code as inspiration or maybe because it could be helpful it is at https://github.com/mbeps/personal-portfolio/tree/main/components/Reader
Author
Owner

@tjbck commented on GitHub (Apr 13, 2025):

Addressed with d5ee39de21

<!-- gh-comment-id:2799530169 --> @tjbck commented on GitHub (Apr 13, 2025): Addressed with d5ee39de21797190d7daf0d1c60fe377b7ee4e48
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16671