mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-14 07:33:48 +00:00
Merge c902f33569 into 557d0b1409
This commit is contained in:
3 files changed
+18
-3
No files matched your search
@@ -942,9 +942,11 @@ public partial class ChatComponent : MSGComponentBase
|
||||
await this.SyncForegroundChatAsync();
|
||||
return this.ChatThread;
|
||||
}
|
||||
|
||||
|
||||
private async Task SendMessage(bool reuseLastUserPrompt = false)
|
||||
{
|
||||
|
||||
|
||||
if (this.MediaTranscriptionService.IsBusy(this.CurrentMediaImportOwner))
|
||||
return;
|
||||
|
||||
@@ -952,10 +954,17 @@ public partial class ChatComponent : MSGComponentBase
|
||||
|
||||
if (!this.IsProviderSelected)
|
||||
return;
|
||||
|
||||
if (!reuseLastUserPrompt && string.IsNullOrWhiteSpace(this.ComposerState.UserInput)
|
||||
&& this.ComposerState.FileAttachments.Count > 0)
|
||||
{
|
||||
await this.MessageBus.SendWarning(new(
|
||||
Icons.Material.Filled.VoiceChat,
|
||||
this.T("The attachment has not been sent. Please enter a prompt in the chat window")));
|
||||
return;
|
||||
}
|
||||
if(!this.ChatThread.IsLLMProviderAllowed(this.Provider))
|
||||
return;
|
||||
|
||||
|
||||
this.RefreshCurrentProfileAndChatTemplate();
|
||||
|
||||
// Blur the focus away from the input field to be able to clear it:
|
||||
|
||||
Reference in new issue
Block a user