| 128 | |
| 129 | # Upstream Errors |
| 130 | class UpstreamError(AIStudioProxyError): |
| 131 | def __init__(self, message: str, http_status: int = 502, retry_after: int = 10, **kwargs): |
| 132 | super().__init__(message, http_status=http_status, retry_after=retry_after, **kwargs) |
| 133 | |
| 134 | class AIStudioError(UpstreamError): |
| 135 | def __init__(self, error_message: str, status_code: int, message: str = "AI Studio error", **kwargs): |
no outgoing calls