feat: Expand OCR with fuel receipt scanning and maintenance extraction (#129) #147
@@ -148,13 +148,15 @@ class GeminiEngine:
|
||||
return self._model
|
||||
|
||||
except ImportError as exc:
|
||||
logger.exception("Vertex AI SDK import failed")
|
||||
raise GeminiUnavailableError(
|
||||
"google-cloud-aiplatform is not installed. "
|
||||
"Install with: pip install google-cloud-aiplatform"
|
||||
) from exc
|
||||
except Exception as exc:
|
||||
logger.exception("Vertex AI authentication failed")
|
||||
raise GeminiUnavailableError(
|
||||
f"Failed to initialize Gemini engine: {exc}"
|
||||
f"Vertex AI authentication failed: {exc}"
|
||||
) from exc
|
||||
|
||||
def extract_maintenance(
|
||||
|
||||
Reference in New Issue
Block a user