mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 09:40:19 +08:00
Part of #2693, visibility only: the turn still runs the one active model, but a failed turn no longer reads as "the provider connection was interrupted" with no name, no attempt count, and no hint that an alternative is already configured. - `provider_visibility.py` builds the retry and final-failure copy from a pipeline's binding, model and endpoint host, plus the number of configured fallbacks (`services/model_selection/fallbacks.py`: read-only, bounded, tolerant of a hand-edited catalog). - Non-transport provider errors (401/403/429/5xx, model-not-found) are mapped through the existing error taxonomy before they are raised, so the user reads "provider X returned a server-side error" instead of the SDK's raw "Error code: 502" — while the typed error, status code and retry flags that the loop and the forced-finish path branch on are preserved. - The failure trace metadata gains `provider`, `attempts` and `fallbacks_configured`. - zh and en chat prompt copy updated; other capabilities keep the code defaults until their prompt packs are updated. No failover yet: switching, cooldowns and failback land in P1.