🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(ui): gracefully handle image paths in markdown (#2717)
marliessophie69bf783b115f
diff --git a/web/src/components/ui/MarkdownViewer.tsx b/web/src/components/ui/MarkdownViewer.tsxindex 33545312e6..8463c99a30 100644--- a/web/src/components/ui/MarkdownViewer.tsx+++ b/web/src/components/ui/MarkdownViewer.tsx@@ -80,8 +80,8 @@ const MarkdownImage: Components["img"] = ({ src, alt }) => {);}- const isHttp = new URL(src).protocol === "http:";- const errorDescription = `Cannot load image. ${isHttp ? "Http images are not rendered in Langfuse for security reasons." : ""} Click to view image in new tab`;+ const errorDescription =+ "Cannot load image. Http images are not rendered in Langfuse for security reasons";if (isValidImage.data?.isValid) {return (