hierarchical_process_llm_configTier 1 · 70% confidence

ai-agents-hierarchical-process-hierarchical-process-fails-with-openai-authenticat-0b2af587

agent: ai_agents

When does this happen?

IF Hierarchical process fails with OpenAI authentication error despite using a local Ollama LLM.

How others solved it

THEN Explicitly set the manager_llm to your non-OpenAI model and set manager_agent=None in the Crew configuration. This prevents the manager from defaulting to OpenAI and resolves the authentication error.

manager = LLM(model='ollama/phi4', base_url='http://localhost:11434')
crew = Crew(
    agents=[...],
    tasks=[...],
    process=Process.hierarchical,
    manager_llm=manager,
    manager_agent=None,
    verbose=True
)

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics