test(vertex_ai): tolerate transient 500 in google maps grounding test (#28503)
test_gemini_google_maps_tool_simple makes live calls to Vertex AI's
Google Maps grounding backend, which intermittently returns
500 INTERNAL ("Please retry") — a transient Google-side failure, not a
LiteLLM bug. The request LiteLLM emits matches Google's published
googleMaps grounding spec field-for-field, and the maps-platform 500
only occurs after Vertex accepts the request.
The test already passes on RateLimitError; treat InternalServerError
the same way so transient Vertex-side failures don't fail CI.
This commit is contained in:
parent
67e6e5e1df
commit
3f953dfa96
@ -4223,7 +4223,9 @@ def test_gemini_google_maps_tool_simple():
|
||||
)
|
||||
print(f"Response: {response.model_dump_json(indent=4)}")
|
||||
assert response.choices[0].message.content is not None
|
||||
except litellm.RateLimitError:
|
||||
except (litellm.RateLimitError, litellm.InternalServerError):
|
||||
# Transient Vertex-side failures (rate limiting, 500 INTERNAL from the
|
||||
# Google Maps grounding backend) are not LiteLLM bugs — don't fail CI.
|
||||
pass
|
||||
except litellm.InternalServerError:
|
||||
pytest.skip(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user