Skip to content

Commit 0f8c49b

Browse files
committed
fix: select AOT-safe JSON node overload for live image input
1 parent 8579c2e commit 0f8c49b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎CodexSharpSDK/Execution/AppServerOptions.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static JsonObject Turn(CodexExecArgs args, ThreadOptions options, TurnOpt
6161
var inputs = new JsonArray(new JsonObject { ["type"] = "text", ["text"] = args.Input });
6262
foreach (var path in args.Images ?? [])
6363
{
64-
inputs.Add(new JsonObject { ["type"] = "localImage", ["path"] = path });
64+
inputs.Add((JsonNode)new JsonObject { ["type"] = "localImage", ["path"] = path });
6565
}
6666
var result = new JsonObject { ["threadId"] = threadId, ["input"] = inputs };
6767
if (options.ModelReasoningEffort is { } effort)

0 commit comments

Comments
 (0)