Files
litellm/tests/test_litellm/litellm_core_utils
Earl St Sauver ad9c69860e Fix Cerebras context window errors not recognized (#17587)
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.
2025-12-08 19:02:06 -08:00
..
2025-11-08 11:11:22 -08:00
2025-11-22 09:41:15 -08:00