BerriAI/litellm · error · ValueError
Parameter {k} is not supported for model {model}. Supported
Error message
Parameter {k} is not supported for model {model}. Supported parameters are {supported_params}. Set drop_params=True to drop unsupported parameters. What it means
Error "Parameter {k} is not supported for model {model}. Supported parameters are {supported_params}. Set drop_params=True to drop unsupported parameters." thrown in BerriAI/litellm.
Source
Thrown at litellm/llms/cometapi/image_generation/transformation.py:56
def map_openai_params(
self,
non_default_params: dict,
optional_params: dict,
model: str,
drop_params: bool,
) -> dict:
supported_params: Final = self.get_supported_openai_params(model)
for k in non_default_params:
if k not in optional_params:
if k in supported_params:
# CometAPI uses OpenAI-compatible parameters, so we can pass them directly
optional_params[k] = non_default_params[k]
elif drop_params:
pass
else:
raise ValueError(
f"Parameter {k} is not supported for model {model}. Supported parameters are {supported_params}. Set drop_params=True to drop unsupported parameters."
)
return optional_params
def get_complete_url(
self,
api_base: str | None,
api_key: str | None,
model: str,
optional_params: dict,
litellm_params: dict,
stream: bool | None = None,
) -> str:
"""
Get the complete url for the request
"""
complete_url: str = (View on GitHub (pinned to 6c2dcb801b)
Solutions
- Remove the unsupported parameter or set drop_params=True.
When it happens
Trigger: Thrown at litellm/llms/cometapi/image_generation/transformation.py:56 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15).
Data as JSON: /api/errors/00c5f7781711e2c5.
Report an issue: GitHub.