mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 04:47:21 +00:00
Turned getter-like extension methods into extension properties (#1157)
This commit is contained in:
1 parent
0375318b1b
commit
f649febf88
286 files changed
+1379
-1109
No files matched your search
@@ -209,8 +209,8 @@ public sealed class DataSourceValidation
|
||||
if(confidenceLevel is ConfidenceLevel.NONE)
|
||||
return TB("Please select a required provider confidence level.");
|
||||
|
||||
if(!confidenceLevel.IsAllowedMailboxConfidence())
|
||||
return string.Format(TB("A mailbox requires a provider confidence level from '{0}' to '{1}'."), ConfidenceLevel.VERY_LOW.GetName(), ConfidenceLevel.HIGH.GetName());
|
||||
if(!confidenceLevel.IsAllowedMailboxConfidence)
|
||||
return string.Format(TB("A mailbox requires a provider confidence level from '{0}' to '{1}'."), ConfidenceLevel.VERY_LOW.Name, ConfidenceLevel.HIGH.Name);
|
||||
|
||||
return this.ValidateSelectedEmbeddingProviderAccess();
|
||||
}
|
||||
@@ -305,7 +305,7 @@ public sealed class DataSourceValidation
|
||||
|
||||
return string.Format(
|
||||
TB("The selected embedding provider has confidence '{0}', but this data source requires provider confidence '{1}'. Select an embedding provider with equal or higher confidence or lower the required confidence level."),
|
||||
selectedEmbedding.GetConfidenceLevel(settingsManager).GetName(),
|
||||
confidenceLevel.GetName());
|
||||
selectedEmbedding.GetConfidenceLevel(settingsManager).Name,
|
||||
confidenceLevel.Name);
|
||||
}
|
||||
}
|
||||
@@ -131,7 +131,7 @@ public sealed class ProviderValidation
|
||||
if(this.GetProvider() is not LLMProviders.HUGGINGFACE)
|
||||
return null;
|
||||
|
||||
if (!inferenceProvider.SupportsChat())
|
||||
if (!inferenceProvider.SupportsChat)
|
||||
return TB("Please select an Hugging Face inference provider.");
|
||||
|
||||
return null;
|
||||
@@ -165,7 +165,7 @@ public sealed class ProviderValidation
|
||||
if (inferenceProvider is HFInferenceProvider.NONE)
|
||||
return TB("Please select an Hugging Face inference provider.");
|
||||
|
||||
if (!inferenceProvider.SupportsEmbeddings())
|
||||
if (!inferenceProvider.SupportsEmbeddings)
|
||||
return TB("This Hugging Face inference provider does not create embeddings. Please select another one.");
|
||||
|
||||
return null;
|
||||
@@ -188,7 +188,7 @@ public sealed class ProviderValidation
|
||||
if (inferenceProvider is HFInferenceProvider.NONE)
|
||||
return TB("Please select an Hugging Face inference provider.");
|
||||
|
||||
if (!inferenceProvider.SupportsTranscription())
|
||||
if (!inferenceProvider.SupportsTranscription)
|
||||
return TB("This Hugging Face inference provider does not transcribe audio. Please select another one.");
|
||||
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user