mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-27 00:53:37 +00:00
adding a data source settings button
This commit is contained in:
parent
9fd35176a8
commit
1823ea30b2
@ -1,5 +1,6 @@
|
||||
@attribute [Route(Routes.ASSISTANT_DYNAMIC)]
|
||||
@using AIStudio.Agents.AssistantAudit
|
||||
@using AIStudio.Settings.DataModel
|
||||
@using AIStudio.Tools.PluginSystem.Assistants.DataModel
|
||||
@using AIStudio.Tools.PluginSystem.Assistants.DataModel.Layout
|
||||
@inherits AssistantBaseCore<AIStudio.Dialogs.Settings.NoSettingsPanel>
|
||||
@ -61,6 +62,14 @@ else
|
||||
</MudTooltip>
|
||||
: null;
|
||||
|
||||
private protected override RenderFragment? FooterActions => PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager)
|
||||
? @<DataSourceSelection LLMProvider="@this.ProviderSettings"
|
||||
DataSourceOptions="@this.dataSourceOptions"
|
||||
DataSourceOptionsChanged="@this.DataSourceOptionsChanged"
|
||||
DataSourcesAISelected="@(this.ChatThread?.AISelectedDataSources ?? [])"
|
||||
PopoverTriggerMode="PopoverTriggerMode.ICON" />
|
||||
: null;
|
||||
|
||||
private RenderFragment RenderSwitch(AssistantSwitch assistantSwitch) => @<MudSwitch T="bool"
|
||||
Value="@this.assistantState.Booleans[assistantSwitch.Name]"
|
||||
ValueChanged="@(value => this.ExecuteSwitchChangedAsync(assistantSwitch, value))"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user