mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-13 11:07:39 +00:00
ad9c69860e
Add detection for Cerebras's context window exceeded error format: "Current length is X while limit is Y" This ensures LiteLLM raises ContextWindowExceededError instead of generic BadRequestError when Cerebras API calls exceed the model's context limit, enabling downstream libraries like DSPy to properly catch and handle these errors for automatic context management.
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.