https://platform.openai.com/docs/guides/error-codes/api-errors
| 32 | |
| 33 | |
| 34 | class ErrorCode(IntEnum): |
| 35 | """ |
| 36 | https://platform.openai.com/docs/guides/error-codes/api-errors |
| 37 | """ |
| 38 | |
| 39 | VALIDATION_TYPE_ERROR = 40001 |
| 40 | |
| 41 | INVALID_AUTH_KEY = 40101 |
| 42 | INCORRECT_AUTH_KEY = 40102 |
| 43 | NO_PERMISSION = 40103 |
| 44 | |
| 45 | INVALID_MODEL = 40301 |
| 46 | PARAM_OUT_OF_RANGE = 40302 |
| 47 | CONTEXT_OVERFLOW = 40303 |
| 48 | |
| 49 | RATE_LIMIT = 42901 |
| 50 | QUOTA_EXCEEDED = 42902 |
| 51 | ENGINE_OVERLOADED = 42903 |
| 52 | |
| 53 | INTERNAL_ERROR = 50001 |
| 54 | CUDA_OUT_OF_MEMORY = 50002 |
| 55 | GRADIO_REQUEST_ERROR = 50003 |
| 56 | GRADIO_STREAM_UNKNOWN_ERROR = 50004 |
| 57 | CONTROLLER_NO_WORKER = 50005 |
| 58 | CONTROLLER_WORKER_TIMEOUT = 50006 |
nothing calls this directly
no outgoing calls
no test coverage detected