Spaces:
Sleeping
Sleeping
david-oplatka
commited on
Commit
•
d3b0a23
1
Parent(s):
4be22e1
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 = []
|