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
@@ -769,7 +769,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
|
||||
foreach (var key in spec.Required)
|
||||
{
|
||||
if (!propsTable.TryGetValue(key, out var luaVal))
|
||||
if (!spec.TryGetValue(propsTable, key, out var luaVal))
|
||||
{
|
||||
LOGGER.LogWarning($"Component {type} missing required prop '{key}'.");
|
||||
return false;
|
||||
@@ -784,7 +784,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
|
||||
|
||||
foreach (var key in spec.Optional)
|
||||
{
|
||||
if (!propsTable.TryGetValue(key, out var luaVal))
|
||||
if (!spec.TryGetValue(propsTable, key, out var luaVal))
|
||||
continue;
|
||||
|
||||
if (!this.TryConvertComponentPropValue(type, key, luaVal, out var dotNetVal))
|
||||
|
||||
Reference in new issue
Block a user