mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #5223] Code formatting when using Claude 3.5 Sonnet #13900
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 @Joakim-T on GitHub (Sep 6, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5223
Bug Report
Installation Method
Docker
Environment
Open WebUI v0.3.19
Claude added using LiteLLM
Windows 10
Chrome 128.0.6613.120
Confirmation:
Expected Behavior:
Formatted code output from LLM in a Run/Copy Code box
Actual Behavior:
Unformatted code as normal chat text
Description
After updating Open WebUI to the latest version code from Claude 3.5 is not formatted correctly.
Code from ChatGPT 4o looks fine.
Bug Summary:
[Provide a brief but clear summary of the bug]
Reproduction Details
Steps to Reproduce:
See screenshots.
Ask Claude to write any code
Logs and Screenshots
Screenshots/Screen Recordings (if applicable):
Claude 3.5
ChatGPT 4o
@silentoplayz commented on GitHub (Sep 6, 2024):
How do we know that claude-3.5 even provided the code wrapped in a codeblock based on your screenshot? We don't.