2025-03-12 11:31:01 +01:00
@using AIStudio.Settings
@inherits SettingsDialogBase
<MudDialog>
<TitleContent>
<MudText Typo="Typo.h6" Class="d-flex align-center">
2026-11-11 14:20:49 +01:00
<MudIcon Icon="@AppIcons.ASSISTANT_SYNONYMS" Class="mr-2" />
2025-04-24 13:50:14 +02:00
@T("Assistant: Synonyms Options")
2025-03-12 11:31:01 +01:00
</MudText>
</TitleContent>
<DialogContent>
<MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg">
2026-11-13 10:16:56 +01:00
<ConfigurationOption OptionDescription="@T("Preselect synonym options?")" LabelOn="@T("Synonym options are preselected")" LabelOff="@T("No synonym options are preselected")" State="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions = updatedState)" OptionHelp="@TA("When enabled, you can preselect synonym options. This might be useful when you prefer a specific language or LLM model.")"/>
2025-04-24 13:50:14 +02:00
<ConfigurationSelect OptionDescription="@T("Preselect the language")" Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectedLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Synonyms.PreselectedLanguage = selectedValue)" OptionHelp="@T("Which language should be preselected?")"/>
2025-03-12 11:31:01 +01:00
@if (this.SettingsManager.ConfigurationData.Synonyms.PreselectedLanguage is CommonLanguages.OTHER)
{
2026-11-11 14:20:49 +01:00
<ConfigurationText OptionDescription="@T("Preselect another language")" Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" Icon="@AppIcons.LANGUAGE" Text="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Synonyms.PreselectedOtherLanguage = updatedText)"/>
2025-03-12 11:31:01 +01:00
}
<ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Synonyms.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Synonyms.MinimumProviderConfidence = selectedValue)"/>
2026-04-16 16:48:47 +02:00
<ConfigurationProviderSelection Component="Components.SYNONYMS_ASSISTANT" Data="@this.AvailableLLMProviders" Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Synonyms.PreselectedProvider = selectedValue)"/>
2025-03-12 11:31:01 +01:00
</MudPaper>
2026-09-04 15:48:07 +02:00
<ToolDefaultsConfiguration Component="Components.SYNONYMS_ASSISTANT" />
2025-03-12 11:31:01 +01:00
</DialogContent>
<DialogActions>
2025-04-24 13:50:14 +02:00
<MudButton OnClick="@this.Close" Variant="Variant.Filled">
@T("Close")
</MudButton>
2025-03-12 11:31:01 +01:00
</DialogActions>
2026-09-04 15:48:07 +02:00
</MudDialog>