mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
style: format gemini schema cleanup
This commit is contained in:
@@ -177,7 +177,11 @@ function cleanSchemaForGemini(schema: unknown): unknown {
|
||||
cleaned[key] = value.map((v) => cleanSchemaForGemini(v));
|
||||
} else if (key === "allOf" && Array.isArray(value)) {
|
||||
cleaned[key] = value.map((v) => cleanSchemaForGemini(v));
|
||||
} else if (key === "additionalProperties" && value && typeof value === "object") {
|
||||
} else if (
|
||||
key === "additionalProperties" &&
|
||||
value &&
|
||||
typeof value === "object"
|
||||
) {
|
||||
cleaned[key] = cleanSchemaForGemini(value);
|
||||
} else {
|
||||
cleaned[key] = value;
|
||||
|
||||
Reference in New Issue
Block a user