mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-08 12:49:40 +00:00
Code Review and bug fixes
This commit is contained in:
1 parent
cefc5464d5
commit
a6e9066747
18 files changed
+443
-186
No files matched your search
@@ -135,6 +135,8 @@ public sealed record DataDocumentAnalysisPolicy : ConfigurationBaseObject
|
||||
if (table.TryGetValue("PreselectedProvider", out var providerValue) && providerValue.TryRead<string>(out var providerId))
|
||||
preselectedProvider = providerId;
|
||||
|
||||
// Temporary compatibility shim until 2027-03-10:
|
||||
// documentation/compatibility-shims/2026-09-legacy-profile-fields.md
|
||||
var hasLegacyProfile = table.TryGetValue("PreselectedProfile", out var profileValue);
|
||||
var hasProfileIds = table.TryGetValue("PreselectedProfileIds", out var profileIdsValue);
|
||||
if (hasLegacyProfile && hasProfileIds)
|
||||
@@ -203,6 +205,8 @@ public sealed record DataDocumentAnalysisPolicy : ConfigurationBaseObject
|
||||
return true;
|
||||
}
|
||||
|
||||
// Temporary compatibility shim until 2027-03-10:
|
||||
// documentation/compatibility-shims/2026-09-legacy-profile-fields.md
|
||||
private static bool TryNormalizeLegacyProfileId(string profileId, out HashSet<string>? profileIds)
|
||||
{
|
||||
profileIds = null;
|
||||
|
||||
Reference in new issue
Block a user