Files
next-ai-draw-io/components
dayuan.jiang 9027b41edd fix: limit auto-retry to 3 attempts and enforce quota checks
- Add MAX_AUTO_RETRY_COUNT (3) to prevent infinite retry loops
- Check token and TPM limits before each auto-retry
- Reset retry counter on user-initiated messages
- Show toast notification when limits are reached

Fixes issue where models returning invalid tool inputs caused 45+ API
requests due to sendAutomaticallyWhen having no retry limit or quota check.
2025-12-11 17:50:50 +09:00
..