- Log structure analysis length and data length before Pass 2 - Log stop_reason from Claude response - If no assets returned, log the text response for debugging - Truncate structure analysis to 4k chars if too long (leaves room for data) - Reduce data to 40k chars (was 45k, combined with analysis was too large) - Add instruction: "You MUST call extract_assets with at least one asset" Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| middleware | ||
| models | ||
| schemas | ||
| services | ||
| utils | ||
| __init__.py | ||
| config.py | ||
| database.py | ||
| main.py | ||