fix(providers): add "field required" to failover error patterns
Add "field required" to ERROR_PATTERNS.format array to trigger auth profile rotation and model failover when Google Antigravity returns validation errors. Fixes #3777 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
da71eaebd2
commit
5f8f5236b8
@ -16,6 +16,7 @@ describe("isCloudCodeAssistFormatError", () => {
|
||||
"messages.1.content.1.tool_use.id",
|
||||
"tool_use.id should match pattern",
|
||||
"invalid request format",
|
||||
"Field required",
|
||||
];
|
||||
for (const sample of samples) {
|
||||
expect(isCloudCodeAssistFormatError(sample)).toBe(true);
|
||||
|
||||
@ -395,6 +395,7 @@ const ERROR_PATTERNS = {
|
||||
"tool_use_id",
|
||||
"messages.1.content.1.tool_use.id",
|
||||
"invalid request format",
|
||||
"field required",
|
||||
],
|
||||
} as const;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user