Skip to content

Commit

Permalink
Merge pull request #27 from ahuang11/patch-3
Browse files Browse the repository at this point in the history
Do not default by keys if settings.llm is set
  • Loading branch information
shroominic authored Feb 13, 2024
2 parents 3eb061c + d56d6f0 commit a4dd9d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/funcchain/model/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def univeral_model_selector(
Raises:
- ModelNotFoundError, when the model is not found.
"""
if not isinstance(settings.llm, str) and settings.llm is not None:
return settings.llm

model_name = settings.llm if isinstance(settings.llm, str) else ""
model_kwargs.update(settings.model_kwargs())

Expand Down

0 comments on commit a4dd9d5

Please sign in to comment.