mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 22:57:59 +00:00
Merge c902f33569 into 557d0b1409
This commit is contained in:
3 files changed
+18
-3
No files matched your search
@@ -3568,6 +3568,9 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::CHATCOMPONENT::T1516264254"] = "Save chat
|
|||||||
-- The media file could not be transcribed.
|
-- The media file could not be transcribed.
|
||||||
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::CHATCOMPONENT::T1543974632"] = "The media file could not be transcribed."
|
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::CHATCOMPONENT::T1543974632"] = "The media file could not be transcribed."
|
||||||
|
|
||||||
|
-- The attachment has not been sent. Please enter a prompt in the chat window
|
||||||
|
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::CHATCOMPONENT::T1585750793"] = "The attachment has not been sent. Please enter a prompt in the chat window"
|
||||||
|
|
||||||
-- Type your input here...
|
-- Type your input here...
|
||||||
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::CHATCOMPONENT::T1849313532"] = "Type your input here..."
|
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::CHATCOMPONENT::T1849313532"] = "Type your input here..."
|
||||||
|
|
||||||
|
|||||||
@@ -942,9 +942,11 @@ public partial class ChatComponent : MSGComponentBase
|
|||||||
await this.SyncForegroundChatAsync();
|
await this.SyncForegroundChatAsync();
|
||||||
return this.ChatThread;
|
return this.ChatThread;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task SendMessage(bool reuseLastUserPrompt = false)
|
private async Task SendMessage(bool reuseLastUserPrompt = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if (this.MediaTranscriptionService.IsBusy(this.CurrentMediaImportOwner))
|
if (this.MediaTranscriptionService.IsBusy(this.CurrentMediaImportOwner))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -952,10 +954,17 @@ public partial class ChatComponent : MSGComponentBase
|
|||||||
|
|
||||||
if (!this.IsProviderSelected)
|
if (!this.IsProviderSelected)
|
||||||
return;
|
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))
|
if(!this.ChatThread.IsLLMProviderAllowed(this.Provider))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this.RefreshCurrentProfileAndChatTemplate();
|
this.RefreshCurrentProfileAndChatTemplate();
|
||||||
|
|
||||||
// Blur the focus away from the input field to be able to clear it:
|
// Blur the focus away from the input field to be able to clear it:
|
||||||
|
|||||||
+3
@@ -3525,6 +3525,9 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ATTACHDOCUMENTS::T2250917004"] = "Einige
|
|||||||
-- Drag and drop files into the marked area or click here to attach documents:
|
-- Drag and drop files into the marked area or click here to attach documents:
|
||||||
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ATTACHDOCUMENTS::T230755331"] = "Ziehen Sie Dateien in den markierten Bereich oder klicken Sie hier, um Dokumente anzuhängen:"
|
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ATTACHDOCUMENTS::T230755331"] = "Ziehen Sie Dateien in den markierten Bereich oder klicken Sie hier, um Dokumente anzuhängen:"
|
||||||
|
|
||||||
|
-- The attachment has not been sent. Please enter a prompt in the chat window
|
||||||
|
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::CHATCOMPONENT::T1585750793"] = "Der Anhang wurde nicht verschickt. Bitte gib einen Prompt in das Chatfenster ein"
|
||||||
|
|
||||||
-- The media transcription was canceled.
|
-- The media transcription was canceled.
|
||||||
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ATTACHDOCUMENTS::T241403726"] = "Die Transkription des Mediums wurde abgebrochen."
|
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ATTACHDOCUMENTS::T241403726"] = "Die Transkription des Mediums wurde abgebrochen."
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user