feat: Add AI-powered data extraction and direct search services

This commit is contained in:
Michael committed 2025-11-29 02:53:35 +01:00
1 parent a78d24fe5a
commit b6c1fc1cda
2 files changed
+6 -6

No files matched your search

+4 -2
View File
@@ -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(