lezaf commited on
Commit
c4604aa
·
1 Parent(s): fb5f7c4

Fix quotes error

Browse files
Files changed (1) hide show
  1. rate_limiters.py +1 -1
rate_limiters.py CHANGED
@@ -27,7 +27,7 @@ def safe_invoke_with_retry_gemini(llm_with_tools, messages, max_retries=3, wait_
27
  try:
28
  return llm_with_tools.invoke(messages)
29
  except ResourceExhausted as e:
30
- print(f"[{datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")}]"
31
  f"[Attempt {attempt}] Rate limit hit. Retrying in {wait_seconds} seconds...")
32
  if attempt == max_retries:
33
  print("Max retries reached. Raising exception.")
 
27
  try:
28
  return llm_with_tools.invoke(messages)
29
  except ResourceExhausted as e:
30
+ print(f"[{datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}]"
31
  f"[Attempt {attempt}] Rate limit hit. Retrying in {wait_seconds} seconds...")
32
  if attempt == max_retries:
33
  print("Max retries reached. Raising exception.")