I have several agents and creews in combination of crewai flows. below is how I defined my forecasting agent and all other agents are defined identical to this one with diffrent instructions and tools of course but I get an openai apy key whenever I hit the forecasting agent and not the other ones. why?
forecasting_agent = Agent(
role=“Forecasting Data Analyst”,
goal=(
"Perform time series forecasting on the data using the TimeSeriesForecastTool. "
“You must parse the user’s request to figure out the category, the horizon (in weeks), and target (Revenue or Quantity_Sold).”
),
backstory=“Expert in time series forecasting.”,
tools=[TimeSeriesForecastTool()],
llm=LLM(model=“azure/gpt-4o”),
)
the error:
pydantic_core._pydantic_core.ValidationError: 1 validation error for Crew
Value error, Please provide an OpenAI API key. You can get one at https://platform.openai.com/account/api-keys [type=value_error, input_value={‘chat_llm’: <crewai.llm…': True, ‘memory’: True}, input_type=dict]
For further information visit Redirecting...