From 39b268d8cfc3e2b8fe14691af645fc13af5a4395 Mon Sep 17 00:00:00 2001 From: Ben Force Date: Mon, 4 Mar 2024 14:36:51 -0600 Subject: [PATCH] chore: cleanup accidental changes --- docs/docs/walkthroughs/codellama.md | 4 ++-- docs/docs/walkthroughs/tab-autocomplete.md | 4 ++-- extensions/vscode/src/loadConfig.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/docs/walkthroughs/codellama.md b/docs/docs/walkthroughs/codellama.md index 89177abf9..961788cc6 100644 --- a/docs/docs/walkthroughs/codellama.md +++ b/docs/docs/walkthroughs/codellama.md @@ -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 pull codellama` +2. Open a terminal and run `ollama run 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" } ] } diff --git a/docs/docs/walkthroughs/tab-autocomplete.md b/docs/docs/walkthroughs/tab-autocomplete.md index 3fca6d906..aa1a024ab 100644 --- a/docs/docs/walkthroughs/tab-autocomplete.md +++ b/docs/docs/walkthroughs/tab-autocomplete.md @@ -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 pull starcoder:3b +ollama run 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 pull starcoder:3b` to verify that the model is downloaded. +4. Run `ollama run 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). diff --git a/extensions/vscode/src/loadConfig.ts b/extensions/vscode/src/loadConfig.ts index 267c8a8be..4f2ddc502 100644 --- a/extensions/vscode/src/loadConfig.ts +++ b/extensions/vscode/src/loadConfig.ts @@ -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 pull ${model}\`.`; + text = `The model "${model}" was not found. To download it, run \`ollama run ${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 pull 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 run 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 pull deepseek-coder:1.3b-base" + "ollama run deepseek-coder:1.3b-base" ); } });