mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 23:58:00 +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
@@ -1,4 +1,7 @@
|
||||
using AIStudio.Assistants.SlideBuilder;
|
||||
using AIStudio.Settings;
|
||||
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace AIStudio.Assistants.VisualBriefing;
|
||||
|
||||
@@ -18,9 +21,23 @@ public sealed class VisualBriefingLocalSettings
|
||||
public string ModelId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Defines <c>ProfileId</c> for the visual briefing feature.
|
||||
/// Defines <c>ProfileIds</c> for the visual briefing feature.
|
||||
/// </summary>
|
||||
public string ProfileId { get; set; } = string.Empty;
|
||||
public HashSet<string> ProfileIds { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("ProfileId")]
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? LegacyProfileId
|
||||
{
|
||||
get => null;
|
||||
set
|
||||
{
|
||||
if (this.ProfileIds.Count == 0 &&
|
||||
!string.IsNullOrWhiteSpace(value) &&
|
||||
!value.Equals(Profile.NO_PROFILE.Id, StringComparison.OrdinalIgnoreCase))
|
||||
this.ProfileIds.Add(value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines <c>TargetLanguage</c> for the visual briefing feature.
|
||||
@@ -76,4 +93,4 @@ public sealed class VisualBriefingLocalSettings
|
||||
/// Defines <c>CustomProtectionLevel</c> for the visual briefing feature.
|
||||
/// </summary>
|
||||
public string CustomProtectionLevel { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user