mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix(interactions): add queued to the Interaction status enum (#34135)
Google added a queued value to Interaction.status in the live Interactions OpenAPI spec, so the compliance canary test_status_enum_values started failing on every open PR. The exact-match assertion is deliberate; it is how we find out the spec moved, so this adds the new value rather than loosening the check, and mirrors it into the generated Status enums so InteractionStatus stays truthful.
This commit is contained in:
parent
01d624e860
commit
fcd236097e
2 changed files with 3 additions and 0 deletions
|
|
@ -173,6 +173,7 @@ class Status1(Enum):
|
|||
cancelled = "cancelled"
|
||||
incomplete = "incomplete"
|
||||
budget_exceeded = "budget_exceeded"
|
||||
queued = "queued"
|
||||
|
||||
|
||||
class InteractionStatusUpdate(BaseModel):
|
||||
|
|
@ -341,6 +342,7 @@ class Status3(Enum):
|
|||
CANCELLED = "cancelled"
|
||||
INCOMPLETE = "incomplete"
|
||||
BUDGET_EXCEEDED = "budget_exceeded"
|
||||
QUEUED = "queued"
|
||||
|
||||
|
||||
class ModelOption(RootModel[str]):
|
||||
|
|
|
|||
|
|
@ -194,6 +194,7 @@ class TestResponseCompliance:
|
|||
"cancelled",
|
||||
"incomplete",
|
||||
"budget_exceeded",
|
||||
"queued",
|
||||
]
|
||||
assert status_prop["enum"] == expected_statuses
|
||||
print(f"✓ Status enum values: {expected_statuses}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue