fix: clean propertyNames for gemini function

This commit is contained in:
Seefs
2026-01-11 23:34:18 +08:00
parent 62b796fa6a
commit 138fcd2327

View File

@@ -675,6 +675,7 @@ func cleanFunctionParameters(params interface{}) interface{} {
delete(cleanedMap, "exclusiveMinimum")
delete(cleanedMap, "$schema")
delete(cleanedMap, "additionalProperties")
delete(cleanedMap, "propertyNames")
// Check and clean 'format' for string types
if propType, typeExists := cleanedMap["type"].(string); typeExists && propType == "string" {