FIX Redundant code block in run_agent_with_retry

This commit is contained in:
Jose Leon 2025-03-11 02:53:05 +00:00
parent 9f3e6b9ae8
commit 0ae6bea9d5
1 changed files with 13 additions and 14 deletions

View File

@ -697,9 +697,8 @@ def run_agent_with_retry(
return f"Agent has crashed: {crash_message}"
try:
# Ensure messages have thinking blocks if needed before each run
# Check if we need to ensure thinking blocks
config = get_config_repository().get_all()
if is_anthropic_claude(config):
provider = config.get("provider", "")
model_name = config.get("model", "")