Add raw AI response to parse result for debugging
- Backend returns raw AI text alongside parsed fields - Drawer shows expandable "Raw AI response" section when result has empty fields - Scan Receipt shows raw response inline if no fields were extracted - Helps diagnose model output issues without needing server logs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1ece0908af
commit
a7c54ca61c
4 changed files with 18 additions and 2 deletions
|
|
@ -363,6 +363,7 @@ async def _call_ai_parse(file_bytes: bytes, mime_type: str, user_row) -> dict:
|
|||
"date": parsed.get("date"),
|
||||
"description": parsed.get("description"),
|
||||
"category": parsed.get("category"),
|
||||
"raw": text,
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue