mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-24 07:38:13 +02:00
feat: Add AI-powered data extraction and direct search services
This commit is contained in:
1 parent
a78d24fe5a
commit
b6c1fc1cda
2 files changed
+6
-6
No files matched your search
@@ -352,9 +352,11 @@ class AIService:
|
||||
logger.info("JSON repair successful")
|
||||
except Exception as repair_error:
|
||||
logger.error(f"JSON repair also failed: {repair_error}")
|
||||
raise
|
||||
# Return None instead of raising to prevent crash
|
||||
return None
|
||||
else:
|
||||
raise
|
||||
logger.warning("JSON repair disabled, returning None")
|
||||
return None
|
||||
|
||||
# Create metadata
|
||||
metadata = AIExtractionMetadata(
|
||||
|
||||
Reference in new issue
Block a user