mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-21 14:18:11 +02:00
Merge pull request #238 from R0m1k3/antigravity
feat: Implement scheduler service for automated item price and stock …
This commit is contained in:
2 files changed
+7
-5
No files matched your search
@@ -177,11 +177,12 @@ async def process_item_check(item_id: int):
|
|||||||
logger.debug(f"JSON-LD extraction failed: {e}")
|
logger.debug(f"JSON-LD extraction failed: {e}")
|
||||||
|
|
||||||
# 2. Try AIPriceExtractor (Text AI - Gemma 3) - Very reliable for search
|
# 2. Try AIPriceExtractor (Text AI - Gemma 3) - Very reliable for search
|
||||||
from app.services.ai_price_extractor import AIPriceExtractor
|
# DISABLED FOR VISION PRIORITY (User Request: Option 2)
|
||||||
if price is None:
|
# from app.services.ai_price_extractor import AIPriceExtractor
|
||||||
price = await AIPriceExtractor.extract_price(html_content, item_data["name"])
|
# if price is None:
|
||||||
if price:
|
# price = await AIPriceExtractor.extract_price(html_content, item_data["name"])
|
||||||
logger.info(f"AIPriceExtractor (Text) found price: {price}€")
|
# if price:
|
||||||
|
# logger.info(f"AIPriceExtractor (Text) found price: {price}€")
|
||||||
|
|
||||||
# 3. Fallback/Verification with AIService (Vision AI - Gemini)
|
# 3. Fallback/Verification with AIService (Vision AI - Gemini)
|
||||||
extraction = None
|
extraction = None
|
||||||
|
|||||||
@@ -14,3 +14,4 @@
|
|||||||
|
|
||||||
- **2025-12-22**: Initialized task. Confirmed current system is *already* sending images, but likely confusing the AI with conflicting text data.
|
- **2025-12-22**: Initialized task. Confirmed current system is *already* sending images, but likely confusing the AI with conflicting text data.
|
||||||
- **2025-12-22**: User selected **Option 2 (Vision Priority)**. Proceeding to rewrite AI System Prompt.
|
- **2025-12-22**: User selected **Option 2 (Vision Priority)**. Proceeding to rewrite AI System Prompt.
|
||||||
|
- **2025-12-22**: **FIX**: Detected that `scheduler_service.py` was prioritizing a text-only extractor (0.99€ found in text) before checking the image. Disabled the text-only extractor to force Vision AI usage.
|
||||||
Reference in new issue
Block a user