You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Detailed information on the GoogleAI conversation component
6
+
---
7
+
8
+
## Component format
9
+
10
+
A Dapr `conversation.yaml` component file has the following structure:
11
+
12
+
```yaml
13
+
apiVersion: dapr.io/v1alpha1
14
+
kind: Component
15
+
metadata:
16
+
name: googleai
17
+
spec:
18
+
type: conversation.googleai
19
+
metadata:
20
+
- name: key
21
+
value: "mykey"
22
+
- name: model
23
+
value: '${{DAPR_CONVERSATION_GOOGLEAI_MODEL}}'
24
+
- name: cacheTTL
25
+
value: 10m
26
+
```
27
+
28
+
{{% alert title="Warning" color="warning" %}}
29
+
The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets, as described [here]({{< ref component-secrets.md >}}).
| `model` | N | The GoogleAI LLM to use. Defaults to `gemini-1.5-flash` (configurable via `DAPR_CONVERSATION_GOOGLEAI_MODEL` environment variable). | `${{DAPR_CONVERSATION_GOOGLEAI_MODEL}}` |
38
+
| `cacheTTL` | N | A time-to-live value for a prompt cache to expire. Uses Golang duration format. | `10m` |
39
+
40
+
## Related links
41
+
42
+
- [Conversation API overview]({{< ref conversation-overview.md >}})
description: Detailed information on the Ollama conversation component
6
+
---
7
+
8
+
## Component format
9
+
10
+
A Dapr `conversation.yaml` component file has the following structure:
11
+
12
+
```yaml
13
+
apiVersion: dapr.io/v1alpha1
14
+
kind: Component
15
+
metadata:
16
+
name: ollama
17
+
spec:
18
+
type: conversation.ollama
19
+
metadata:
20
+
- name: model
21
+
value: '${{DAPR_CONVERSATION_OLLAMA_MODEL}}'
22
+
- name: cacheTTL
23
+
value: 10m
24
+
```
25
+
26
+
{{% alert title="Warning" color="warning" %}}
27
+
The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets, as described [here]({{< ref component-secrets.md >}}).
| `model` | N | The Ollama LLM to use. Defaults to `llama3.2:latest` (configurable via `DAPR_CONVERSATION_OLLAMA_MODEL` environment variable). | `${{DAPR_CONVERSATION_OLLAMA_MODEL}}` |
35
+
| `cacheTTL` | N | A time-to-live value for a prompt cache to expire. Uses Golang duration format. | `10m` |
36
+
37
+
## Related links
38
+
39
+
- [Conversation API overview]({{< ref conversation-overview.md >}})
0 commit comments