From 00a6e10fcdfe0f0966da4f09dee97fe085df8fd7 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 20:35:20 +0000 Subject: [PATCH] Fix test implementation to prevent multiple LLM calls Co-Authored-By: brandon@crewai.com --- tests/agent_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/agent_test.py b/tests/agent_test.py index f17a573e6..8a54628c0 100644 --- a/tests/agent_test.py +++ b/tests/agent_test.py @@ -1320,6 +1320,7 @@ def test_litellm_auth_error_handling(): backstory="test backstory", llm=LLM(model="gpt-4"), max_retry_limit=0, # Disable retries for authentication errors + max_iter=1, # Limit to one iteration to prevent multiple calls ) # Create a task