mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-08 18:17:14 -05:00
feat: Improved Default Code Interpreter Prompt for Reliability #5075
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).
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