mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-06 23:08:16 +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.