mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-09 15:53:48 +00:00
Multiple Profiles can now be selected
This commit is contained in:
1 parent
d043fbc8f0
commit
cefc5464d5
89 files changed
+1360
-503
No files matched your search
@@ -238,17 +238,8 @@ public static class ConfigurationSelectDataFactory
|
||||
|
||||
public static IEnumerable<ConfigurationSelectData<string>> GetProfilesData(IEnumerable<Profile> profiles)
|
||||
{
|
||||
foreach (var profile in profiles.GetAllProfiles())
|
||||
yield return new(profile.GetSafeName(), profile.Id);
|
||||
}
|
||||
|
||||
public static IEnumerable<ConfigurationSelectData<ProfilePreselection>> GetComponentProfilesData(IEnumerable<Profile> profiles)
|
||||
{
|
||||
yield return new(TB("Use app default profile"), ProfilePreselection.AppDefault);
|
||||
yield return new(Profile.NO_PROFILE.GetSafeName(), ProfilePreselection.NoProfile);
|
||||
|
||||
foreach (var profile in profiles)
|
||||
yield return new(profile.GetSafeName(), ProfilePreselection.Specific(profile.Id));
|
||||
yield return new(profile.GetSafeName(), profile.Id);
|
||||
}
|
||||
|
||||
public static IEnumerable<ConfigurationSelectData<string>> GetTranscriptionProvidersData(IEnumerable<TranscriptionProvider> transcriptionProviders)
|
||||
|
||||
Reference in new issue
Block a user