tweak: Update docs and messages about ollama (#914)

* Update docs and messages about ollama

* remove `ollama serve`

* remove `ollama serve`
This commit is contained in:
yuiseki 2024-03-03 02:41:50 +09:00 • committed by GitHub
parent b50a55c6ed
commit 8bc6280c10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View file

@ -32,7 +32,7 @@ If you haven't already installed Continue, you can do that [here](https://market
## Ollama
1. Download Ollama [here](https://ollama.ai/) (it should walk you through the rest of these steps)
2. Open a terminal and run `ollama run codellama`
2. Open a terminal and run `ollama pull codellama`
3. Change your Continue config file like this:
```json title="~/.continue/config.json"
@ -41,7 +41,7 @@ If you haven't already installed Continue, you can do that [here](https://market
{
"title": "Code Llama",
"provider": "ollama",
"model": "codellama-7b"
"model": "codellama:7b"
}
]
}

View file

@ -7,7 +7,7 @@ Continue now provides support for tab autocomplete in [the VS Code extension](ht
We recommend setting up tab-autocomplete with a local Ollama instance. To do this, first download the latest version of Ollama from [here](https://ollama.ai). Then, run the following command to download our recommended model:
```bash
ollama run starcoder:3b
ollama pull starcoder:3b
```
Once it has been downloaded, you should begin to see completions in VS Code.
@ -78,7 +78,7 @@ Follow these steps to ensure that everything is set up correctly:
1. Make sure you have the pre-release version of the extension installed.
2. Make sure you have the "Enable Tab Autocomplete" setting checked (can toggle by clicking the "Continue" button in the status bar).
3. Make sure you have downloaded Ollama.
4. Run `ollama run starcoder:3b` to verify that the model is downloaded.
4. Run `ollama pull starcoder:3b` to verify that the model is downloaded.
5. Make sure that any other completion providers are disabled (e.g. Copilot), as they may interfere.
6. Make sure that you aren't also using another Ollama model for chat. This will cause Ollama to constantly load and unload the models from memory, resulting in slow responses (or none at all) for both.
7. Check the output of the logs to find any potential errors (cmd/ctrl+shift+p -> "Toggle Developer Tools" -> "Console" tab).

View file

@ -159,7 +159,7 @@ function setupLlm(llm: ILLM): ILLM {
if (resp.status === 404 && !resp.url.includes("/v1")) {
if (text.includes("try pulling it first")) {
const model = JSON.parse(text).error.split(" ")[1].slice(1, -1);
text = `The model "${model}" was not found. To download it, run \`ollama run ${model}\`.`;
text = `The model "${model}" was not found. To download it, run \`ollama pull ${model}\`.`;
} else if (text.includes("/api/chat")) {
text =
"The /api/chat endpoint was not found. This may mean that you are using an older version of Ollama that does not support /api/chat. Upgrading to the latest version will solve the issue.";
@ -239,7 +239,7 @@ export class TabAutocompleteModel {
if (!TabAutocompleteModel.shownDeepseekWarning) {
vscode.window
.showWarningMessage(
`Your local Ollama instance doesn't yet have DeepSeek Coder. To download this model, run \`ollama run deepseek-coder:1.3b-base\` (recommended). If you'd like to use a custom model for tab autocomplete, learn more in the docs`,
`Your local Ollama instance doesn't yet have DeepSeek Coder. To download this model, run \`ollama pull deepseek-coder:1.3b-base\` (recommended). If you'd like to use a custom model for tab autocomplete, learn more in the docs`,
"Documentation",
"Copy Command"
)
@ -252,7 +252,7 @@ export class TabAutocompleteModel {
);
} else if (value === "Copy Command") {
vscode.env.clipboard.writeText(
"ollama run deepseek-coder:1.3b-base"
"ollama pull deepseek-coder:1.3b-base"
);
}
});