mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-20 00:11:50 +00:00
Providers that cannot fetch a public document URL themselves (Azure AI mistral document AI, Azure cohere parse, Vertex AI) download it and inline it as a data URI. When a pre-call callback or debug logging intercepts the request, the Python host hands the caller's original document back into the body, so the provider request carried the URL again and Azure's inline-only check rejected it with "invalid OCR document data URI". The core now keeps the prepared document when a hook returns the untouched caller document, while a hook that edits or replaces the document still wins |
||
|---|---|---|
| .. | ||
| crates | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||