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
The following models look like reasonable choices, but were found to **not** work properly with Kilo Code in its default configuration:
105
102
106
-
| Model name | Fail reason |
107
-
| --- | --- |
108
-
| deepseek-r1:7b | fails to use tools properly |
103
+
| Model name | Fail reason|
104
+
| --------------|------------------------------ |
105
+
| deepseek-r1:7b | fails to use tools properly |
109
106
| deepseek-r1:8b | gets stuck in a reasoning loop |
110
107
108
+
## Preventing prompt truncation
109
+
110
+
By default Ollama truncates prompts to a very short length.
111
+
If you run into this problem, please see this FAQ item to resolve it:
112
+
[How can I specify the context window size?](https://github.com/ollama/ollama/blob/4383a3ab7a075eff78b31f7dc84c747e2fcd22b8/docs/faq.md#how-can-i-specify-the-context-window-size)
113
+
114
+
If you decide to use the `OLLAMA_CONTEXT_LENGTH` environment variable, it needs to be visible to both the IDE and the Ollama server.
111
115
112
116
## Setting up Ollama
113
117
114
-
1.**Download and Install Ollama:**Download the Ollama installer for your operating system from the [Ollama website](https://ollama.com/). Follow the installation instructions and make sure Ollama is running:
118
+
1.**Download and Install Ollama:** Download the Ollama installer for your operating system from the [Ollama website](https://ollama.com/). Follow the installation instructions and make sure Ollama is running:
115
119
116
120
```bash
117
121
ollama serve
@@ -129,13 +133,12 @@ The following models look like reasonable choices, but were found to **not** wor
129
133
ollama pull devstral:24b
130
134
```
131
135
132
-
4. **Configure Kilo Code:**
133
-
* Open the Kilo Code sidebar (<img src="/docs/img/kilo-v1.svg" width="12" /> icon).
134
-
* Click the settings gear icon (<Codicon name="gear" />).
135
-
* Select "ollama" as the API Provider.
136
-
* Enter the Model name.
137
-
* (Optional) You can configure the base URL if you're running Ollama on a different machine. The default is `http://localhost:11434`.
138
-
136
+
3. **Configure Kilo Code:**
137
+
- Open the Kilo Code sidebar (<img src="/docs/img/kilo-v1.svg" width="12" /> icon).
138
+
- Click the settings gear icon (<Codicon name="gear" />).
139
+
- Select "ollama" as the API Provider.
140
+
- Enter the Model name.
141
+
- (Optional) You can configure the base URL if you're running Ollama on a different machine. The default is `http://localhost:11434`.
`Input message is too long for the selected model. Estimated tokens: ${estimatedTokenCount}, Max tokens: ${modelInfo.maxTokens}`,
211
+
`Input message is too long for the selected model. Estimated tokens: ${estimatedTokenCount}, Max tokens: ${modelInfo.maxTokens}. To increase the context window size, see: http://localhost:3000/docs/providers/ollama#preventing-prompt-truncation`,
0 commit comments