fix: add transform case for gemini if mcp tool has missing array items (#5846)

This commit is contained in:
lif
2025-12-21 01:41:52 +08:00
committed by Aiden Cline
parent 2d47d5cf83
commit b1e7975bf8
2 changed files with 28 additions and 0 deletions

View File

@@ -457,6 +457,10 @@ export namespace ProviderTransform {
result.required = result.required.filter((field: any) => field in result.properties)
}
if (result.type === "array" && result.items == null) {
result.items = {}
}
return result
}