From cf74dc9b486e05bfd1cca7ef946a3638e80e2770 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 23 Nov 2024 15:30:28 -0800 Subject: [PATCH] copy --- aider/website/docs/llms/ollama.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/aider/website/docs/llms/ollama.md b/aider/website/docs/llms/ollama.md index 5c4885ed7..764fbe350 100644 --- a/aider/website/docs/llms/ollama.md +++ b/aider/website/docs/llms/ollama.md @@ -20,14 +20,26 @@ python -m pip install -U aider-chat export OLLAMA_API_BASE=http://127.0.0.1:11434 # Mac/Linux setx OLLAMA_API_BASE http://127.0.0.1:11434 # Windows, restart shell after setx -aider --model ollama/ +aider --model ollama_chat/ ``` +{: .note } +Using `ollama_chat/` is recommended over `ollama/`. + See the [model warnings](warnings.html) section for information on warnings which will occur when working with models that aider is not familiar with. +## API Key + +If you are using an ollama that requires an API key you can set `OLLAMA_API_KEY`: + +``` +export OLLAMA_API_KEY= # Mac/Linux +setx OLLAMA_API_KEY # Windows, restart shell after setx +``` + ## Setting the context window size [Ollama uses a 2k context window by default](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-specify-the-context-window-size),