mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-12 03:06:22 +00:00
5f5a7c917a
Fixes RuntimeError "Session is closed" by: - Checking session.closed before use and recreating if needed - Catching RuntimeError during requests and retrying with new session - Validating newly created sessions aren't already closed Adds tests for both proactive detection and reactive retry scenarios.
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.