mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-10 16:13:47 +00:00
Polish per-answer thinking disclosure
This commit is contained in:
1 parent
b28f2bcf6c
commit
fc30b33daa
20 files changed
+147
-54
No files matched your search
@@ -127,13 +127,19 @@ public sealed class ContentText : IContent
|
||||
if (token.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
// Stop the waiting animation:
|
||||
this.InitialRemoteWait = false;
|
||||
this.IsStreaming = true;
|
||||
|
||||
// Add the response to the content:
|
||||
this.ApplyStreamChunk(contentStreamChunk);
|
||||
|
||||
//
|
||||
// Stop the waiting animation once the answer itself starts. A model which
|
||||
// is still reasoning has not written anything to read yet, and an empty
|
||||
// bubble would look like a finished, empty answer. The thinking section
|
||||
// is available next to the animation the whole time.
|
||||
//
|
||||
this.InitialRemoteWait = this.Text.Length is 0;
|
||||
|
||||
// Notify the UI that the content has changed,
|
||||
// depending on the energy saving mode:
|
||||
var now = DateTimeOffset.Now;
|
||||
|
||||
Reference in new issue
Block a user