Optimization

This commit is contained in:
Thorsten Sommer 2024-07-03 20:23:35 +02:00
parent 71176cedaf
commit 85c852d7a0
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -285,7 +285,7 @@ public partial class ProviderDialog : ComponentBase
private bool CanLoadModels => !string.IsNullOrWhiteSpace(this.dataAPIKey) && this.DataProvider != Providers.NONE && this.DataProvider != Providers.SELF_HOSTED; private bool CanLoadModels => !string.IsNullOrWhiteSpace(this.dataAPIKey) && this.DataProvider != Providers.NONE && this.DataProvider != Providers.SELF_HOSTED;
private bool IsCloudProvider => this.DataProvider is not Providers.SELF_HOSTED or Providers.NONE; private bool IsCloudProvider => this.DataProvider is not Providers.SELF_HOSTED;
private bool IsSelfHostedOrNone => this.DataProvider is Providers.SELF_HOSTED or Providers.NONE; private bool IsSelfHostedOrNone => this.DataProvider is Providers.SELF_HOSTED or Providers.NONE;