diff --git a/litellm/litellm_core_utils/exception_mapping_utils.py b/litellm/litellm_core_utils/exception_mapping_utils.py index 6d546c69f1b..dac09d34cc0 100644 --- a/litellm/litellm_core_utils/exception_mapping_utils.py +++ b/litellm/litellm_core_utils/exception_mapping_utils.py @@ -2040,7 +2040,7 @@ def exception_type( # type: ignore # noqa: PLR0915 llm_provider="ollama", model=model, ) - elif "session usage limit" in error_str or "rate limit" in error_str.lower(): + elif "session usage limit" in error_str.lower() or "rate limit" in error_str.lower(): exception_mapping_worked = True raise RateLimitError( message=f"OllamaException: {original_exception}",