mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-29 06:33:28 +00:00
* feat(ocr): support outputContentFormat=markdown for Azure Document Intelligence * fix(ocr): map only span endpoints when slicing Azure Markdown pages * fix(ocr): accept any casing of outputContentFormat and report code point offsets Azure reads outputContentFormat case-insensitively, so Markdown and TEXT now map to the same values instead of returning 400. When the proxy asks Azure for code point offsets to split Markdown pages, the response now carries stringIndexType so callers know the unit of table and key-value spans. Tests use rstest and the enum derives VariantArray per the Rust workspace rules. * fix(ocr): ask Azure for code point offsets only on prebuilt-layout and keep line-joined pages when spans are malformed * fix(ocr): trim Azure DI outputContentFormat, accept output_content_format, and drop invalid values under drop_params * fix(ocr): fall back to output_content_format when outputContentFormat is empty --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| .agents/skills | ||
| crates | ||
| docs/adrs | ||
| .gitignore | ||
| AGENTS.md | ||
| Cargo.lock | ||
| Cargo.toml | ||
| clippy.toml | ||