defenseunicorns / leapfrogai

Production-ready Generative AI for local, cloud native, airgap, and edge deployments.
https://leapfrog.ai
Apache License 2.0
251 stars 28 forks source link

bug(ui): html code block rendering #875

Open justinthelaw opened 1 month ago

justinthelaw commented 1 month ago

Environment

Device and OS: Ubuntu 22.04 App/package versions: main (latest) Kubernetes distro being used: UDS K3d (latest) Other: N/A

Steps to reproduce

Ask the LLM to write code related to HTML blocks

Expected result

A code block renders the HTML code blocks and the copy button puts the code into the user's clipboard

Actual Result

The code block does not render HTML and the copy button does put the proper HTML tags into the user's clipboard.

Visual Proof (screenshots, videos, text, etc)

Some example resulting code blocks:

Screenshot 2024-08-05 123931 Screenshot 2024-08-05 124017 Screenshot 2024-08-05 130152 Screenshot 2024-08-05 130323

Severity/Priority

N/A

Additional Context

N/A

andrewrisse commented 1 month ago

this may be an LLM issue, not a UI issue. leaving in backlog for now