You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LiteLLM exposes a custom exception for context window errors called ContextWindowExceededError. It's a subclass of Invalid Request Error, but this way it ensures that context window exceptions across all providers are mapped to the same error.
Hey @Dominastorm,
LiteLLM exposes a custom exception for context window errors called ContextWindowExceededError. It's a subclass of Invalid Request Error, but this way it ensures that context window exceptions across all providers are mapped to the same error.
uptrain/uptrain/operators/language/llm.py
Line 79 in a663b27
More on this here: https://docs.litellm.ai/docs/exception_mapping#custom-mapping-list
The text was updated successfully, but these errors were encountered: