refactor(util): reorder gemini schema cleaner helpers

This commit is contained in:
hkfires
2026-01-22 18:38:48 +08:00
parent 3c71c075db
commit abfca6aab2
2 changed files with 38 additions and 37 deletions

View File

@@ -1213,7 +1213,6 @@ func (e *AntigravityExecutor) buildRequest(ctx context.Context, auth *cliproxyau
// Use the centralized schema cleaner to handle unsupported keywords,
// const->enum conversion, and flattening of types/anyOf.
strJSON = util.CleanJSONSchemaForAntigravity(strJSON)
payload = []byte(strJSON)
} else {
strJSON := string(payload)