From 216e05591029ddb74dbdbbbefdb7c18d1b5ed30a Mon Sep 17 00:00:00 2001 From: gym-cmd <186399764+gym-cmd@users.noreply.github.com> Date: Wed, 20 May 2026 12:35:45 +0100 Subject: [PATCH] fix(interactions): align status enum with openapi spec --- litellm/types/interactions/generated.py | 16 +++++++++------- .../interactions/test_openapi_compliance.py | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/litellm/types/interactions/generated.py b/litellm/types/interactions/generated.py index ed626b0b7c8..0af1b051f8e 100644 --- a/litellm/types/interactions/generated.py +++ b/litellm/types/interactions/generated.py @@ -203,6 +203,8 @@ class Status1(Enum): completed = "completed" failed = "failed" cancelled = "cancelled" + incomplete = "incomplete" + budget_exceeded = "budget_exceeded" class InteractionStatusUpdate(BaseModel): @@ -386,13 +388,13 @@ class ResponseModality(Enum): class Status3(Enum): - UNSPECIFIED = "UNSPECIFIED" - IN_PROGRESS = "IN_PROGRESS" - REQUIRES_ACTION = "REQUIRES_ACTION" - COMPLETED = "COMPLETED" - FAILED = "FAILED" - CANCELLED = "CANCELLED" - INCOMPLETE = "INCOMPLETE" + IN_PROGRESS = "in_progress" + REQUIRES_ACTION = "requires_action" + COMPLETED = "completed" + FAILED = "failed" + CANCELLED = "cancelled" + INCOMPLETE = "incomplete" + BUDGET_EXCEEDED = "budget_exceeded" class ModelOption(RootModel[str]): diff --git a/tests/test_litellm/interactions/test_openapi_compliance.py b/tests/test_litellm/interactions/test_openapi_compliance.py index e796d5f09ba..03845931f25 100644 --- a/tests/test_litellm/interactions/test_openapi_compliance.py +++ b/tests/test_litellm/interactions/test_openapi_compliance.py @@ -183,6 +183,7 @@ class TestResponseCompliance: "failed", "cancelled", "incomplete", + "budget_exceeded", ] assert status_prop["enum"] == expected_statuses print(f"✓ Status enum values: {expected_statuses}")