Spaces:
Runtime error
Runtime error
Update query.py
Browse files
query.py
CHANGED
@@ -85,8 +85,8 @@ class VectaraQuery():
|
|
85 |
print(f"Chat query failed with code {st_code}")
|
86 |
if st_code == 'RESOURCE_EXHAUSTED':
|
87 |
self.conv_id = None
|
88 |
-
|
89 |
-
return
|
90 |
|
91 |
self.conv_id = res['responseSet'][0]['summary'][0]['chat']['conversationId']
|
92 |
|
|
|
85 |
print(f"Chat query failed with code {st_code}")
|
86 |
if st_code == 'RESOURCE_EXHAUSTED':
|
87 |
self.conv_id = None
|
88 |
+
return 'Sorry, chat turns exceeds plan limit.'
|
89 |
+
return 'Sorry, something went wrong in my brain. Please try again later.'
|
90 |
|
91 |
self.conv_id = res['responseSet'][0]['summary'][0]['chat']['conversationId']
|
92 |
|