mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
The `if hasattr(...)` guards in test_acompletion_with_mcp_adds_metadata_to_streaming and test_acompletion_with_mcp_streaming_metadata_in_correct_chunks could silently skip the provider_specific_fields assertions if chunks lacked choices/delta. Replace with unconditional `assert hasattr(...)` so failures surface immediately. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test_chat_completions_handler.py | ||
| test_litellm_proxy_mcp_handler.py | ||