mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(cerebras): satisfy strict Ruff rules
This commit is contained in:
parent
a275e6d575
commit
10e69816a7
1 changed files with 7 additions and 3 deletions
|
|
@ -115,7 +115,11 @@ class CerebrasConfig(OpenAIGPTConfig):
|
|||
drop_params: bool,
|
||||
) -> dict:
|
||||
supported_openai_params: Final = self.get_supported_openai_params(model=model)
|
||||
for param, value in non_default_params.items():
|
||||
if param in supported_openai_params:
|
||||
optional_params[param] = value
|
||||
optional_params.update(
|
||||
{
|
||||
param: value
|
||||
for param, value in non_default_params.items()
|
||||
if param in supported_openai_params
|
||||
}
|
||||
)
|
||||
return optional_params
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue