mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 05:27:21 +00:00
Removed the unnecessary SettingsPanels from the assistants and the enum
This commit is contained in:
1 parent
1568b56f70
commit
490b276495
19 files changed
+4
-56
No files matched your search
@@ -12,7 +12,7 @@ namespace AIStudio.Components;
|
||||
public partial class ProviderSelection : ComponentBase
|
||||
{
|
||||
[CascadingParameter]
|
||||
public AssistantBase<SettingsDialogProviders>? AssistantBase { get; set; }
|
||||
public AssistantBase<NoComponent>? AssistantBase { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public AIStudio.Settings.Provider ProviderSettings { get; set; }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<MudTextSwitch Label="Read content from web?" Disabled="@this.AgentIsRunning" @bind-Value="@this.showWebContentReader" LabelOn="Show web content options" LabelOff="Hide web content options" />
|
||||
@if (this.showWebContentReader)
|
||||
{
|
||||
<MudTextSwitch Label="Cleanup content by using a LLM agent?" @bind-Value="@this.useContentCleanerAgent" Validation="@this.ValidateProvider" Disabled="@this.AgentIsRunning" LabelOn="The content is cleaned using an LLM agent: the main content is extracted, advertisements and other irrelevant things are attempted to be removed; relative links are attempted to be converted into absolute links so that they can be used." LabelOff="No content cleaning" />
|
||||
<MudTextSwitch Label="Cleanup content by using an LLM agent?" @bind-Value="@this.useContentCleanerAgent" Validation="@this.ValidateProvider" Disabled="@this.AgentIsRunning" LabelOn="The content is cleaned using an LLM agent: the main content is extracted, advertisements and other irrelevant things are attempted to be removed; relative links are attempted to be converted into absolute links so that they can be used." LabelOff="No content cleaning" />
|
||||
<MudStack Row="@true" AlignItems="@AlignItems.Baseline" Class="mb-3">
|
||||
<MudTextField T="string" Label="URL from which to load the content" @bind-Value="@this.providedURL" Validation="@this.ValidateURL" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Link" Placeholder="https://..." HelperText="Loads the content from your URL. Does not work when the content is hidden behind a paywall." Variant="Variant.Outlined" Immediate="@true" Disabled="@this.AgentIsRunning"/>
|
||||
<MudButton Disabled="@(!this.IsReady || this.AgentIsRunning)" Variant="Variant.Filled" Size="Size.Large" Color="Color.Primary" StartIcon="@Icons.Material.Filled.Download" OnClick="() => this.LoadFromWeb()">
|
||||
|
||||
@@ -13,22 +13,6 @@ public enum SettingsPanel
|
||||
CHAT_PANEL,
|
||||
WORKSPACE_PANEL,
|
||||
|
||||
// ASSISTANTS
|
||||
ASSISTANT_GRAMMAR_SPELLING_PANEL,
|
||||
ASSISTANT_ICON_FINDER_PANEL,
|
||||
ASSISTANT_REWRITE_PANEL,
|
||||
ASSISTANT_TRANSLATION_PANEL,
|
||||
ASSISTANT_AGENDA_PANEL,
|
||||
ASSISTANT_CODING_PANEL,
|
||||
ASSISTANT_TEXT_SUMMARIZER_PANEL,
|
||||
ASSISTANT_EMAIL_PANEL,
|
||||
ASSISTANT_LEGAL_CHECK_PANEL,
|
||||
ASSISTANT_SYNONYMS_PANEL,
|
||||
ASSISTANT_MY_TASKS_PANEL,
|
||||
ASSISTANT_JOB_POSTING_PANEL,
|
||||
ASSISTANT_ERI_SERVER_PANEL,
|
||||
ASSISTANT_BIAS_OF_THE_DAY_PANEL,
|
||||
|
||||
// Agents
|
||||
AGENT_DATA_SOURCE_SELECTION_PANEL,
|
||||
AGENT_RETRIEVAL_CONTEXT_VALIDATION_PANEL,
|
||||
|
||||
Reference in new issue
Block a user