Skip to content

Commit

Permalink
Add complete list of errors to MakeMeSay utils (#1436)
Browse files Browse the repository at this point in the history
This closes issue #1432. The only meaningful change is the list of
errors; other modified lines are from `pre-commit`.
  • Loading branch information
inwaves committed Dec 20, 2023
1 parent f4dc762 commit 4fcbed2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions evals/elsuite/make_me_say/utils.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import os
import functools
import os
from typing import Callable, Union

import backoff
import openai
from openai import OpenAI

import openai
import urllib3.exceptions
from openai import OpenAI

from evals.api import CompletionResult

Expand All @@ -16,6 +14,9 @@
backoff.expo,
(
openai.RateLimitError,
openai.APIConnectionError,
openai.APITimeoutError,
openai.InternalServerError,
urllib3.exceptions.TimeoutError,
),
)
Expand Down

0 comments on commit 4fcbed2

Please sign in to comment.