Fix CI issues: Fix import sorting and type error

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-04-19 23:10:40 +00:00
parent 7ff66aaf71
commit 5ebd3ce269
2 changed files with 3 additions and 2 deletions

View File

@@ -43,7 +43,8 @@ class CrewPlanner:
extra_headers=getattr(agent_llm, "extra_headers", None)
)
else:
self.planning_agent_llm = "gpt-4o-mini"
from crewai.llm import LLM
self.planning_agent_llm = LLM(model="gpt-4o-mini")
else:
self.planning_agent_llm = planning_agent_llm

View File

@@ -1,6 +1,6 @@
from unittest.mock import MagicMock
from crewai import Task
from crewai.utilities.planning_handler import CrewPlanner
from unittest.mock import MagicMock
def test_planning_llm_inherits_auth_params():
"""Test that planning LLM inherits authentication parameters from agent LLM."""