mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #17181] issue: Code interpreter output formatting seems off #33726
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?
Originally created by @rbx on GitHub (Sep 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17181
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.6.26
Ollama Version (if applicable)
0.11.7
Operating System
Fedora 42
Browser (if applicable)
Firefox
Confirmation
README.md.Expected Behavior
"Analyze" block should appear, showing only relevant code when unfolded, with a clean LLM reply afterwards. If relevant, it is using pydiode for execution.
Actual Behavior
Steps to Reproduce
Launch any task where LLM would write and execute code and examine the result, such as in the screenshot above.
Logs & Screenshots
Screenshot above.
Additional Information
After tinkering a bit with Claude Code I could get it to work with:
in https://github.com/open-webui/open-webui/blob/dev/backend/open_webui/utils/middleware.py#L1562
Then the output becomes:
But not sure if this is a good solution.
@tjbck commented on GitHub (Sep 6, 2025):
This is caused by the model not following the prompt instructions, if you use a higher end model like gpt-4o, you won't be encountering this issue.