Commit 344ebade by Calcium-Ion Committed by GitHub

Merge pull request #651 from tenacioustommy/fix-gemini-json

fix-gemini-json-schema
parents 424af80c 8a5d0d0f
...@@ -206,7 +206,7 @@ func removeAdditionalPropertiesWithDepth(schema interface{}, depth int) interfac ...@@ -206,7 +206,7 @@ func removeAdditionalPropertiesWithDepth(schema interface{}, depth int) interfac
if typeVal, exists := v["type"]; !exists || (typeVal != "object" && typeVal != "array") { if typeVal, exists := v["type"]; !exists || (typeVal != "object" && typeVal != "array") {
return schema return schema
} }
delete(v, "title")
switch v["type"] { switch v["type"] {
case "object": case "object":
delete(v, "additionalProperties") delete(v, "additionalProperties")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment