Browse Source

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

fix: clean propertyNames for gemini function
Calcium-Ion 1 month ago
parent
commit
d73a0440b9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      relay/channel/gemini/relay-gemini.go

+ 1 - 0
relay/channel/gemini/relay-gemini.go

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