Solshine commited on
Commit
2496807
1 Parent(s): e32f6a6

Update query.py

Browse files
Files changed (1) hide show
  1. query.py +1 -1
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 = first_summary['chat']['conversationId']
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")