9 views
-/https://github.com/berriai/litellm/issues/31699
GitHub · issue

#31699 [Bug]: googleMaps + response_format on Vertex AI sends `responseFormat` (unsupported field), causing ~65-75% flaky 400 errors under concurrent load

  • State: open
  • Author: @ThanawaratGithub
  • Labels: bug, proxy, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

When using `googleMaps` tool with `response_format` (json_schema) on a `vertex_ai-` prefixed model, LiteLLM v1.89.0+ converts the request to use `responseFormat` in `generationConfig`. However, `responseFormat` is not a documented field in the Vertex AI API (the official docs only list `responseMimeType` + `responseSchema`). Under concurrent load this causes ~65-75% of requests to fail with:

"Unable to submit request because Both legacy structured output fields and new response format fields are set. Please use only one of the two approaches." The request body only contains `responseFormat` (no legacy fields), yet Vertex AI returns this error intermittently, indicating Google's backend is adding legacy fields internally on some requests before validation. Expected behavior: Vertex AI requests should use `responseMimeType` + `responseJsonSchema` (OLD format), which works 100% reliably. The `responseFormat` rewrite introduced in PR #29582 should only apply to the `gemini/` provider path (Gemini API), not `vertex_a…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h38m51s ago — entered · #import:https:::github.com:berriai:litellm post #3228
31699 requires provider-specific request translation, compatibility handling across multiple structured-output formats, and concurrency-focused regression testing; 33492 is a more localized configuration-to-HTTP header propagation fix with narrower integration coverage.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search