mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-23 15:18:14 +00:00
Fix CI issues: Fix import sorting and type error
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -43,7 +43,8 @@ class CrewPlanner:
|
|||||||
extra_headers=getattr(agent_llm, "extra_headers", None)
|
extra_headers=getattr(agent_llm, "extra_headers", None)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.planning_agent_llm = "gpt-4o-mini"
|
from crewai.llm import LLM
|
||||||
|
self.planning_agent_llm = LLM(model="gpt-4o-mini")
|
||||||
else:
|
else:
|
||||||
self.planning_agent_llm = planning_agent_llm
|
self.planning_agent_llm = planning_agent_llm
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from unittest.mock import MagicMock
|
|
||||||
from crewai import Task
|
from crewai import Task
|
||||||
from crewai.utilities.planning_handler import CrewPlanner
|
from crewai.utilities.planning_handler import CrewPlanner
|
||||||
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
def test_planning_llm_inherits_auth_params():
|
def test_planning_llm_inherits_auth_params():
|
||||||
"""Test that planning LLM inherits authentication parameters from agent LLM."""
|
"""Test that planning LLM inherits authentication parameters from agent LLM."""
|
||||||
|
|||||||
Reference in New Issue
Block a user