fix-gemini-json

This commit is contained in:
tenacious
2024-12-22 23:48:09 +08:00
parent a7e1d17c3e
commit cce2990db6

View File

@@ -193,7 +193,7 @@ func removeAdditionalPropertiesWithDepth(schema interface{}, depth int) interfac
if typeVal, exists := v["type"]; !exists || (typeVal != "object" && typeVal != "array") {
return schema
}
delete(v, "title")
switch v["type"] {
case "object":
delete(v, "additionalProperties")