mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-06 04:51:36 +00:00
Renamed the settings of AI tasks (#1239)
This commit is contained in:
1 parent
d19d3d431b
commit
a117074972
109 files changed
+3929
-538
No files matched your search
@@ -663,6 +663,15 @@ public partial class AssistantDynamic : AssistantBaseCore<NoSettingsPanel>
|
||||
if (!prop.Key.TryRead<string>(out var propName) || string.IsNullOrWhiteSpace(propName))
|
||||
continue;
|
||||
|
||||
// A plugin may still use a former name of a prop. The current name wins when the update holds both:
|
||||
if (propSpec is not null)
|
||||
{
|
||||
if (!propSpec.TryGetCurrentName(propName, propsTable, out var currentName))
|
||||
continue;
|
||||
|
||||
propName = currentName;
|
||||
}
|
||||
|
||||
if (propSpec is not null && propSpec.NonWriteable.Contains(propName, StringComparer.Ordinal))
|
||||
{
|
||||
this.Logger.LogWarning($"Assistant {sourceType} callback tried to update non-writeable prop '{propName}' on component '{GetComponentName(component)}'. The value is ignored.");
|
||||
|
||||
Reference in new issue
Block a user