feat: Migrate Gemini SDK to google-genai (#231) #236
Reference in New Issue
Block a user
Delete Branch "issue-231-migrate-gemini-sdk-google-genai"
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?
Fixes #231
Fixes #232
Fixes #233
Fixes #234
Fixes #235
Summary
Migrate OCR service from deprecated
google-cloud-aiplatform/vertexai.generative_modelsSDK togoogle-genaipackage. Enable Google Search grounding for VIN decode to improve accuracy.Changes
google-cloud-aiplatform>=1.40.0togoogle-genai>=1.0.0in requirements.txtGeminiEngine--_get_model()to_get_client(), client-per-call pattern, Google Search grounding for VIN decode, uppercase schema typesMaintenanceReceiptExtractor-- same pattern, fix RuntimeError bug to use GeminiUnavailableErrorengine._client/engine._model_namepattern, clean up dead codeTest Results
Remaining Verification
1G1YE2D32P5602473to confirm correct 2023 Corvette data with Google Search grounding