mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
fix: Support file uploads for OpenAI/Azure in LiteLLM
This change expands the supported file MIME types and introduces provider-specific handling for file uploads. For providers like OpenAI and Azure, inline file data is now uploaded via `litellm.acreate_file` to obtain a `file_id`, which is then used in the message content. Other providers continue to use base64 encoded file data. Affected functions have been updated to be asynchronous Merge:https://github.com/google/adk-python/pull/2863 Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 839996848
This commit is contained in:
committed by
Copybara-Service
co-authored by
George Weale
parent
bb8a269079
commit
b0c3cc6e36