Skip to content

Commit

Permalink
Removed niche gpt-3.5-turbo case
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza committed Jan 7, 2025
1 parent af732af commit 0cf4099
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions llmclient/llms.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,9 @@ def __str__(self) -> str:

@model_validator(mode="after")
def set_model_name(self) -> Self:
if (
self.config.get("model") in {"gpt-3.5-turbo", None}
and self.name != "unknown"
) or (self.name != "unknown" and "model" not in self.config):
if (self.config.get("model") is None and self.name != "unknown") or (
self.name != "unknown" and "model" not in self.config
):
self.config["model"] = self.name
elif "model" in self.config and self.name == "unknown":
self.name = self.config["model"]
Expand Down

0 comments on commit 0cf4099

Please sign in to comment.