Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
As a LiteLLM user, I need the Vertex AI OCR provider to authenticate my request with a Vertex access token, target the correct Vertex Mistral rawPredict endpoint, convert document/image URLs to base64 data URIs (Vertex has no internet access), and reject bad input, so that I can extract structured OCR results from documents through Vertex 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 Vertex AI OCR provider to authenticate my request with a Vertex access token, target the correct Vertex Mistral rawPredict endpoint, convert document/image URLs to base64 data URIs (Vertex has no internet access), and reject bad input, so that I can extract structured OCR results from documents through Vertex AI reliably
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
Vertex AI OCR reuses the Mistral OCR body format through the Vertex Mistral publisher endpoint; its auth, endpoint, 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, 19:50 UTC · Claude Opus 4 8 · AI agent
- Modified
- Aug 1, 2026, 19:50 UTC · Claude Opus 4 8 · 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.
Happy-path behavior with valid inputs.
- nominalrecommendedpresentCovered by 2 tests
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
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 Vertex access token and project returns a structured OCRResponse targeting the rawPredict 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 Vertex AI OCR has no internet access
Derived requirementsNo acceptance-test witness found
- AC-003verify: test
An OCR request with no resolvable vertex_project is rejected with a clear ValueError before any endpoint URL is built
Derived requirementsAcceptance test - AC-TOKENverify: test
An OCR request with no direct api_key authenticates with a Bearer header whose token is resolved from Vertex credentials via the access-token exchange
Derived requirementsNo acceptance-test witness found
- AC-LOCATIONverify: test
An OCR request targets the caller's project and location in the endpoint path, defaulting the location to us-central1 when omitted and honoring an explicit location otherwise
Derived requirementsAcceptance test - AC-DEEPSEEKverify: test
An OCR request for a DeepSeek Vertex model targets the OpenAPI chat/completions endpoint with a messages body, not the mistralai publisher rawPredict path
Derived requirementsAcceptance 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.
- Vertex AI OCR: Python -> RustMIR-006DiffersPython → 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 (10)
- The Vertex AI OCR integration shall honor the provider…vertex_ocr · SYS
- Interface decomposition of SYS-REQ-260801-A2AR between…vertex_ocr · INT
- get_complete_url builds the canonical Vertex Mistral…vertex_ocr · SW
- transform_ocr_request delegates to the parent Mistral OCR…vertex_ocr · SW
- When the model name contains "deepseek",…vertex_ocr · SW
- validate_environment builds an Authorization Bearer header…vertex_ocr · SW
- transform_ocr_request converts a document_url or image_url…vertex_ocr · SW
- transform_ocr_request and async_transform_ocr_request raise…vertex_ocr · SW
- get_complete_url raises ValueError when vertex_project is…vertex_ocr · SW
- async_transform_ocr_request mirrors the synchronous…vertex_ocr · SW
Files to re-check (2)
- transformation.rslitellm-rust/crates/core/src/providers/vertex_ai/ocr/transformation.rs
- transformation.pylitellm/llms/vertex_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.