You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub鈥檚 verified signature.
Added
EXPLAIN_ERRORS_DEDUP (default True): when an error identical to one already explained in this process occurs again, the earlier explanation is replayed instead of calling the model or using a throttle slot. Errors are identical when they share exception type, exception message, and innermost project line (file, line number, and that line's source text). The last 128 distinct errors are kept per worker (least recently used evicted first) and entries never expire on a timer. Set to False to explain every error.
Changed
Internal refactor: process_exception is split into _build_prompt and _generate_explanation. No behavior change.
Fixed
The async path (acall) no longer dispatches to a thread when DEBUG is False, so the middleware stays fully inert in production.