Image URL Handling
Some LLM API's don't support url's for images, but do support base-64 strings.
For those, LiteLLM will:
- Detect a URL being passed
- Check if the LLM API supports a URL
- Else, will download the base64
- Send the provider a base64 string.
LiteLLM also caches this result, in-memory to reduce latency for subsequent calls.
The limit for an in-memory cache is 1MB.