mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-29 08:21:22 +00:00
The empty-line filter in __next__/__anext__ called .strip() without checking the type first. When the Responses API yields Pydantic BaseModel events (e.g. ResponseCreatedEvent), this raises AttributeError. Add an isinstance(str_line, str) guard so non-string objects pass through to _handle_string_chunk as intended. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.