Renamed the Providers enum to LLMProviders for better clarity (#144)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-09-13 21:50:00 +02:00
1 parent 5fa2f3c822
commit 1cac1a7913
16 files changed
+125 -124

No files matched your search

@@ -100,7 +100,7 @@
@if (this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence)
{
<ConfidenceInfo Mode="ConfidenceInfoMode.BUTTON" Provider="@this.providerSettings.UsedProvider"/>
<ConfidenceInfo Mode="ConfidenceInfoMode.BUTTON" LLMProvider="@this.providerSettings.UsedLLMProvider"/>
}
@if (this.AllowProfiles && this.ShowProfileSelection)
@@ -114,11 +114,11 @@ public abstract partial class AssistantBase : ComponentBase
#endregion
private string SubmitButtonStyle => this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence ? this.providerSettings.UsedProvider.GetConfidence(this.SettingsManager).StyleBorder() : string.Empty;
private string SubmitButtonStyle => this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence ? this.providerSettings.UsedLLMProvider.GetConfidence(this.SettingsManager).StyleBorder() : string.Empty;
protected string? ValidatingProvider(AIStudio.Settings.Provider provider)
{
if(provider.UsedProvider == Providers.NONE)
if(provider.UsedLLMProvider == LLMProviders.NONE)
return "Please select a provider.";
return null;