render structured chart blocks in AI responses

This commit is contained in:
Nils Kruthoff 2026-08-04 15:13:46 +02:00
parent 68866ecb8a
commit 9d61be3f4e
No known key found for this signature in database
GPG Key ID: A5C0151B4DDB172C

View File

@ -105,10 +105,14 @@
{
<MudMarkdown @key="@segment.RenderKey" Value="@segmentContent" Props="Markdown.DefaultConfig" Styling="@this.MarkdownStyling" MarkdownPipeline="Markdown.CHAT_MARKDOWN_PIPELINE" />
}
else
else if (segment.Type is MarkdownRenderSegmentType.MATH_BLOCK)
{
<MathJaxBlock @key="@segment.RenderKey" Value="@segmentContent" Class="mb-5" />
}
else if (segment.ChartResult is not null)
{
<ChartBlock @key="@segment.RenderKey" Result="@segment.ChartResult" />
}
}
@if (textContent.Sources.Count > 0)
{