Change8
Error2 reports

Fix BadRequestError

in LiteLLM

Solution

BadRequestError in litellm generally stems from invalid data being sent to the LLM provider's API. Fix this by carefully validating the inputs to the `litellm.completion` or `litellm.embedding` calls, ensuring data types, prompt formatting, and parameter values conform to the provider's API specifications (especially message roles and content). If using functions, double-check function call structures.

Timeline

First reported:May 22, 2026
Last reported:May 23, 2026

Need More Help?

View the full changelog and migration guides for LiteLLM

View LiteLLM Changelog