فهرست منبع

refactor: remove unsupported 'exclusiveMinimum' field from cleanFunctionParameters

CaIon 10 ماه پیش
والد
کامیت
790af65b2c
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      relay/channel/gemini/relay-gemini.go

+ 4 - 2
relay/channel/gemini/relay-gemini.go

@@ -301,10 +301,11 @@ func cleanFunctionParameters(params interface{}) interface{} {
 	}
 
 	// Remove unsupported root-level fields
-	delete(cleanedMap, "$schema")
-	delete(cleanedMap, "additionalProperties")
 	delete(cleanedMap, "default")
 	delete(cleanedMap, "exclusiveMaximum")
+	delete(cleanedMap, "exclusiveMinimum")
+	delete(cleanedMap, "$schema")
+	delete(cleanedMap, "additionalProperties")
 
 	// Clean properties
 	if props, ok := cleanedMap["properties"].(map[string]interface{}); ok && props != nil {
@@ -325,6 +326,7 @@ func cleanFunctionParameters(params interface{}) interface{} {
 			// Remove unsupported fields
 			delete(cleanedPropMap, "default")
 			delete(cleanedPropMap, "exclusiveMaximum")
+			delete(cleanedPropMap, "exclusiveMinimum")
 			delete(cleanedPropMap, "$schema")
 			delete(cleanedPropMap, "additionalProperties")