mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:19:46 +00:00
Renamed PopoverTriggerMode
This commit is contained in:
parent
a7efd75966
commit
7642bfa76c
@ -121,7 +121,7 @@
|
|||||||
|
|
||||||
@if (this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence)
|
@if (this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence)
|
||||||
{
|
{
|
||||||
<ConfidenceInfo Mode="ConfidenceInfoMode.BUTTON" LLMProvider="@this.providerSettings.UsedLLMProvider"/>
|
<ConfidenceInfo Mode="PopoverTriggerMode.BUTTON" LLMProvider="@this.providerSettings.UsedLLMProvider"/>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (this.AllowProfiles && this.ShowProfileSelection)
|
@if (this.AllowProfiles && this.ShowProfileSelection)
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
|
|
||||||
@if (this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence)
|
@if (this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence)
|
||||||
{
|
{
|
||||||
<ConfidenceInfo Mode="ConfidenceInfoMode.ICON" LLMProvider="@this.Provider.UsedLLMProvider"/>
|
<ConfidenceInfo Mode="PopoverTriggerMode.ICON" LLMProvider="@this.Provider.UsedLLMProvider"/>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (this.isStreaming && this.cancellationTokenSource is not null)
|
@if (this.isStreaming && this.cancellationTokenSource is not null)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@using AIStudio.Provider
|
@using AIStudio.Provider
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<MudTooltip Text="Shows and hides the confidence card with information about the selected LLM provider." Placement="Placement.Top">
|
<MudTooltip Text="Shows and hides the confidence card with information about the selected LLM provider." Placement="Placement.Top">
|
||||||
@if (this.Mode is ConfidenceInfoMode.ICON)
|
@if (this.Mode is PopoverTriggerMode.ICON)
|
||||||
{
|
{
|
||||||
<MudIconButton Icon="@Icons.Material.Filled.Security" Class="confidence-icon" Style="@this.LLMProvider.GetConfidence(this.SettingsManager).SetColorStyle(this.SettingsManager)" OnClick="@(() => this.ToggleConfidence())"/>
|
<MudIconButton Icon="@Icons.Material.Filled.Security" Class="confidence-icon" Style="@this.LLMProvider.GetConfidence(this.SettingsManager).SetColorStyle(this.SettingsManager)" OnClick="@(() => this.ToggleConfidence())"/>
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ namespace AIStudio.Components;
|
|||||||
public partial class ConfidenceInfo : ComponentBase, IMessageBusReceiver, IDisposable
|
public partial class ConfidenceInfo : ComponentBase, IMessageBusReceiver, IDisposable
|
||||||
{
|
{
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public ConfidenceInfoMode Mode { get; set; } = ConfidenceInfoMode.BUTTON;
|
public PopoverTriggerMode Mode { get; set; } = PopoverTriggerMode.BUTTON;
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public LLMProviders LLMProvider { get; set; }
|
public LLMProviders LLMProvider { get; set; }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
namespace AIStudio.Components;
|
namespace AIStudio.Components;
|
||||||
|
|
||||||
public enum ConfidenceInfoMode
|
public enum PopoverTriggerMode
|
||||||
{
|
{
|
||||||
BUTTON,
|
BUTTON,
|
||||||
ICON,
|
ICON,
|
Loading…
Reference in New Issue
Block a user