mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-05 16:22:55 +00:00
Don't generate a name, when already present
This commit is contained in:
parent
cbbeae8d67
commit
978a50eb3c
@ -67,6 +67,8 @@ public partial class Chat : MSGComponentBase, IAsyncDisposable
|
|||||||
{
|
{
|
||||||
this.chatThread = deferredContent;
|
this.chatThread = deferredContent;
|
||||||
if (this.chatThread is not null)
|
if (this.chatThread is not null)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(this.chatThread.Name))
|
||||||
{
|
{
|
||||||
var firstUserBlock = this.chatThread.Blocks.FirstOrDefault(x => x.Role == ChatRole.USER);
|
var firstUserBlock = this.chatThread.Blocks.FirstOrDefault(x => x.Role == ChatRole.USER);
|
||||||
if (firstUserBlock is not null)
|
if (firstUserBlock is not null)
|
||||||
@ -78,6 +80,7 @@ public partial class Chat : MSGComponentBase, IAsyncDisposable
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this.SettingsManager.ConfigurationData.Chat.ShowLatestMessageAfterLoading)
|
if (this.SettingsManager.ConfigurationData.Chat.ShowLatestMessageAfterLoading)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user