Repository navigation
fix: warn on silent MIME type fallback and propagate model in recursive calls - #5207
enjoykumawat wants to merge 4 commits into
Conversation
…ve calls LiteLLM silently fell back to application/octet-stream when file_uri MIME type could not be determined, using only a debug log that was easy to miss. Upgrade to warning level so developers notice the fallback. Also fix _content_to_message_param() to propagate the model parameter in recursive calls for mixed function_response + content parts, which caused incorrect provider detection on Vertex AI / Anthropic. Fixes google#5184
d149537 to
c03864d
Compare
|
Hi @enjoykumawat, Thank you for your contribution! We appreciate you taking the time to submit this pull request. Please fix formatting errors by running autoformat.sh |
|
Hi @rohityan, thanks for the feedback! I've run |
|
Closing as superseded. While rebasing this onto current Nothing left of this PR to contribute — thanks for the review time regardless. |
Summary
logger.debugtologger.warningwhen falling back toapplication/octet-streamfor file URIs without determinable MIME type_content_to_message_param()to propagatemodelparameter in recursive calls for mixed function_response + content partsRoot Cause
application/octet-streamfallback with only a debug log caused incorrect file handling on Vertex AImodel=modelin recursive call lost provider-specific behavior (e.g., Anthropic thinking blocks)Test Plan
Fixes #5184