Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
As a LiteLLM user, I need the Azure AI OCR provider to authenticate my request with a Bearer Azure AI API key, target the correct Azure AI providers/mistral/azure/ocr endpoint, convert document/image URLs to base64 data URIs (Azure AI OCR has no internet access), and reject bad input or a missing key/base, so that I can extract structured OCR results from documents through Azure AI reliably
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
As a LiteLLM user, I need the Azure AI OCR provider to authenticate my request with a Bearer Azure AI API key, target the correct Azure AI providers/mistral/azure/ocr endpoint, convert document/image URLs to base64 data URIs (Azure AI OCR has no internet access), and reject bad input or a missing key/base, so that I can extract structured OCR results from documents through Azure AI reliably
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
Azure AI OCR reuses the Mistral OCR body format through the Azure AI Foundry providers/mistral/azure/ocr endpoint; its Bearer-key auth, api_base guard, endpoint construction, and URL-to-data-URI conversion contract must be specified and verified
Verification & provenance
How this requirement was checked: the review trail, edit history, and the machine-analysis status terms (each ⓘ explains what it means).
Review
- Status
- pending
History
- Created
- Aug 1, 2026, 20:51 UTC · Claude Opus 4 8 · AI agent
- Modified
- Aug 12, 2026, 13:33 UTC · Claude Code · AI agent
Change history
Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.
Obligations
What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.
3 obligations · 3 discharged
Browse the catalogueEvidence tagged via <REQ> is witnessed by a requirement that satisfies this one — normal for stakeholder / aggregate requirements, which are proven through the requirements that refine them.
Behavior when operations fail or dependencies are unavailable.
- negativerequiredpresentCovered by 2 tests
- nominalrecommendedpresentCovered by 2 tests
Behavior when inputs are syntactically or structurally invalid.
- negativerequiredpresentCovered by 2 tests
- nominalrecommendedpresentCovered by 2 tests
Happy-path behavior with valid inputs.
- nominalrecommendedpresentCovered by 2 tests
Acceptance criteria
Stakeholder conditions for satisfaction, traced to the derived requirements and evidence that discharge them.
Acceptance criteria
Stakeholder conditions for satisfaction, traced to the derived requirements and evidence that discharge them.
Stakeholder-authored conditions defining when the requirement is satisfied, traced to derived requirements / evidence.
- AC-001verify: test
A user OCR request with a valid Mistral-format document dict, a resolvable Azure AI API key and api_base returns a structured OCRResponse targeting the providers/mistral/azure/ocr endpoint
Derived requirementsAcceptance test - AC-002verify: test
An OCR request with a non-data document or image URL has that URL converted to a base64 data URI before the request is built, because Azure AI OCR has no internet access
Derived requirementsNo acceptance-test witness found
- AC-003verify: test
An OCR request with no resolvable Azure AI API key or api_base is rejected with a clear ValueError before the provider is called
Derived requirementsAcceptance test - AC-004verify: test
A non-dict document is rejected with a clear error before any Azure AI provider call is made
Acceptance test
Its place
How this requirement connects — what proves it, what it affects, and what it rests on. Authored links only here; automatically derived links come from the audit index.
Loading graph…
Trace evidence
The concrete artifacts linked to this requirement — implementing code, verifying tests, documents, and the findings raised against it.
No implementation linked
No source files are traced to this requirement yet.
Mirrors
Ports this requirement participates in — it carries a reviewed exemption on one side, or a finding raised against it is tracked as part of the port.
Mirrors
Ports this requirement participates in — it carries a reviewed exemption on one side, or a finding raised against it is tracked as part of the port.
- Azure AI OCR: Python -> RustMIR-007DiffersPython → RustView in Mirrors
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
If you change this
Requirements (8)
- The Azure AI OCR integration shall honor the provider…azure_ocr · SYS
- Interface decomposition of SYS-REQ-260801-0NT9 between…azure_ocr · INT
- validate_environment builds an Authorization Bearer header…azure_ocr · SW
- async_transform_ocr_request mirrors the synchronous…azure_ocr · SW
- transform_ocr_request and async_transform_ocr_request raise…azure_ocr · SW
- get_complete_url raises ValueError when no api_base is…azure_ocr · SW
- transform_ocr_request converts a document_url or image_url…azure_ocr · SW
- transform_ocr_request delegates to the parent Mistral OCR…azure_ocr · SW
Files to re-check (2)
- transformation.rslitellm-rust/crates/core/src/providers/azure_ai/ocr/transformation.rs
- transformation.pylitellm/llms/azure_ai/ocr/transformation.py
Tests to re-run (1)
- tests.rslitellm-rust/crates/ai-gateway/src/ocr/tests.rs
What this rests on
Discussions
Discuss this with the proof team. Nothing changes in your audit automatically — you open a request and a staff member records any outcome inside the thread.