Skip to content

Commit

Permalink
openai_setup implementation fix
Browse files Browse the repository at this point in the history
need to re-assign self.model after calling setup function
  • Loading branch information
parkervg committed Mar 17, 2024
1 parent 915e227 commit e117de4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blendsql/models/remote/_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def _load_model(self) -> Model:
)

def _setup(self, **kwargs) -> None:
return openai_setup()
openai_setup()
self.model = self._load_model()


class OpenaiLLM(Model):
Expand Down Expand Up @@ -103,4 +104,5 @@ def _load_model(self) -> Model:
)

def _setup(self, **kwargs) -> None:
return openai_setup()
openai_setup()
self.model = self._load_model()

0 comments on commit e117de4

Please sign in to comment.