File size: 653 Bytes
cd0c7a9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | from pydantic import BaseModel
from typing import Any, Optional
class PipelineRunResponse(BaseModel):
job_id: str
status: str
class PipelineDefinitionResponse(BaseModel):
pipelines: list[dict[str, Any]]
class JobCountResponse(BaseModel):
count: int
limit: int
remaining: int
class JobDeleteResponse(BaseModel):
status: str
class InterpretResponse(BaseModel):
prompt: str
context_size: int
class WaitlistResponse(BaseModel):
status: str
email: str
class ProfileUpdateResponse(BaseModel):
status: str
data: Optional[dict[str, Any]] = None
class ErrorResponse(BaseModel):
detail: str
|