Spaces:
Sleeping
Sleeping
Update query.py
Browse files
query.py
CHANGED
|
@@ -107,6 +107,8 @@ class VectaraQuery():
|
|
| 107 |
|
| 108 |
if response.status_code != 200:
|
| 109 |
print(f"Query failed with code {response.status_code}, reason {response.reason}, text {response.text}")
|
|
|
|
|
|
|
| 110 |
return "Sorry, something went wrong in my brain. Please try again later."
|
| 111 |
|
| 112 |
chunks = []
|
|
|
|
| 107 |
|
| 108 |
if response.status_code != 200:
|
| 109 |
print(f"Query failed with code {response.status_code}, reason {response.reason}, text {response.text}")
|
| 110 |
+
if response.status_code == 429:
|
| 111 |
+
return "Sorry, Vectara chat turns exceeds plan limit."
|
| 112 |
return "Sorry, something went wrong in my brain. Please try again later."
|
| 113 |
|
| 114 |
chunks = []
|