arunj-0's picture
feat: implement replicate models API with standardized response handling
c380a07
Raw
History Blame Contribute Delete
211 Bytes
from typing import Optional, TypeVar, Generic
from pydantic import BaseModel
T = TypeVar("T")
class BaseApiResponse(BaseModel, Generic[T]):
status_code: int
message: str
data: Optional[T] = None