Skip to content

Commit

Permalink
Ensure custom params are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbywlindsey authored Jan 24, 2025
1 parent 74dd9eb commit 4e323a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/crewai/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,11 @@ def call(
"api_key": self.api_key,
"stream": False,
"tools": tools,
**self.custom_params["custom_params"],
}

if self.custom_params:
params.update(self.custom_params["custom_params"])

# Remove None values from params
params = {k: v for k, v in params.items() if v is not None}

Expand Down

0 comments on commit 4e323a4

Please sign in to comment.