Skip to content

Commit

Permalink
Adjust name of variable to reflect new implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Apr 8, 2024
1 parent 30a5792 commit a50f81a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ def get_llm(self) -> Optional[BaseProvider]:
else None
)

should_recreate_chain = False
should_recreate_llm = False
if curr_lm_id != next_lm_id:
self.log.info(
f"Switching {self.handler_kind} language model from {curr_lm_id} to {next_lm_id}."
)
should_recreate_chain = True
should_recreate_llm = True
elif self._llm_params != lm_provider_params:
self.log.info(
f"{self.handler_kind} model params changed, updating the llm chain."
)
should_recreate_chain = True
should_recreate_llm = True

if should_recreate_chain:
if should_recreate_llm:
self._llm = self.create_llm(lm_provider, lm_provider_params)
self._llm_params = lm_provider_params

Expand Down

0 comments on commit a50f81a

Please sign in to comment.