refactor(agent/turn_empty_response): pack one call

This commit is contained in:
Teknium
2026-09-02 18:54:44 -07:00
parent 1a025a4cc6
commit b741b8de79
+1 -2
View File
@@ -265,8 +265,7 @@ def recover_empty_response(
if _truly_empty and agent._fallback_chain:
logger.warning(
"Empty response after %d retries — attempting fallback (model=%s, provider=%s)",
agent._empty_content_retries, agent.model,
agent.provider,
agent._empty_content_retries, agent.model, agent.provider,
)
agent._buffer_status("⚠️ Model returning empty responses — " "switching to fallback provider...")
if agent._try_activate_fallback():