mirror of
https://github.com/AIDotNet/AntSK.git
synced 2026-02-17 14:06:11 +08:00
update deepseek 思考
This commit is contained in:
@@ -126,6 +126,11 @@
|
||||
.ant-card-body {
|
||||
height: 90% !important;
|
||||
}
|
||||
|
||||
.think {
|
||||
color: gray;
|
||||
font-style: italic;
|
||||
}
|
||||
</style>
|
||||
|
||||
@code {
|
||||
|
||||
@@ -329,7 +329,7 @@ namespace AntSK.Pages.ChatPage.Components
|
||||
await foreach (var content in chatResult)
|
||||
{
|
||||
rawContent.Append(content.ConvertToString());
|
||||
info.Context = Markdown.ToHtml(rawContent.ToString());
|
||||
info.Context = Markdown.ToHtml(rawContent.ToString().Replace("<think>", "<div class=\"think\">").Replace("</think>", "</div>"));
|
||||
await Task.Delay(30);
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
@@ -366,7 +366,7 @@ namespace AntSK.Pages.ChatPage.Components
|
||||
{
|
||||
rawContent.Append(content.ConvertToString());
|
||||
}
|
||||
info.Context = Markdown.ToHtml(rawContent.ToString());
|
||||
info.Context = Markdown.ToHtml(rawContent.ToString().Replace("<think>", "<div class=\"think\">").Replace("</think>", "</div>"));
|
||||
await Task.Delay(30);
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user