From dde85d235768516dde8bdcf9c284765d6ead2a2e Mon Sep 17 00:00:00 2001 From: lucafrance <62500301+lucafrance@users.noreply.github.com> Date: Sat, 2 Aug 2025 09:29:01 +0200 Subject: [PATCH] Update configuration in ollama-guide.mdx The example configuration is a deprecated json. Update with a valid example to include in `config.yaml`. --- docs/guides/ollama-guide.mdx | 39 ++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/docs/guides/ollama-guide.mdx b/docs/guides/ollama-guide.mdx index 768160137..5ded49934 100644 --- a/docs/guides/ollama-guide.mdx +++ b/docs/guides/ollama-guide.mdx @@ -35,9 +35,9 @@ After installing Ollama, download the models you want to use. Here are some popu ``` # Popular models for development -ollama pull llama2 -ollama pull codellama ollama pull mistral +ollama pull qwen2.5-coder:1.5b-base +ollama pull nomic-embed-text:latest ``` ## Configuration @@ -46,19 +46,32 @@ Configure Continue to work with your local Ollama instance: ### Continue Configuration -```json -{ - "models": [ - { - "title": "Ollama", - "provider": "ollama", - "model": "llama2", - "apiBase": "http://localhost:11434" - } - ] -} +```yaml +models: + - name: mistral + provider: ollama + apiBase: http://localhost:11434 + model: mistral + roles: + - chat + - edit + - apply + - name: Qwen2.5-Coder 1.5B + provider: ollama + apiBase: http://localhost:11434 + model: qwen2.5-coder:1.5b-base + roles: + - autocomplete + - name: Nomic Embed + provider: ollama + apiBase: http://localhost:11434 + model: nomic-embed-text:latest + roles: + - embed ``` +You can update `apiBase` with the IP address of a remote machine serving Ollama. + ### Advanced Settings For optimal performance, consider these advanced configuration options: