ShynBui commited on
Commit
aeb3778
1 Parent(s): d6287db

Update pkgs/quota_manager.py

Browse files
Files changed (1) hide show
  1. pkgs/quota_manager.py +1 -1
pkgs/quota_manager.py CHANGED
@@ -94,7 +94,7 @@ class QuotaManager(LangChainExecutor):
94
  if "Resource has been exhausted" in str(e):
95
  print(f"API key bị giới hạn: {self.api_key}. Đang chuyển sang API key khác...")
96
  self.rotate_api_key()
97
- return super().execute_with_image(model_input, user_input, base64_image, model_name, temperature,
98
  prefix, infix, suffix, json_output)
99
  else:
100
  raise e
 
94
  if "Resource has been exhausted" in str(e):
95
  print(f"API key bị giới hạn: {self.api_key}. Đang chuyển sang API key khác...")
96
  self.rotate_api_key()
97
+ return self().execute_with_image(model_input, user_input, base64_image, model_name, temperature,
98
  prefix, infix, suffix, json_output)
99
  else:
100
  raise e