Spaces:
Running
Running
adjust error limit rate
Browse files- error_map.py +4 -0
error_map.py
CHANGED
@@ -18,6 +18,10 @@ error_table = {
|
|
18 |
"status_code": status.HTTP_408_REQUEST_TIMEOUT,
|
19 |
"detail": "ChatGPT se gomitó 🤮, este chat ya es muy largo, limpia el chat y reintenta."
|
20 |
},
|
|
|
|
|
|
|
|
|
21 |
"undefined": {
|
22 |
"status_code": status.HTTP_408_REQUEST_TIMEOUT,
|
23 |
"detail": "Error no definido 🙄"
|
|
|
18 |
"status_code": status.HTTP_408_REQUEST_TIMEOUT,
|
19 |
"detail": "ChatGPT se gomitó 🤮, este chat ya es muy largo, limpia el chat y reintenta."
|
20 |
},
|
21 |
+
openai.RateLimitError: {
|
22 |
+
"status_code": status.HTTP_408_REQUEST_TIMEOUT,
|
23 |
+
"detail": "ChatGPT no quiere responder 😩 ellos dicen que lo usamos mucho."
|
24 |
+
}
|
25 |
"undefined": {
|
26 |
"status_code": status.HTTP_408_REQUEST_TIMEOUT,
|
27 |
"detail": "Error no definido 🙄"
|