Skip to content

Commit

Permalink
Litle bit more information about error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Karmazin committed Jul 4, 2024
1 parent ba58290 commit 026b655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion just_agents/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def rotate_completion(messages:list[Message], options:dict[str, str], stream:boo
if last_exception:
raise last_exception
else:
raise Exception("Run out of tries to execute completion. Check your keys!")
raise Exception(f"Run out of tries to execute completion. Check your keys! Keys {key_getter.len()} left.")
else:
return completion(messages=messages, stream=stream, **opt)

Expand Down

0 comments on commit 026b655

Please sign in to comment.