mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-05 09:12:39 +00:00
Ensure custom params are optional
This commit is contained in:
@@ -239,9 +239,11 @@ class LLM:
|
||||
"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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user