kiwi/app/services
pyr0ball 430600c1af fix(recipe_scan): harden JSON parser for real-world LLM output quirks
- Strip <think>/<thinking> blocks before parsing (Qwen3/DeepSeek-R1 emit
  these before the actual JSON answer)
- Replace greedy regex with brace-balanced _extract_json_object() so
  trailing prose after } doesn't corrupt the extract
- Use non-greedy fence regex to pull JSON from inside ```json blocks
- Pass system= to LLMRouter.complete() with a terse JSON-only instruction
  so Ollama models receive it as a system message, not buried in the user turn
- Add logger.warning() on parse failure so raw output is diagnosable
2026-05-17 08:30:55 -07:00
..
ap feat(ap): issue #113 — ActivityPub federation + Mastodon OAuth 2026-05-11 17:55:51 -07:00
community feat(community): issue #119 — recipe dedup + variation clustering on submit 2026-05-11 17:25:06 -07:00
export chore: initial commit — kiwi Phase 2 complete 2026-03-30 22:20:48 -07:00
image_preprocessing chore: initial commit — kiwi Phase 2 complete 2026-03-30 22:20:48 -07:00
meal_plan fix(orch): release Tier 2 allocation ctx when alloc is None; add fallback tests 2026-05-13 10:41:55 -07:00
ocr fix(recipe-scan): wire cf-docuvision OCR + LLMRouter for cloud recipe scanning (kiwi#136) 2026-05-16 14:21:15 -07:00
quality chore: initial commit — kiwi Phase 2 complete 2026-03-30 22:20:48 -07:00
recipe fix(recipe_scan): harden JSON parser for real-world LLM output quirks 2026-05-17 08:30:55 -07:00
__init__.py feat: cross-encoder reranker for recipe suggestions (kiwi#117) 2026-04-24 16:39:51 -07:00
barcode_scanner.py feat: cloud auth bypass, VRAM leasing, barcode EXIF fix, pipeline improvements 2026-04-01 16:06:23 -07:00
coordinator_proxy.py feat(streaming): add coordinator_proxy service module 2026-04-24 10:18:40 -07:00
expiration_predictor.py feat: expand secondary use windows + dietary constraint filter (kiwi#110) 2026-04-24 17:08:45 -07:00
heimdall_orch.py feat(kiwi): add Heimdall orch budget client with fail-open semantics 2026-04-14 15:15:43 -07:00
inventory_service.py chore: initial commit — kiwi Phase 2 complete 2026-03-30 22:20:48 -07:00
label_capture.py feat: visual label capture for unenriched barcodes (kiwi#79) 2026-04-24 17:57:25 -07:00
leftovers_predictor.py feat(recipes): LLM style classifier (#27) + cooked leftovers shelf-life (#112) 2026-04-25 23:18:16 -07:00
magpie_hook.py feat: corrections router (#73) + Magpie flywheel hook (#28) 2026-04-25 23:31:20 -07:00
openfoodfacts.py fix: barcode scan performance + timeout + success message 2026-04-16 09:57:53 -07:00
receipt_service.py chore: initial commit — kiwi Phase 2 complete 2026-03-30 22:20:48 -07:00
receipt_service_inmemory_backup.py chore: initial commit — kiwi Phase 2 complete 2026-03-30 22:20:48 -07:00
task_inference.py feat(orch): add task_inference helper for POST /api/inference/task routing 2026-05-13 10:27:47 -07:00