Skip to content

Commit

Permalink
error
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyun-wu committed Nov 12, 2023
1 parent b77f409 commit 486c2fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions autogen/oai/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

try:
import openai
except ImportError:
ERROR = ImportError("openai is required.")

try:
from openai import (
RateLimitError,
APIError,
Expand All @@ -30,7 +26,7 @@

ERROR = None
assert openai.__version__ < "1"
except AssertionError or ImportError:
except (AssertionError, ImportError):
openai_Completion = object
# The autogen.Completion class requires openai<1
ERROR = AssertionError("(Deprecated) The autogen.Completion class requires openai<1 and diskcache. ")
Expand Down

0 comments on commit 486c2fe

Please sign in to comment.