From 376208e234a5c3796bb5319a466321fbb4695bbe Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 1 Jun 2024 11:30:31 -0400 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=93=9D=20explain=20free=20trial=20sig?= =?UTF-8?q?n=20in?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reference/Model Providers/freetrial.md | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/docs/reference/Model Providers/freetrial.md b/docs/docs/reference/Model Providers/freetrial.md index 0d56439aa..da4f583cb 100644 --- a/docs/docs/reference/Model Providers/freetrial.md +++ b/docs/docs/reference/Model Providers/freetrial.md @@ -1,6 +1,6 @@ # Free Trial -The `"free-trial"` provider lets new users try out Continue with GPT-4, Llama3, Claude 3, and other models using a proxy server that securely makes API calls to these services. Continue should just work the first time you install the extension. +The `"free-trial"` provider lets new users try out Continue with GPT-4, Llama3, Claude 3, and other models using a proxy server that securely makes API calls to these services. Continue will just work the first time you install the extension. To prevent abuse, we will ask you to sign in with GitHub, which you can [read more about below](#sign-in). While the Continue extension is always free to use, we cannot support infinite free LLM usage for all of our users. You will eventually need to either: @@ -70,3 +70,23 @@ Groq provides lightning fast inference for open-source LLMs like Llama3, up to t ### ⏩ Other options The above were only a few examples, but Continue can be used with any LLM or provider. You can find [a full list of providers here](../../setup/select-provider.md). + +## Sign in + +Continue asks free trial users to sign in so that we can prevent abuse of our API endpoints. If you are not using the free trial, we will never ask you to sign in. + +### How do I stop Continue from asking me to sign in? + +Remove all models from the "models" array with `"provider": "free-trial"`, and we will never request sign in. + +### What information is collected? + +Continue uses your GitHub username and no other information, for the sole purpose of limiting requests. + +### What happens if I don't sign in? + +If you don't sign in, you can still use every feature of Continue, you will just need to provide your own LLM either with an API key or by running a local model. + +### How is telemetry related to sign in? + +It is not. We do not link your GitHub username to telemetry data. From 45b9b95937925cbc74eb059bd92932fcc69f5165 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 1 Jun 2024 16:49:32 -0400 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=93=9D=20explain=20lm=20studio=20remo?= =?UTF-8?q?te=20in=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/reference/Model Providers/lmstudio.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/docs/reference/Model Providers/lmstudio.md b/docs/docs/reference/Model Providers/lmstudio.md index a44a84427..52c2b2275 100644 --- a/docs/docs/reference/Model Providers/lmstudio.md +++ b/docs/docs/reference/Model Providers/lmstudio.md @@ -14,4 +14,19 @@ } ``` +### Setting up a remote instance + +To configure a remote instance of LM Studio, add the `"apiBase"` property to your model in config.json: + +```json title="~/.continue/config.json" +{ + "title": "LM Studio", + "model": "codestral", + "provider": "lmstudio", + "apiBase": "http://x.x.x.x:1234/v1/" +} +``` + +This `apiBase` will now be used instead of the default `http://localhost:1234/v1`. + [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LMStudio.ts) From b931c14ad0891cb31593ba9a1421bd7db12f6d6e Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 2 Jun 2024 19:19:56 -0400 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=93=9D=20configuration=20examples=20i?= =?UTF-8?q?n=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/setup/examples.md | 77 +++++++++++++++++++ docs/docs/setup/overview.md | 3 +- .../running-continue-without-internet.md | 2 +- docs/package-lock.json | 2 +- docs/sidebars.js | 1 + 5 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 docs/docs/setup/examples.md diff --git a/docs/docs/setup/examples.md b/docs/docs/setup/examples.md new file mode 100644 index 000000000..c21765a32 --- /dev/null +++ b/docs/docs/setup/examples.md @@ -0,0 +1,77 @@ +# Example configurations + +If you're looking for a quick way to create the perfect Continue setup, we've written a few sample `config.json`s for common situations. You can copy these and paste them into your `config.json` by clicking the gear icon in the bottom right of the Continue sidebar. + +## I just want the best experience possible + +This uses Claude 3 Opus for chat, Codestral for autocomplete, and Voyage AI for embeddings and reranking. + +### Pre-requisites + +1. Obtain a Codestral API key from [Mistral AI's La Plateforme](https://console.mistral.ai/codestral) + +2. Obtain an Anthropic API key from [here](https://console.anthropic.com/account/keys) + +3. Replace `[CODESTRAL_API_KEY]` and `[ANTHROPIC_API_KEY]` with the keys you obtained in the previous steps. + +```json title="~/.continue/config.json" +{ + "models": [ + { + "title": "Claude 3 Opus", + "provider": "anthropic", + "model": "claude-3-opus-20240229", + "apiKey": "[ANTHROPIC_API_KEY]" + } + ], + "tabAutocompleteModel": { + "title": "Codestral", + "provider": "mistral", + "model": "codestral:latest", + "apiKey": "[CODESTRAL_API_KEY]" + }, + "embeddingsProvider": { + "provider": "free-trial" + }, + "reranker": { + "name": "free-trial" + } +} +``` + +## I need to be entirely local + offline + +This uses Ollama for chat, autocomplete, and embeddings, making sure that no code ever leaves your machine. + +### Pre-requisites + +1. [Download Ollama](https://ollama.ai) + +2. Pull the necessary models + + i. For chat: `ollama run llama3:8b` + + ii. For autocomplete: `ollama run starcoder2:3b` + + iii. For embeddings: `ollama run nomic-embed-text` + +```json title="~/.continue/config.json" +{ + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "AUTODETECT" + } + ], + "tabAutocompleteModel": { + "title": "Starcoder 2 3b", + "provider": "ollama", + "model": "starcoder2:3b" + }, + "embeddingsProvider": { + "provider": "ollama", + "model": "nomic-embed-text" + } +} +``` diff --git a/docs/docs/setup/overview.md b/docs/docs/setup/overview.md index d28a91c7d..1f038e7fa 100644 --- a/docs/docs/setup/overview.md +++ b/docs/docs/setup/overview.md @@ -10,4 +10,5 @@ Learn more: - [Select providers](select-provider.md) - [Select models](select-model.md) -- [Configuration](configuration.md) \ No newline at end of file +- [Configuration](configuration.md) +- [Example `config.json`s](examples.md) diff --git a/docs/docs/walkthroughs/running-continue-without-internet.md b/docs/docs/walkthroughs/running-continue-without-internet.md index 4e7f68c85..23d020630 100644 --- a/docs/docs/walkthroughs/running-continue-without-internet.md +++ b/docs/docs/walkthroughs/running-continue-without-internet.md @@ -9,6 +9,6 @@ keywords: [no internet, air-gapped, local model] Continue can be run even on an air-gapped computer if you use a local model. Only a few adjustments are required for this to work. 1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extension/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix). -2. Open `~/.continue/config.json` and set `"allowAnonymousTelemetry": false`. This will stop Continue from attempting requests to PostHog. +2. Open `~/.continue/config.json` and set `"allowAnonymousTelemetry": false`. This will stop Continue from attempting requests to PostHog for [anonymous telemetry](../telemetry.md). 3. Also in `config.json`, set the default model to a local model. You can read about the available options [here](../setup/select-model.md). 4. Restart VS Code to ensure that the changes to `config.json` take effect. diff --git a/docs/package-lock.json b/docs/package-lock.json index beb35bc1e..c1cba2aef 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -22,7 +22,7 @@ "@docusaurus/module-type-aliases": "^3.2.1" }, "engines": { - "node": ">=16.14" + "node": ">=20.11.0" } }, "node_modules/@algolia/autocomplete-core": { diff --git a/docs/sidebars.js b/docs/sidebars.js index 39a1b79bc..4b5cd0f6b 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -27,6 +27,7 @@ const sidebars = { "setup/select-provider", "setup/select-model", "setup/configuration", + "setup/examples", ], }, { From 0d5507865f650e4dcade51b41a38d7a6ae5166cc Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 2 Jun 2024 19:52:55 -0400 Subject: [PATCH 4/4] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20fix=20docs=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/walkthroughs/prompt-files.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/walkthroughs/prompt-files.md b/docs/docs/walkthroughs/prompt-files.md index 9811dfd42..8def96d06 100644 --- a/docs/docs/walkthroughs/prompt-files.md +++ b/docs/docs/walkthroughs/prompt-files.md @@ -6,7 +6,7 @@ Prompt (`.prompt`) files are an easy way to build and share LLM prompts with oth Below is a quick example of setting up a prompt file to write unit tests:s -1. Create a folder called `.prompts` at the top level of your repository +1. Create a folder called `.prompts` at the top level of your workspace 2. Add a file called `test.prompt` to this folder 3. Write the following contents to `test.prompt` and save