From 3d67f00ede29894e24d1dd426d2c5b1eef3ca761 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Thu, 7 May 2026 17:09:25 -0700 Subject: [PATCH] test(interactions): align openapi compliance with upstream rename outputs->steps Google updated their Interactions OpenAPI spec (https://ai.google.dev/static/api/interactions.openapi.json), removing the readOnly 'outputs' property from CreateModelInteractionParams in favor of 'steps' (a polymorphic transcript array). The compliance test fetches the live spec, so it began failing on every PR once the spec flipped over. Update the asserted output-field list to match. Note: this only re-aligns the spec-shape assertion. Our SDK response types (litellm/types/interactions/generated.py) still expose 'outputs' and need to be regenerated separately to add 'steps'/Step variants and decide on a back-compat path for callers reading .outputs. --- tests/test_litellm/interactions/test_openapi_compliance.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_litellm/interactions/test_openapi_compliance.py b/tests/test_litellm/interactions/test_openapi_compliance.py index cfcc426aa2..11d61d4c82 100644 --- a/tests/test_litellm/interactions/test_openapi_compliance.py +++ b/tests/test_litellm/interactions/test_openapi_compliance.py @@ -157,14 +157,15 @@ class TestResponseCompliance: # Check CreateModelInteractionParams which includes output fields schema = spec_dict["components"]["schemas"]["CreateModelInteractionParams"] - # Output fields (readOnly) + # Output fields (readOnly). Google renamed `outputs` → `steps` in the + # upstream spec; keep this list aligned with the live schema. output_fields = [ "id", "status", "created", "updated", "role", - "outputs", + "steps", "usage", ]