Root cause: stop_reason=max_tokens - Claude ran out of output tokens before finishing the tool call JSON for 50+ assets. Fix: - Bump max_tokens from 16000 to 32000 for both normal and deep extraction - Tell Claude to keep descriptions SHORT (1 sentence max) - Reduce input data to 35k chars (from 40k) to leave more room for output - Better stop_reason logging on normal extraction too Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| ai_descriptions.py | ||
| ai_matching.py | ||
| doc_parser.py | ||
| excel_parser.py | ||
| export_excel.py | ||
| export_pdf.py | ||
| match_refiner.py | ||
| ratecard_builder.py | ||
| rfp_analysis.py | ||
| team_shape.py | ||
| tier_expander.py | ||