Files
onyx/backend/danswer/server/models.py
T
2023-12-02 14:48:08 -08:00

20 lines
367 B
Python

from typing import Generic
from typing import Optional
from typing import TypeVar
from pydantic import BaseModel
from pydantic.generics import GenericModel
DataT = TypeVar("DataT")
class StatusResponse(GenericModel, Generic[DataT]):
success: bool
message: Optional[str] = None
data: Optional[DataT] = None
class ApiKey(BaseModel):
api_key: str