Skip to content

Commit

Permalink
Fix minor bug in openai
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik4949 committed Feb 8, 2024
1 parent 8db4f21 commit cff8eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superduperdb/ext/openai/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __post_init__(self):
self.syncClient = SyncOpenAI(**self.client_kwargs)
self.asyncClient = AsyncOpenAI(**self.client_kwargs)

if 'OPENAI_API_KEY' not in os.environ or (
if 'OPENAI_API_KEY' not in os.environ and (
'api_key' not in self.client_kwargs.keys() and self.client_kwargs
):
raise ValueError(
Expand Down

0 comments on commit cff8eba

Please sign in to comment.