Included a settings icon to every assistant that lets you edit the settings (#327)

This commit is contained in:
Peer Schütt authored and GitHub committed 2025-03-12 11:31:01 +01:00
1 parent 8a23b54e56
commit 200964422d
98 files changed
+685 -411

No files matched your search

@@ -1,5 +1,5 @@
@attribute [Route(Routes.ASSISTANT_TRANSLATION)]
@inherits AssistantBaseCore
@inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogTranslation>
@if (!this.SettingsManager.ConfigurationData.Translation.HideWebContentReader)
{
@@ -1,8 +1,10 @@
using AIStudio.Chat;
using AIStudio.Components.Settings;
using AIStudio.Dialogs.Settings;
namespace AIStudio.Assistants.Translation;
public partial class AssistantTranslation : AssistantBaseCore
public partial class AssistantTranslation : AssistantBaseCore<SettingsDialogTranslation>
{
public override Tools.Components Component => Tools.Components.TRANSLATION_ASSISTANT;
@@ -28,7 +30,7 @@ public partial class AssistantTranslation : AssistantBaseCore
protected override string SubmitText => "Translate";
protected override Func<Task> SubmitAction => () => this.TranslateText(true);
protected override bool SubmitDisabled => this.isAgentRunning;
protected override ChatThread ConvertToChatThread => (this.chatThread ?? new()) with