Merge pull request #2642 from seefs001/fix/gemini-propertyNames

fix: clean propertyNames for gemini function
This commit is contained in:
Calcium-Ion
2026-01-12 18:48:24 +08:00
committed by GitHub

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" {