mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-10 23:55:15 -05:00
[GH-ISSUE #13601] feat: Improved Default Code Interpreter Prompt for Reliability #103960
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 @Acters on GitHub (May 6, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13601
Check Existing Issues
Problem Description
The current Default Code Interpreter Prompt mentions back ticks, however some LLMs fail to understand or predict that it is related to the markdown ```py ``` formatting as the token can be different.
In fact, I have noticed with the current prompt, some LLM models will happily remove one backtick ending up with one less backtick for some reason. example: ``py ```
Desired Solution you'd like
Changing the Default prompt to the following improves the reliability of generating code that doesn't end up formatted with markdown tags.
attached as a file because of discord's markdown formatting.
systemprompt.txt
Alternatives Considered
No response
Additional Context
No response
@Classic298 commented on GitHub (May 6, 2025):
Create a PR! :D