mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 13:00:20 +00:00 
			
		
		
		
	Refactored ERI server assistant settings
This commit is contained in:
		
							parent
							
								
									e017e87c9e
								
							
						
					
					
						commit
						300f93ffc2
					
				@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					@using AIStudio.Settings
 | 
				
			||||||
 | 
					@inherits SettingsPanelBase
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<ExpansionPanel HeaderIcon="@Icons.Material.Filled.PrivateConnectivity" HeaderText="Assistant: ERI Server Options">
 | 
				
			||||||
 | 
					    <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg">
 | 
				
			||||||
 | 
					        <ConfigurationOption OptionDescription="Preselect ERI server options?" LabelOn="ERI server options are preselected" LabelOff="No ERI server options are preselected" State="@(() => this.SettingsManager.ConfigurationData.ERI.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.ERI.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect some ERI server options."/>
 | 
				
			||||||
 | 
					        <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.ERI.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.ERI.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.ERI.MinimumProviderConfidence = selectedValue)"/>
 | 
				
			||||||
 | 
					        <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.ERI.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.ERI.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.ERI.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <MudText Typo="Typo.body1" Class="mb-3">
 | 
				
			||||||
 | 
					            Most ERI server options can be customized and saved directly in the ERI server assistant.
 | 
				
			||||||
 | 
					            For this, the ERI server assistant has an auto-save function.
 | 
				
			||||||
 | 
					        </MudText>
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        <MudButton Size="Size.Large" Variant="Variant.Filled" StartIcon="@Icons.Material.Filled.PrivateConnectivity" Color="Color.Default" Href="@Routes.ASSISTANT_ERI">
 | 
				
			||||||
 | 
					            Switch to ERI server assistant
 | 
				
			||||||
 | 
					        </MudButton>
 | 
				
			||||||
 | 
					    </MudPaper>
 | 
				
			||||||
 | 
					</ExpansionPanel>
 | 
				
			||||||
@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					namespace AIStudio.Components.Settings;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public partial class SettingsPanelERIServer : SettingsPanelBase;
 | 
				
			||||||
@ -334,23 +334,7 @@
 | 
				
			|||||||
            </MudPaper>
 | 
					            </MudPaper>
 | 
				
			||||||
        </ExpansionPanel>
 | 
					        </ExpansionPanel>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <ExpansionPanel HeaderIcon="@Icons.Material.Filled.PrivateConnectivity" HeaderText="Assistant: ERI Server Options">
 | 
					        <SettingsPanelERIServer AvailableLLMProvidersFunc="() => this.availableLLMProviders" />
 | 
				
			||||||
            <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg">
 | 
					 | 
				
			||||||
                <ConfigurationOption OptionDescription="Preselect ERI server options?" LabelOn="ERI server options are preselected" LabelOff="No ERI server options are preselected" State="@(() => this.SettingsManager.ConfigurationData.ERI.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.ERI.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect some ERI server options."/>
 | 
					 | 
				
			||||||
                <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.ERI.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.ERI.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.ERI.MinimumProviderConfidence = selectedValue)"/>
 | 
					 | 
				
			||||||
                <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.ERI.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.ERI.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.ERI.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                <MudText Typo="Typo.body1" Class="mb-3">
 | 
					 | 
				
			||||||
                    Most ERI server options can be customized and saved directly in the ERI server assistant.
 | 
					 | 
				
			||||||
                    For this, the ERI server assistant has an auto-save function.
 | 
					 | 
				
			||||||
                </MudText>
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                <MudButton Size="Size.Large" Variant="Variant.Filled" StartIcon="@Icons.Material.Filled.PrivateConnectivity" Color="Color.Default" Href="@Routes.ASSISTANT_ERI">
 | 
					 | 
				
			||||||
                    Switch to ERI server assistant
 | 
					 | 
				
			||||||
                </MudButton>
 | 
					 | 
				
			||||||
            </MudPaper>
 | 
					 | 
				
			||||||
        </ExpansionPanel>
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        <SettingsPanelTextSummarizer AvailableLLMProvidersFunc="() => this.availableLLMProviders" />
 | 
					        <SettingsPanelTextSummarizer AvailableLLMProvidersFunc="() => this.availableLLMProviders" />
 | 
				
			||||||
        <SettingsPanelAgenda AvailableLLMProvidersFunc="() => this.availableLLMProviders" />
 | 
					        <SettingsPanelAgenda AvailableLLMProvidersFunc="() => this.availableLLMProviders" />
 | 
				
			||||||
        <SettingsPanelGrammarSpelling AvailableLLMProvidersFunc="() => this.availableLLMProviders" />
 | 
					        <SettingsPanelGrammarSpelling AvailableLLMProvidersFunc="() => this.availableLLMProviders" />
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user