Skip to content

Commit

Permalink
Unbreaking renaming variables (fixes #45).
Browse files Browse the repository at this point in the history
  • Loading branch information
JusticeRage committed Sep 20, 2024
1 parent 6d730fe commit c899573
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gepetto/models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def query_model_async(self, query, cb, additional_model_options=None):
:param additional_model_options: Additional parameters used when creating the model object. Typically, for
OpenAI, response_format={"type": "json_object"}.
"""
if additional_model_options is None:
additional_model_options = {}
t = threading.Thread(target=self.query_model, args=[query, cb, additional_model_options])
t.start()
t = threading.Thread(target=self.query_model, args=[query, cb, additional_model_options])
t.start()

gepetto.models.model_manager.register_model(GPT)

0 comments on commit c899573

Please sign in to comment.