Skip to content

Commit

Permalink
Precommit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHC committed Dec 27, 2023
1 parent 1d53176 commit f55f1f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion llm_hyperparameters/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.1.1'
__version__ = "2.1.1"
2 changes: 1 addition & 1 deletion llm_strategy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
)
from llm_strategy.llm_strategy import llm_dataclass, llm_strategy # type: ignore

__version__ = '2.1.1'
__version__ = "2.1.1"
4 changes: 2 additions & 2 deletions llm_strategy/llm_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ def query(self, language_model_or_chat_chain, schema): # noqa: C901
# Check if the language model is of type "openai" and extend model args with a response format in that case
model_dict = model.dict()
if "openai" in model_dict["_type"] and model_dict.get("model_name") in (
"gpt-4-1106-preview",
"gpt-3.5-turbo-1106",
"gpt-4-1106-preview",
"gpt-3.5-turbo-1106",
):
model_args = dict(response_format=dict(type="json_object"))
else:
Expand Down

0 comments on commit f55f1f8

Please sign in to comment.