Skip to content

Commit 3098255

Browse files
fix mypy issue with missing model
1 parent cb4ff71 commit 3098255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llm-service/app/services/query/agents/crewai_querier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def assemble_crew(
112112
crew_events_queue: Queue[CrewEvent],
113113
mcp_tools: Optional[list[BaseTool]] = None,
114114
) -> Crew:
115-
crewai_llm = get_crewai_llm_object_direct(llm, llm.model)
115+
crewai_llm = get_crewai_llm_object_direct(llm, getattr(llm, "model", ""))
116116
# Gather all the tools needed for the crew
117117

118118
# Create a date tool to get the current date and time

0 commit comments

Comments
 (0)