Solshine commited on
Commit
108fa2c
1 Parent(s): eaa9f0c

#'d out lines from 83 down a few

Browse files
Files changed (1) hide show
  1. query.py +7 -7
query.py CHANGED
@@ -80,13 +80,13 @@ class VectaraQuery():
80
  docs = res['responseSet'][0]['document']
81
  chat = res['responseSet'][0]['summary'][0]['chat']
82
 
83
- if chat['status'] != None:
84
- st_code = chat['status']
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
 
 
80
  docs = res['responseSet'][0]['document']
81
  chat = res['responseSet'][0]['summary'][0]['chat']
82
 
83
+ # if chat['status'] != None:
84
+ # st_code = chat['status']
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