Skip to content

Commit

Permalink
debug rapidapi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pooruss committed Aug 16, 2023
1 parent 100a4da commit a21e8fa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions toolbench/inference/Downstream_tasks/rapidapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ def get_white_list(tool_root_dir):
return white_list

def contain(candidate_list, white_list):
output = []
output = set()
for cand in candidate_list:
if cand not in white_list.keys():
if cand in white_list:
output.add(white_list[cand])
else:
return False
output.append(white_list[cand])
return output
return list(output)



Expand Down Expand Up @@ -326,7 +327,7 @@ def _step(self, action_name="", action_input=""):
self.success = 1 # succesfully return final_answer
return "{\"response\":\"successfully giving the final answer.\"}", 3
else:
"{error:\"\"return_type\" is not a valid choice\"}", 2
return "{error:\"\"return_type\" is not a valid choice\"}", 2
else:

for k, function in enumerate(self.functions):
Expand Down

0 comments on commit a21e8fa

Please sign in to comment.