Skip to content

Commit

Permalink
Update retry mechanism with new error type
Browse files Browse the repository at this point in the history
  • Loading branch information
ZixinYang committed Oct 26, 2023
1 parent eb90d57 commit b80e462
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/langchain/langchain/chat_models/fireworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ def _create_retry_decorator(

errors = [
fireworks.client.error.RateLimitError,
fireworks.client.error.InternalServerError,
fireworks.client.error.BadGatewayError,
fireworks.client.error.ServiceUnavailableError,
]
return create_base_retry_decorator(
Expand Down
2 changes: 2 additions & 0 deletions libs/langchain/langchain/llms/fireworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ def _create_retry_decorator(

errors = [
fireworks.client.error.RateLimitError,
fireworks.client.error.InternalServerError,
fireworks.client.error.BadGatewayError,
fireworks.client.error.ServiceUnavailableError,
]
return create_base_retry_decorator(
Expand Down

0 comments on commit b80e462

Please sign in to comment.