Commit ef572392 by Calcium-Ion Committed by GitHub

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

fix: clean propertyNames for gemini function
parents dfda90a4 14b3dac8
...@@ -675,6 +675,7 @@ func cleanFunctionParameters(params interface{}) interface{} { ...@@ -675,6 +675,7 @@ func cleanFunctionParameters(params interface{}) interface{} {
delete(cleanedMap, "exclusiveMinimum") delete(cleanedMap, "exclusiveMinimum")
delete(cleanedMap, "$schema") delete(cleanedMap, "$schema")
delete(cleanedMap, "additionalProperties") delete(cleanedMap, "additionalProperties")
delete(cleanedMap, "propertyNames")
// Check and clean 'format' for string types // Check and clean 'format' for string types
if propType, typeExists := cleanedMap["type"].(string); typeExists && propType == "string" { if propType, typeExists := cleanedMap["type"].(string); typeExists && propType == "string" {
......
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