mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
Fix test implementation to prevent multiple LLM calls
Co-Authored-By: brandon@crewai.com <brandon@crewai.com>
This commit is contained in:
@@ -1320,6 +1320,7 @@ def test_litellm_auth_error_handling():
|
|||||||
backstory="test backstory",
|
backstory="test backstory",
|
||||||
llm=LLM(model="gpt-4"),
|
llm=LLM(model="gpt-4"),
|
||||||
max_retry_limit=0, # Disable retries for authentication errors
|
max_retry_limit=0, # Disable retries for authentication errors
|
||||||
|
max_iter=1, # Limit to one iteration to prevent multiple calls
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create a task
|
# Create a task
|
||||||
|
|||||||
Reference in New Issue
Block a user