原逻辑 if True: 导致数据库瞬时错误也终止整个语音事件循环, AI 回复被中途截断。改为仅当 reason == insufficient_tokens 时 才终止,其他扣费错误(如 DB 超时)不中断会话。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| models | ||
| __init__.py | ||
| admin_router.py | ||
| ai_governance_router.py | ||
| background_router.py | ||
| cache_router.py | ||
| chat_router.py | ||
| fullscreen_router.py | ||
| live2d_router.py | ||
| model_config_router.py | ||
| pet_router.py | ||
| scene_editor_router.py | ||
| sms_auth_router.py | ||
| storage_router.py | ||
| user_router.py | ||
| voice_chat_router.py | ||
| voice_chat_router.py.bak2 | ||
| wechat_auth_router.py | ||