mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 17:05:41 +01:00
16 lines
No EOL
292 B
Python
16 lines
No EOL
292 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class TokenSchema(BaseModel):
|
|
access_token: str
|
|
refresh_token: str
|
|
|
|
class Config:
|
|
arbitrary_types_allowed = True
|
|
|
|
class TokenPayload(BaseModel):
|
|
id: int
|
|
role: str = None
|
|
|
|
class Config:
|
|
arbitrary_types_allowed = True |