mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #12008] issue: excessive quote in code execution output #55101
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 @IvanVolosyuk on GitHub (Mar 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12008
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.5.20
Ollama Version (if applicable)
0.6.0
Operating System
Ubunu 24.04
Browser (if applicable)
Chrome134.0.6998.117
Confirmation
README.md.Expected Behavior
Code interpreter backend: jupyter.
I asked model to generate prime numbers from [2000, 2100]. The code produced by LLM looks sane and output produced and fed into LLM is sane, except for the formatting.
I would have expected something like:
`output {stdout: [2003, 2011, 2017, 2027, 2029, 2039, 2053, 2063, 2069, 2081, 2083, 2087, 2089, 2099], stderr: , result: 0}`Actual Behavior
I looked at the ollama request generated by openweb ui after code execution and it looks like it has excessive " tokens:
The request was captured using wireshark tcp sniffer.
Steps to Reproduce
Use gemma3:4b model and made query:
Write code to generate prime numbers in range [2000,2100]I used custom prompt for code generator which works better for me:
It seems I lied to the model as the output it received was quite different, but it still worked fine.
Logs & Screenshots
Additional Information
No response
@IvanVolosyuk commented on GitHub (Mar 24, 2025):
I have created a pull request to fix this: https://github.com/open-webui/open-webui/pull/12010
@tjbck commented on GitHub (Mar 24, 2025):
Intended behaviour.