Spaces:
Runtime error
Runtime error
Update query.py
Browse files
query.py
CHANGED
@@ -91,7 +91,7 @@ class VectaraQuery():
|
|
91 |
try:
|
92 |
self.conv_id = res['responseSet'][0]['summary'][0]['chat']['conversationId']
|
93 |
except (TypeError):
|
94 |
-
|
95 |
|
96 |
pattern = r'\[\d{1,2}\]'
|
97 |
matches = [match.span() for match in re.finditer(pattern, summary)]
|
|
|
91 |
try:
|
92 |
self.conv_id = res['responseSet'][0]['summary'][0]['chat']['conversationId']
|
93 |
except (TypeError):
|
94 |
+
return "I'm sorry. I am experiencing an error in Vectara API conversationId assignment"
|
95 |
|
96 |
pattern = r'\[\d{1,2}\]'
|
97 |
matches = [match.span() for match in re.finditer(pattern, summary)]
|