mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-12 01:07:22 +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
@@ -697,7 +697,7 @@ public sealed class SettingsManager
|
||||
/// </remarks>
|
||||
/// <returns>All configured providers, unfiltered.</returns>
|
||||
public IReadOnlyList<Provider> GetAllProviders() => this.ConfigurationData.Providers
|
||||
.OrderBy(x => x.UsedLLMProvider.ToName(), StringComparer.OrdinalIgnoreCase)
|
||||
.OrderBy(x => x.UsedLLMProvider.Name, StringComparer.OrdinalIgnoreCase)
|
||||
.ThenBy(x => x.InstanceName, StringComparer.OrdinalIgnoreCase)
|
||||
.ThenBy(x => x.Num)
|
||||
.ToList();
|
||||
@@ -821,7 +821,7 @@ public sealed class SettingsManager
|
||||
/// </remarks>
|
||||
/// <returns>All configured embedding providers.</returns>
|
||||
public IReadOnlyList<EmbeddingProvider> GetAllEmbeddingProviders() => this.ConfigurationData.EmbeddingProviders
|
||||
.OrderBy(x => x.UsedLLMProvider.ToName(), StringComparer.OrdinalIgnoreCase)
|
||||
.OrderBy(x => x.UsedLLMProvider.Name, StringComparer.OrdinalIgnoreCase)
|
||||
.ThenBy(x => x.Name, StringComparer.OrdinalIgnoreCase)
|
||||
.ThenBy(x => x.Num)
|
||||
.ToList();
|
||||
@@ -859,7 +859,7 @@ public sealed class SettingsManager
|
||||
/// </remarks>
|
||||
/// <returns>All configured transcription providers.</returns>
|
||||
public IReadOnlyList<TranscriptionProvider> GetAllTranscriptionProviders() => this.ConfigurationData.TranscriptionProviders
|
||||
.OrderBy(x => x.UsedLLMProvider.ToName(), StringComparer.OrdinalIgnoreCase)
|
||||
.OrderBy(x => x.UsedLLMProvider.Name, StringComparer.OrdinalIgnoreCase)
|
||||
.ThenBy(x => x.Name, StringComparer.OrdinalIgnoreCase)
|
||||
.ThenBy(x => x.Num)
|
||||
.ToList();
|
||||
|
||||
Reference in new issue
Block a user