Spaces:
Runtime error
Runtime error
Update query.py
Browse files
query.py
CHANGED
@@ -94,7 +94,7 @@ class VectaraQuery():
|
|
94 |
if 'summary' in first_response and len(first_response['summary']) > 0:
|
95 |
first_summary = first_response['summary'][0]
|
96 |
if 'chat' in first_summary:
|
97 |
-
self.conv_id =
|
98 |
else:
|
99 |
# Handle the case where 'chat' is None
|
100 |
print("Chat data not found in response summary")
|
|
|
94 |
if 'summary' in first_response and len(first_response['summary']) > 0:
|
95 |
first_summary = first_response['summary'][0]
|
96 |
if 'chat' in first_summary:
|
97 |
+
self.conv_id = res['responseSet'][0]['summary'][0]['chat']['conversationId']
|
98 |
else:
|
99 |
# Handle the case where 'chat' is None
|
100 |
print("Chat data not found in response summary")
|