# Litellm issue when used with Ollama

**URL:** <https://community.crewai.com/t/litellm-issue-when-used-with-ollama/4348>\
**Category:** CrewAI Community Support\
**Created:** [March 3, 2025, 5:39pm UTC](https://community.crewai.com/t/litellm-issue-when-used-with-ollama/4348 "2025-03-03T17:39:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ren\_Kaizel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/ren_kaizel/32/2609_2.png) [@Ren\_Kaizel](https://community.crewai.com/u/Ren_Kaizel)\
**Post date:** [March 3, 2025, 5:39pm UTC](https://community.crewai.com/t/litellm-issue-when-used-with-ollama/4348/1 "2025-03-03T17:39:18Z")

</div>

This crew is a simple chat and response crew. when I am using ollama to run a simple small llm i keep getting this information from litellm that says nothing. The main.py is just a loop: take user input and give response  
Screenshot and crew.py code given below:

```
from crewai import Agent, Crew, Process, Task, LLM
from crewai.project import CrewBase, agent, crew, task

from dotenv import load_dotenv

load_dotenv()

@CrewBase
class Try1():
    
	llm = LLM(
		model= 'ollama/dolphin-phi',
		base_url= 'http://localhost:11434',
		)
	"""Try1 crew"""
	agents_config = 'config/agents.yaml'
	tasks_config = 'config/tasks.yaml'

	@agent
	def chat_agent(self) -> Agent:
		return Agent(
			config=self.agents_config['chat_agent'],
			llm = self.llm
		)

# ---------------------------------------------

	@task
	def chat_task(self) -> Task:
		return Task(
			config=self.tasks_config['chat_task'],
		)

	@crew
	def crew(self) -> Crew:

		return Crew(
			agents=self.agents, # Automatically created by the @agent decorator
			tasks=self.tasks, # Automatically created by the @task decorator
			process=Process.sequential,
			memory = True,
			verbose=True,
			# process=Process.hierarchical, # In case you wanna use that instead https://docs.crewai.com/how-to/Hierarchical/
		)

```

 ![Screenshot 2025-03-03 224347](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/2X/6/6a3c87353dec762a1b40596618eceadab6c42dd9.png)

---

<div class="post-metadata">

**Author:** ![zinyando](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/zinyando/32/4435_2.png) [@zinyando](https://community.crewai.com/u/zinyando)\
**Post date:** [March 3, 2025, 5:47pm UTC](https://community.crewai.com/t/litellm-issue-when-used-with-ollama/4348/2 "2025-03-03T17:47:25Z")

</div>

The model `dolphin-phi` isn’t supported by LiteLLM. Take a look at the supported Ollama models here [Ollama | liteLLM](https://docs.litellm.ai/docs/providers/ollama#ollama-models)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/1X/ecda97e72f77c7100e0a761444b1c991925cc789.png) [@system](https://community.crewai.com/u/system)\
**Post date:** [March 4, 2025, 5:48pm UTC](https://community.crewai.com/t/litellm-issue-when-used-with-ollama/4348/3 "2025-03-04T17:48:20Z")

</div>

Closed on March 4, 2025, 5:48pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
