feat: Update OCR dependency to google-genai (#231) #232
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relates to #231
Replace
google-cloud-aiplatform>=1.40.0withgoogle-genai>=1.0.0inocr/requirements.txt.Acceptance Criteria
ocr/requirements.txtlistsgoogle-genai>=1.0.0instead ofgoogle-cloud-aiplatform>=1.40.0File
ocr/requirements.txtPlan: M1 -- Update OCR dependency (#232)
Phase: Planning | Agent: Planner | Status: APPROVED
Parent: #231 | Revision: v4
Context
The OCR service uses the deprecated
vertexai.generative_modelsSDK fromgoogle-cloud-aiplatform(EOL June 2026). The replacement isgoogle-genai.Codebase Analysis
ocr/requirements.txtgoogle-cloud-aiplatform>=1.40.0google-genai>=1.0.0ocr/DockerfileImplementation
ocr/requirements.txtgoogle-cloud-aiplatform>=1.40.0withgoogle-genai>=1.0.0Acceptance Criteria
ocr/requirements.txtlistsgoogle-genai>=1.0.0instead ofgoogle-cloud-aiplatform>=1.40.0Review Findings
No QR/TW findings specific to M1. Dependency swap is straightforward.
Verdict: APPROVED | Next: Execute
Milestone: M1 Complete -- Update OCR dependency
Phase: Execution | Agent: Developer | Status: PASS
Changes
ocr/requirements.txt: Replacedgoogle-cloud-aiplatform>=1.40.0withgoogle-genai>=1.0.0Acceptance Criteria
ocr/requirements.txtlistsgoogle-genai>=1.0.0instead ofgoogle-cloud-aiplatform>=1.40.0Commit
398d673on branchissue-231-migrate-gemini-sdk-google-genaiVerdict: PASS | Next: M2 -- Migrate GeminiEngine (#233)