Skip to content

Commit fd42a2c

Browse files
committed
autodetect method 2
1 parent 6c1a346 commit fd42a2c

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

docs/guides/ollama-guide.mdx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -99,29 +99,7 @@ ollama pull deepseek-r1:32b # Required for ollama/deepseek-r1-32b hub block
9999
If the model isn't installed, Ollama will return: `404 model "deepseek-r1:32b" not found, try pulling it first`
100100
</Warning>
101101

102-
### Method 2: Manual Configuration
103-
104-
For custom configurations or models not on the hub:
105-
106-
```yaml
107-
models:
108-
- name: DeepSeek R1 32B
109-
provider: ollama
110-
model: deepseek-r1:32b # Must match exactly what `ollama list` shows
111-
apiBase: http://localhost:11434
112-
roles:
113-
- chat
114-
- edit
115-
capabilities: # Add if not auto-detected
116-
- tool_use
117-
- name: Qwen2.5-Coder 1.5B
118-
provider: ollama
119-
model: qwen2.5-coder:1.5b
120-
roles:
121-
- autocomplete
122-
```
123-
124-
### Method 3: Using Autodetect
102+
### Method 2: Using Autodetect
125103

126104
Continue can automatically detect available Ollama models. You can configure this in your YAML:
127105

@@ -149,6 +127,28 @@ The Autodetect feature scans your local Ollama installation and lists all availa
149127

150128
You can update `apiBase` with the IP address of a remote machine serving Ollama.
151129

130+
### Method 3: Manual Configuration
131+
132+
For custom configurations or models not on the hub:
133+
134+
```yaml
135+
models:
136+
- name: DeepSeek R1 32B
137+
provider: ollama
138+
model: deepseek-r1:32b # Must match exactly what `ollama list` shows
139+
apiBase: http://localhost:11434
140+
roles:
141+
- chat
142+
- edit
143+
capabilities: # Add if not auto-detected
144+
- tool_use
145+
- name: Qwen2.5-Coder 1.5B
146+
provider: ollama
147+
model: qwen2.5-coder:1.5b
148+
roles:
149+
- autocomplete
150+
```
151+
152152
### Model Capabilities and Tool Support
153153
154154
Some Ollama models support tools (function calling) which is required for Agent mode. However, not all models that claim tool support work correctly:

0 commit comments

Comments
 (0)