diff --git a/.grit/grit.yaml b/.grit/grit.yaml new file mode 100644 index 00000000..e765edb9 --- /dev/null +++ b/.grit/grit.yaml @@ -0,0 +1,8 @@ +version: 0.0.1 +patterns: + - name: github.com/getgrit/js#* + - name: github.com/getgrit/python#* + - name: github.com/getgrit/json#* + - name: github.com/getgrit/hcl#* + - name: github.com/getgrit/python#openai + level: info diff --git a/swarms/models/openai_chat.py b/swarms/models/openai_chat.py index f19c6aa1..46057a45 100644 --- a/swarms/models/openai_chat.py +++ b/swarms/models/openai_chat.py @@ -104,7 +104,7 @@ def _create_retry_decorator( openai.Timeout, openai.APIError, openai.APIConnectionError, - openai.error.RateLimitError, + openai.RateLimitError, openai.error.ServiceUnavailableError, ] return create_base_retry_decorator(