Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test(interactions): drop role from Interaction output fields to match Google spec (#30986)

tin-berrif2b823ce1a4f
diff --git a/tests/test_litellm/interactions/test_openapi_compliance.py b/tests/test_litellm/interactions/test_openapi_compliance.py
index aededaaca77..44c0b6e5b02 100644
--- a/tests/test_litellm/interactions/test_openapi_compliance.py
+++ b/tests/test_litellm/interactions/test_openapi_compliance.py
@@ -156,7 +156,10 @@ class TestResponseCompliance:
# The response is the dedicated `Interaction` schema. Google moved the
# output-only fields (notably the `steps` array, formerly `outputs`)
# off `CreateModelInteractionParams` and onto `Interaction`; the request
- # schema no longer carries `steps`. Keep this aligned with the live spec.
+ # schema no longer carries `steps`. Google later moved `role` off
+ # `Interaction` onto the per-turn `Turn` schema (asserted in
+ # test_turn_schema), so it is no longer a top-level output field here.
+ # Keep this aligned with the live spec.
schema = spec_dict["components"]["schemas"]["Interaction"]
# Output fields (readOnly).
@@ -165,7 +168,6 @@ class TestResponseCompliance:
"status",
"created",
"updated",
- "role",
"steps",
"usage",
]