mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 09:05:16 +00:00
9acf80b8ad
* Fix issue #13995: Handle None metadata in batch requests - Added null check in add_key_level_controls method to prevent NoneType error - Updated type hint to Optional[dict] for better type safety - Added comprehensive test suite to verify the fix works correctly - All existing tests pass, confirming no regression Fixes #13995 Co-authored-by: openhands <openhands@all-hands.dev> * Move test file to tests/test_litellm/proxy/ directory - Moved test_batch_metadata_none_fix.py from tests/ to tests/test_litellm/proxy/ - Updated import structure to match existing test patterns - This ensures the test runs in GitHub Actions as requested by @krrishdholakia Co-authored-by: openhands <openhands@all-hands.dev> --------- Co-authored-by: openhands <openhands@all-hands.dev>