mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-28 20:20:56 +00:00
Greptile P2 follow-ups on _content_utils.py: - Drop unreachable ``_resolve_messages``. The new ``_iter_inspection_messages`` walks ``messages`` AND ``input`` independently; leaving the old fallback-only variant around invited a future maintainer to wire it back up and silently narrow coverage. - Rename ``iter_user_text`` → ``iter_message_text``. The helper walks every role (user, assistant, system); the old name implied user-turn content only. Callers and tests updated. - Close mixed-list coverage gap. When ``data["input"]`` was a list mixing content-part dicts and bare strings, ``iter_message_text`` and ``build_inspection_messages`` only saw the dict parts while ``walk_user_text`` already inspected both. ``_iter_text_parts_in_content`` now treats bare strings inside a content list as text fragments, so read and write helpers agree on coverage. Adds two regression tests for the mixed-list shape. Co-Authored-By: Claude Opus 4.7 (1M context) <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.