mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
`test_content_schema_uses_discriminator` fetches Google's live Interactions OpenAPI document and required an OpenAPI `discriminator` on the `Content` union. Google has since dropped that keyword and now pins `type` with a `const` on each variant instead, so the assertion fails on the current spec and the `misc` shard is red on every open PR against staging The information the transformation actually needs did not change: a content part is still routed by reading its `type`, and each variant still declares exactly one distinct value for it. So the test now asserts that property directly, and accepts either spelling, a `discriminator` on the union or a `const` (or single-value `enum`) on each member It stays a real check rather than a weakened one. Against the live spec it fails if TextContent loses its type property, if `text` is renamed, if two variants claim the same type value, if `Content` stops being a union of named variants, or if a discriminator appears on some property other than `type` |
||
|---|---|---|
| .. | ||
| base_interactions_test.py | ||
| test_agents_http_handler.py | ||
| test_agents_main_and_utils.py | ||
| test_gemini_interactions.py | ||
| test_gemini_interactions_transformation.py | ||
| test_google_interactions_integration.py | ||
| test_interactions_streaming_iterator.py | ||
| test_litellm_responses_bridge.py | ||
| test_openapi_compliance.py | ||