Skip to content

Commit

Permalink
Fix load_model
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova committed Mar 3, 2025
1 parent e40a6a0 commit 55cf04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smolagents/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def parse_arguments(description):
return parser.parse_args()


def load_model(model_type: str, model_id: str, api_base: str | None, api_key: str | None) -> Model:
def load_model(model_type: str, model_id: str, api_base: str | None = None, api_key: str | None = None) -> Model:
if model_type == "OpenAIServerModel":
return OpenAIServerModel(
api_key=api_key or os.getenv("FIREWORKS_API_KEY"),
Expand Down

0 comments on commit 55cf04f

Please sign in to comment.