feat: Update OCR dependency to google-genai (#231) #232

Closed
opened 2026-02-20 15:10:59 +00:00 by egullickson · 2 comments
Owner

Relates to #231

Replace google-cloud-aiplatform>=1.40.0 with google-genai>=1.0.0 in ocr/requirements.txt.

Acceptance Criteria

  • ocr/requirements.txt lists google-genai>=1.0.0 instead of google-cloud-aiplatform>=1.40.0
  • Comment updated to reflect new SDK name

File

ocr/requirements.txt

Relates to #231 Replace `google-cloud-aiplatform>=1.40.0` with `google-genai>=1.0.0` in `ocr/requirements.txt`. ## Acceptance Criteria - [ ] `ocr/requirements.txt` lists `google-genai>=1.0.0` instead of `google-cloud-aiplatform>=1.40.0` - [ ] Comment updated to reflect new SDK name ## File `ocr/requirements.txt`
egullickson added the
status
in-progress
type
feature
labels 2026-02-20 15:11:18 +00:00
egullickson added this to the Sprint 2026-02-02 milestone 2026-02-20 15:11:21 +00:00
Author
Owner

Plan: M1 -- Update OCR dependency (#232)

Phase: Planning | Agent: Planner | Status: APPROVED
Parent: #231 | Revision: v4


Context

The OCR service uses the deprecated vertexai.generative_models SDK from google-cloud-aiplatform (EOL June 2026). The replacement is google-genai.

Codebase Analysis

File SDK References Action
ocr/requirements.txt google-cloud-aiplatform>=1.40.0 Swap to google-genai>=1.0.0
ocr/Dockerfile No SDK-specific build steps No changes (flows from requirements.txt)

Implementation

  • File: ocr/requirements.txt
  • Replace google-cloud-aiplatform>=1.40.0 with google-genai>=1.0.0
  • Update inline comment from "Vertex AI / Gemini (maintenance schedule extraction)" to "Google GenAI / Gemini (maintenance schedule extraction, VIN decode)"

Acceptance Criteria

  • ocr/requirements.txt lists google-genai>=1.0.0 instead of google-cloud-aiplatform>=1.40.0
  • Comment updated to reflect new SDK name

Review Findings

No QR/TW findings specific to M1. Dependency swap is straightforward.


Verdict: APPROVED | Next: Execute

## Plan: M1 -- Update OCR dependency (#232) **Phase**: Planning | **Agent**: Planner | **Status**: APPROVED **Parent**: #231 | **Revision**: v4 --- ### Context The OCR service uses the deprecated `vertexai.generative_models` SDK from `google-cloud-aiplatform` (EOL June 2026). The replacement is `google-genai`. ### Codebase Analysis | File | SDK References | Action | |------|---------------|--------| | `ocr/requirements.txt` | `google-cloud-aiplatform>=1.40.0` | Swap to `google-genai>=1.0.0` | | `ocr/Dockerfile` | No SDK-specific build steps | No changes (flows from requirements.txt) | ### Implementation - File: `ocr/requirements.txt` - Replace `google-cloud-aiplatform>=1.40.0` with `google-genai>=1.0.0` - Update inline comment from "Vertex AI / Gemini (maintenance schedule extraction)" to "Google GenAI / Gemini (maintenance schedule extraction, VIN decode)" ### Acceptance Criteria - [ ] `ocr/requirements.txt` lists `google-genai>=1.0.0` instead of `google-cloud-aiplatform>=1.40.0` - [ ] Comment updated to reflect new SDK name ### Review Findings No QR/TW findings specific to M1. Dependency swap is straightforward. --- *Verdict*: APPROVED | *Next*: Execute
Author
Owner

Milestone: M1 Complete -- Update OCR dependency

Phase: Execution | Agent: Developer | Status: PASS


Changes

  • ocr/requirements.txt: Replaced google-cloud-aiplatform>=1.40.0 with google-genai>=1.0.0
  • Updated inline comment from "Vertex AI / Gemini (maintenance schedule extraction)" to "Google GenAI / Gemini (maintenance schedule extraction, VIN decode)"

Acceptance Criteria

  • ocr/requirements.txt lists google-genai>=1.0.0 instead of google-cloud-aiplatform>=1.40.0
  • Comment updated to reflect new SDK name

Commit

398d673 on branch issue-231-migrate-gemini-sdk-google-genai


Verdict: PASS | Next: M2 -- Migrate GeminiEngine (#233)

## Milestone: M1 Complete -- Update OCR dependency **Phase**: Execution | **Agent**: Developer | **Status**: PASS --- ### Changes - `ocr/requirements.txt`: Replaced `google-cloud-aiplatform>=1.40.0` with `google-genai>=1.0.0` - Updated inline comment from "Vertex AI / Gemini (maintenance schedule extraction)" to "Google GenAI / Gemini (maintenance schedule extraction, VIN decode)" ### Acceptance Criteria - [x] `ocr/requirements.txt` lists `google-genai>=1.0.0` instead of `google-cloud-aiplatform>=1.40.0` - [x] Comment updated to reflect new SDK name ### Commit `398d673` on branch `issue-231-migrate-gemini-sdk-google-genai` --- *Verdict*: PASS | *Next*: M2 -- Migrate GeminiEngine (#233)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: egullickson/motovaultpro#232