Admin configuration
| 125 | |
| 126 | |
| 127 | class AdminConfig(BaseModel): |
| 128 | """Admin configuration""" |
| 129 | |
| 130 | id: int = 1 |
| 131 | username: str |
| 132 | password: str |
| 133 | api_key: str |
| 134 | error_ban_threshold: int = 3 # Auto-disable token after N consecutive errors |
| 135 | |
| 136 | |
| 137 | class ProxyConfig(BaseModel): |