mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:59:48 +00:00
Optimization
This commit is contained in:
parent
71176cedaf
commit
85c852d7a0
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user