diff --git a/app/MindWork AI Studio/Components/Pages/Settings.razor b/app/MindWork AI Studio/Components/Pages/Settings.razor index 138ab751..0f0e788a 100644 --- a/app/MindWork AI Studio/Components/Pages/Settings.razor +++ b/app/MindWork AI Studio/Components/Pages/Settings.razor @@ -82,7 +82,7 @@ - Assistants Options + Assistant Options Icon Finder Options @@ -93,8 +93,11 @@ Translator Options + + + @if (this.SettingsManager.ConfigurationData.PreselectedTranslationTargetLanguage is CommonLanguages.OTHER) @@ -117,8 +120,11 @@ Text Summarizer Options + + + @if (this.SettingsManager.ConfigurationData.PreselectedTextSummarizerTargetLanguage is CommonLanguages.OTHER) { diff --git a/app/MindWork AI Studio/Components/Pages/TextSummarizer/AssistantTextSummarizer.razor b/app/MindWork AI Studio/Components/Pages/TextSummarizer/AssistantTextSummarizer.razor index d2905412..82f138ed 100644 --- a/app/MindWork AI Studio/Components/Pages/TextSummarizer/AssistantTextSummarizer.razor +++ b/app/MindWork AI Studio/Components/Pages/TextSummarizer/AssistantTextSummarizer.razor @@ -3,7 +3,12 @@ @using AIStudio.Tools @inherits AssistantBaseCore - +@if (!this.SettingsManager.ConfigurationData.HideWebContentReaderForTextSummarizer) +{ + +} + + @@ -31,13 +36,13 @@ } - + @foreach (var provider in this.SettingsManager.ConfigurationData.Providers) { } - + Summarize \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Pages/TextSummarizer/AssistantTextSummarizer.razor.cs b/app/MindWork AI Studio/Components/Pages/TextSummarizer/AssistantTextSummarizer.razor.cs index 829206d1..9a1b3f86 100644 --- a/app/MindWork AI Studio/Components/Pages/TextSummarizer/AssistantTextSummarizer.razor.cs +++ b/app/MindWork AI Studio/Components/Pages/TextSummarizer/AssistantTextSummarizer.razor.cs @@ -24,6 +24,7 @@ public partial class AssistantTextSummarizer : AssistantBaseCore """; private string inputText = string.Empty; + private bool isAgentRunning; private CommonLanguages selectedTargetLanguage; private string customTargetLanguage = string.Empty; private Complexity selectedComplexity; diff --git a/app/MindWork AI Studio/Components/Pages/Translation/AssistantTranslation.razor b/app/MindWork AI Studio/Components/Pages/Translation/AssistantTranslation.razor index 8d140326..2b03eca6 100644 --- a/app/MindWork AI Studio/Components/Pages/Translation/AssistantTranslation.razor +++ b/app/MindWork AI Studio/Components/Pages/Translation/AssistantTranslation.razor @@ -3,6 +3,11 @@ @using AIStudio.Tools @inherits AssistantBaseCore +@if (!this.SettingsManager.ConfigurationData.HideWebContentReaderForTranslation) +{ + +} + @(this.liveTranslation ? "Live translation" : "No live translation") @@ -11,11 +16,11 @@ @if (this.liveTranslation) { - + } else { - + } @@ -38,13 +43,13 @@ else } - + @foreach (var provider in this.SettingsManager.ConfigurationData.Providers) { } - + Translate \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Pages/Translation/AssistantTranslation.razor.cs b/app/MindWork AI Studio/Components/Pages/Translation/AssistantTranslation.razor.cs index 1ae77c16..e21dcd31 100644 --- a/app/MindWork AI Studio/Components/Pages/Translation/AssistantTranslation.razor.cs +++ b/app/MindWork AI Studio/Components/Pages/Translation/AssistantTranslation.razor.cs @@ -20,6 +20,7 @@ public partial class AssistantTranslation : AssistantBaseCore """; private bool liveTranslation; + private bool isAgentRunning; private string inputText = string.Empty; private string inputTextLastTranslation = string.Empty; private CommonLanguages selectedTargetLanguage; diff --git a/app/MindWork AI Studio/Settings/DataModel/Data.cs b/app/MindWork AI Studio/Settings/DataModel/Data.cs index 12ff3533..7ed60225 100644 --- a/app/MindWork AI Studio/Settings/DataModel/Data.cs +++ b/app/MindWork AI Studio/Settings/DataModel/Data.cs @@ -120,6 +120,21 @@ public sealed class Data /// public bool PreselectLiveTranslation { get; set; } + /// + /// Hide the web content reader? + /// + public bool HideWebContentReaderForTranslation { get; set; } + + /// + /// Preselect the web content reader? + /// + public bool PreselectWebContentReaderForTranslation { get; set; } + + /// + /// Preselect the content cleaner agent? + /// + public bool PreselectContentCleanerAgentForTranslation { get; set; } + /// /// Preselect the target language? /// @@ -173,6 +188,22 @@ public sealed class Data /// public bool PreselectTextSummarizerOptions { get; set; } + + /// + /// Hide the web content reader? + /// + public bool HideWebContentReaderForTextSummarizer { get; set; } + + /// + /// Preselect the web content reader? + /// + public bool PreselectWebContentReaderForTextSummarizer { get; set; } + + /// + /// Preselect the content cleaner agent? + /// + public bool PreselectContentCleanerAgentForTextSummarizer { get; set; } + /// /// Preselect the target language? /// diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.8.6.md b/app/MindWork AI Studio/wwwroot/changelog/v0.8.6.md index 8354d039..a1d0bd83 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.8.6.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.8.6.md @@ -2,7 +2,8 @@ - Added possibility to configure a default provider for chats - Added architecture for future agent usage - Added a first agent to read, analyze and extract text from Markdown data +- Added option to read web content into translation and text summarization assistants - Improved the readability of the `settings.json` file by using indentation and enum names instead of numbers - Improved assistant overview; assistants will now wrap to the next line if there are too many to fit on the row -- Increased the default value for the live translation delay from 1,000 to 1,500 ms +- Increased the default value for the live translation delay from 1,000 to 3_000 ms - Fixed random number generator usage to be thread-safe \ No newline at end of file