Dont display <think> tags (#496)

This commit is contained in:
Peer Schütt authored and GitHub committed 2025-06-10 14:32:24 +02:00
1 parent 368fc9ce39
commit 793a9cae0a
4 files changed
+24 -3

No files matched your search

@@ -67,12 +67,12 @@
@if (this.Content.IsStreaming)
{
<MudText Typo="Typo.body1" Style="white-space: pre-wrap;">
@textContent.Text
@textContent.Text.RemoveThinkTags()
</MudText>
}
else
{
<MudMarkdown Value="@textContent.Text" OverrideHeaderTypo="@Markdown.OverrideHeaderTypo" CodeBlockTheme="@this.CodeColorPalette"/>
<MudMarkdown Value="@textContent.Text.RemoveThinkTags().Trim()" OverrideHeaderTypo="@Markdown.OverrideHeaderTypo" CodeBlockTheme="@this.CodeColorPalette"/>
}
}
}