Relates to #223
Add a POST /decode/vin endpoint to the Python OCR service that uses Gemini to decode a VIN string into structured vehicle data.
POST /decode/vin
decode_vin(vin: str)
GeminiEngine
VinDecodeResponse
app/models/
app/routers/extract.py
{ "success": true, "vin": "1HGBH41JXMN109186", "year": 2020, "make": "Toyota", "model": "Camry", "trimLevel": "SE", "bodyType": "Sedan", "driveType": "FWD", "fuelType": "Gasoline", "engine": "2.5L 4-Cylinder", "transmission": "8-Speed Automatic", "confidence": 0.95, "processingTimeMs": 1200 }
No dependencies set.
The note is not visible to the blocked user.
Relates to #223
Scope
Add a
POST /decode/vinendpoint to the Python OCR service that uses Gemini to decode a VIN string into structured vehicle data.Changes
decode_vin(vin: str)method toGeminiEnginewith VIN-specific prompt and response schemaVinDecodeResponsePydantic model inapp/models/POST /decode/vinroute inapp/routers/extract.pyResponse Schema
Acceptance Criteria