Spaces:
Sleeping
Sleeping
Update query.py
Browse files
query.py
CHANGED
|
@@ -76,7 +76,7 @@ class VectaraQuery():
|
|
| 76 |
print(f"DEBUG request body = {body}")
|
| 77 |
print(f"DEBUG response summary = {res['responseSet'][0]['summary']}")
|
| 78 |
|
| 79 |
-
ecode = res['responseSet'][0]['status'].get('code','')
|
| 80 |
if ecode != '':
|
| 81 |
print(f"Chat query failed with code {ecode}")
|
| 82 |
if ecode == 'RESOURCE_EXHAUSTED':
|
|
|
|
| 76 |
print(f"DEBUG request body = {body}")
|
| 77 |
print(f"DEBUG response summary = {res['responseSet'][0]['summary']}")
|
| 78 |
|
| 79 |
+
ecode = res['responseSet'][0]['status'][0].get('code','')
|
| 80 |
if ecode != '':
|
| 81 |
print(f"Chat query failed with code {ecode}")
|
| 82 |
if ecode == 'RESOURCE_EXHAUSTED':
|