mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
Broken code snippets in response from o1 and o3-mini #3776
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 @LucaCraft89 on GitHub (Feb 12, 2025).
Bug Report
Installation Method
Docker Compose
Environment
Open WebUI Version: v0.5.10
Ollama (if applicable): 0.5.4 but Not using
Operating System: Windows 11
Browser (if applicable): Microsoft Edge Version 132.0.2957.140
Confirmation:
Expected Behavior:
Correctly formatted code snippets in o1 and o3-mini models
Actual Behavior:
Code snippets do not appear formatted at all
Description
Bug Summary:
When o1 or o3-mini put code snippets in response openwebui appears not to be inerpreting them as it should
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Browser Console Logs:
Not related
Docker Container Logs:
Not related
Screenshots/Screen Recordings (if applicable):

Additional Information
i belive that the model is not responding like this
but responding like this
{Response}
note without the code delimiters
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@unfailingsalvage1448 commented on GitHub (Feb 12, 2025):
I think it is related to this issue on the OpenAI forums:
Quoting this passge:
@LucaCraft89 commented on GitHub (Feb 13, 2025):
how can i anable marksown responses by default in openwebui?
@LucaCraft89 commented on GitHub (Feb 13, 2025):
never mind i fixed it by adding
If code is in the response use markdownin the system prompt field