mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-24 00:52:24 +00:00
fix(interactions): align status enum with openapi spec
This commit is contained in:
parent
f6359cbf04
commit
216e055910
2 changed files with 10 additions and 7 deletions
|
|
@ -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]):
|
||||
|
|
|
|||
|
|
@ -183,6 +183,7 @@ class TestResponseCompliance:
|
|||
"failed",
|
||||
"cancelled",
|
||||
"incomplete",
|
||||
"budget_exceeded",
|
||||
]
|
||||
assert status_prop["enum"] == expected_statuses
|
||||
print(f"✓ Status enum values: {expected_statuses}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue