Test specific handling of ContextWindowExceededError
()
| 54 | |
| 55 | |
| 56 | def test_context_window_error(): |
| 57 | """Test specific handling of ContextWindowExceededError""" |
| 58 | ex = LiteLLMExceptions() |
| 59 | from litellm import ContextWindowExceededError |
| 60 | |
| 61 | ctx_error = ContextWindowExceededError( |
| 62 | message="Context length exceeded", model="gpt-4", llm_provider="openai" |
| 63 | ) |
| 64 | ex_info = ex.get_ex_info(ctx_error) |
| 65 | assert ex_info.retry is False |
| 66 | |
| 67 | |
| 68 | def test_openrouter_error(): |
nothing calls this directly
no test coverage detected