fix: resolve CI failures for fallback LLM implementation

- Fix type checker error by adding None check before raising last_exception
- Fix ContextWindowExceededError constructor with correct signature (message, model, llm_provider)
- Update auth error test assertion to match new print message format

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-06-19 06:13:44 +00:00
parent 06e2683fd8
commit bfe3931dcd
3 changed files with 8 additions and 3 deletions

View File

@@ -1984,7 +1984,7 @@ def test_crew_agent_executor_litellm_auth_error():
)
# Verify error handling messages
error_message = f"Error during LLM call: {str(mock_llm_call.side_effect)}"
error_message = f"Primary LLM failed: {str(mock_llm_call.side_effect)}"
mock_printer.assert_any_call(
content=error_message,
color="red",