Code
from langchain_openai import ChatOpenAI
import streamlit as st
llm = ChatOpenAI(
api_key=st.secrets["OPENAI_API_KEY"],
model="gpt-4o-mini",
)
I pass the LLM to the manager_llm
parameter of the Crew as follows:
self.crew = Crew(
agents=[
self.agent_1,
self.agent_2,
self.agent_3,
],
tasks=[
self.task_1,
self.task_2,
self.task_3,
],
manager_llm=llm,
process=Process.sequential,
verbose=True,
)
Problem
When I use AgentOps, I see the gpt-4o
being used instead of the gpt-4o-mini
. Do I need to pass the gpt-4o-mini
directly to all agents and/or tasks?