autodetect method 2
This commit is contained in:
parent
6c1a3467c9
commit
fd42a2cb0a
1 changed files with 23 additions and 23 deletions
|
|
@ -99,29 +99,7 @@ ollama pull deepseek-r1:32b # Required for ollama/deepseek-r1-32b hub block
|
|||
If the model isn't installed, Ollama will return: `404 model "deepseek-r1:32b" not found, try pulling it first`
|
||||
</Warning>
|
||||
|
||||
### Method 2: Manual Configuration
|
||||
|
||||
For custom configurations or models not on the hub:
|
||||
|
||||
```yaml
|
||||
models:
|
||||
- name: DeepSeek R1 32B
|
||||
provider: ollama
|
||||
model: deepseek-r1:32b # Must match exactly what `ollama list` shows
|
||||
apiBase: http://localhost:11434
|
||||
roles:
|
||||
- chat
|
||||
- edit
|
||||
capabilities: # Add if not auto-detected
|
||||
- tool_use
|
||||
- name: Qwen2.5-Coder 1.5B
|
||||
provider: ollama
|
||||
model: qwen2.5-coder:1.5b
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
|
||||
### Method 3: Using Autodetect
|
||||
### Method 2: Using Autodetect
|
||||
|
||||
Continue can automatically detect available Ollama models. You can configure this in your YAML:
|
||||
|
||||
|
|
@ -149,6 +127,28 @@ The Autodetect feature scans your local Ollama installation and lists all availa
|
|||
|
||||
You can update `apiBase` with the IP address of a remote machine serving Ollama.
|
||||
|
||||
### Method 3: Manual Configuration
|
||||
|
||||
For custom configurations or models not on the hub:
|
||||
|
||||
```yaml
|
||||
models:
|
||||
- name: DeepSeek R1 32B
|
||||
provider: ollama
|
||||
model: deepseek-r1:32b # Must match exactly what `ollama list` shows
|
||||
apiBase: http://localhost:11434
|
||||
roles:
|
||||
- chat
|
||||
- edit
|
||||
capabilities: # Add if not auto-detected
|
||||
- tool_use
|
||||
- name: Qwen2.5-Coder 1.5B
|
||||
provider: ollama
|
||||
model: qwen2.5-coder:1.5b
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
|
||||
### Model Capabilities and Tool Support
|
||||
|
||||
Some Ollama models support tools (function calling) which is required for Agent mode. However, not all models that claim tool support work correctly:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue