Skip to content

Commit

Permalink
Fix error propagation on rate limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
norpadon committed Nov 21, 2024
1 parent 7a2a79e commit 3d51e2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "wanga"
version = "0.2.2"
version = "0.2.3"
description = "A library for interacting with Large Language Models."
authors = [{ name = "Artur Chakhvadze", email = "norpadon@gmail.com" }]
license = { text = "MIT" }
Expand Down
1 change: 0 additions & 1 deletion wanga/models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ def _create_retry_decorator(self):
stop=stop_after_attempt(self._num_retries + 1),
wait=wait_exponential(multiplier=1, min=4, max=10),
retry=retry_conditions,
retry_error_callback=lambda retry_state: retry_state.outcome.exception() if retry_state.outcome else None,
reraise=True,
)

Expand Down

0 comments on commit 3d51e2a

Please sign in to comment.