Error2 reports
Fix UnsupportedParamsError
in LiteLLM
✅ Solution
The "UnsupportedParamsError" in litellm usually arises when your code passes parameters to a model that it doesn't recognize (e.g., using `prompt` with a model that only supports `text`). To resolve this, either update `litellm.params.model_params` in your local environment to accurately reflect the supported parameters of the model you're using, or conditionally pass parameters based on the selected model using `model_params=litellm.model_params[model]`. Ensure that the parameters you send align with what the model API expects.
Related Issues
Real GitHub issues where developers encountered this error:
Timeline
First reported:Apr 3, 2026
Last reported:Apr 4, 2026