Skip to content

Commit

Permalink
Correct error message for inference wrapper (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
josejg authored Aug 18, 2024
1 parent d413e01 commit b81af3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def try_generate_completion(self, prompt: str, num_tokens: int):
break
except RateLimitError as e:
if 'You exceeded your current quota' in str(
e._message,
e.message,
): # pyright: ignore
raise e
delay *= 2 * (1 + random.random())
Expand Down

0 comments on commit b81af3a

Please sign in to comment.