Ollama

Detailed information on the Ollama conversation component

Component format

A Dapr conversation.yaml component file has the following structure:

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: ollama
spec:
  type: conversation.ollama
  metadata:
  - name: model
    value: llama3.2:latest
  - name: cacheTTL
    value: 10m

Spec metadata fields

Field Required Details Example
model N The Ollama LLM to use. Defaults to llama3.2:latest. phi4:latest
cacheTTL N A time-to-live value for a prompt cache to expire. Uses Golang duration format. 10m

Last modified April 15, 2025: Conversation/ollama/1.16 (#4612) (76032b5d)