Merge branch 'main' into preview
This commit is contained in:
commit
9955039daf
8 changed files with 119 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
77
docs/docs/setup/examples.md
Normal file
77
docs/docs/setup/examples.md
Normal file
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -10,4 +10,5 @@ Learn more:
|
|||
|
||||
- [Select providers](select-provider.md)
|
||||
- [Select models](select-model.md)
|
||||
- [Configuration](configuration.md)
|
||||
- [Configuration](configuration.md)
|
||||
- [Example `config.json`s](examples.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
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
2
docs/package-lock.json
generated
2
docs/package-lock.json
generated
|
|
@ -22,7 +22,7 @@
|
|||
"@docusaurus/module-type-aliases": "^3.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.14"
|
||||
"node": ">=20.11.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@algolia/autocomplete-core": {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ const sidebars = {
|
|||
"setup/select-provider",
|
||||
"setup/select-model",
|
||||
"setup/configuration",
|
||||
"setup/examples",
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue