litellm/litellm-rust/crates/llms/src
zoveki b96c1f30a6
feat(ocr)!: support outputContentFormat=markdown for Azure Document Intelligence (#48926)
* 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>
2026-10-28 20:38:23 -07:00
..
anthropic feat(rust): one typed decline from core up to each host (#47772) 2026-10-28 09:22:11 -07:00
aws_textract refactor(rust): adopt one error discipline across litellm-rust with source chains and Report (#48042) 2026-10-28 09:22:11 -07:00
azure_ai feat(ocr)!: support outputContentFormat=markdown for Azure Document Intelligence (#48926) 2026-10-28 20:38:23 -07:00
base_llm feat(ocr)!: support outputContentFormat=markdown for Azure Document Intelligence (#48926) 2026-10-28 20:38:23 -07:00
bedrock fix(bedrock): omit system prompt from audio transcription and report its token usage (#41565) 2026-10-28 19:23:15 -07:00
bedrock_mantle refactor(rust): inline Messages provider resolution (#47217) 2026-10-19 09:03:44 -07:00
cohere refactor(rust): adopt one error discipline across litellm-rust with source chains and Report (#48042) 2026-10-28 09:22:11 -07:00
deepseek refactor(rust): inline Messages provider resolution (#47217) 2026-10-19 09:03:44 -07:00
edenai refactor(rust): inline Messages provider resolution (#47217) 2026-10-19 09:03:44 -07:00
minimax refactor(rust): inline Messages provider resolution (#47217) 2026-10-19 09:03:44 -07:00
mistral refactor(rust): adopt one error discipline across litellm-rust with source chains and Report (#48042) 2026-10-28 09:22:11 -07:00
openai refactor(rust): adopt one error discipline across litellm-rust with source chains and Report (#48042) 2026-10-28 09:22:11 -07:00
openai_like feat(rust): one typed decline from core up to each host (#47772) 2026-10-28 09:22:11 -07:00
openrouter refactor(rust): inline Messages provider resolution (#47217) 2026-10-19 09:03:44 -07:00
reducto refactor(rust): adopt one error discipline across litellm-rust with source chains and Report (#48042) 2026-10-28 09:22:11 -07:00
tencent refactor(rust): inline Messages provider resolution (#47217) 2026-10-19 09:03:44 -07:00
vertex_ai fix(vertex_ai)!: send the caller's anthropic-version in the Vertex Claude /v1/messages body, not the header (#48814) 2026-10-28 18:06:58 -07:00
error.rs feat(rust): one typed decline from core up to each host (#47772) 2026-10-28 09:22:11 -07:00
lib.rs refactor(rust): adopt one error discipline across litellm-rust with source chains and Report (#48042) 2026-10-28 09:22:11 -07:00