mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 19:52:10 +00:00
render structured chart blocks in AI responses
This commit is contained in:
parent
68866ecb8a
commit
9d61be3f4e
@ -105,10 +105,14 @@
|
|||||||
{
|
{
|
||||||
<MudMarkdown @key="@segment.RenderKey" Value="@segmentContent" Props="Markdown.DefaultConfig" Styling="@this.MarkdownStyling" MarkdownPipeline="Markdown.CHAT_MARKDOWN_PIPELINE" />
|
<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" />
|
<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)
|
@if (textContent.Sources.Count > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user