Merge branch 'main' into preview

This commit is contained in:
Nate Sesti 2024-05-08 11:18:50 -07:00
commit 989fcd5dc9
26 changed files with 148 additions and 406 deletions

View file

@ -14,15 +14,28 @@ Once it has been downloaded, you should begin to see completions in VS Code.
## Setting up a custom model
All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote Ollama instance you would edit your `config.json` like this (note that it is not inside the models array):
All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote vLLM instance you would edit your `config.json` like this (note that it is not inside the models array), filling in the correct model name and vLLM endpoint:
```json title=~/.continue/config.json
{
"tabAutocompleteModel": {
"title": "Tab Autocomplete Model",
"provider": "openai",
"model": "<MODEL_NAME>",
"apiBase": "<VLLM_ENDPOINT_URL>"
},
...
}
```
As another example, say you want to use a different model, `deepseek-coder:6.7b-base`, with Ollama:
```json title=~/.continue/config.json
{
"tabAutocompleteModel": {
"title": "Tab Autocomplete Model",
"provider": "ollama",
"model": "starcoder:3b",
"apiBase": "https://<my endpoint>"
"model": "deepseek-coder:6.7b-base"
},
...
}

View file

@ -176,7 +176,7 @@ export async function getTabCompletion(
) {
shownGptClaudeWarning = true;
throw new Error(
`Warning: ${llm.model} is not trained for tab-autocomplete, and may result in low-quality suggestions. See the docs for our recommended models: https://docs.continue.dev/setup/select-model#autocomplete`,
`Warning: ${llm.model} is not trained for tab-autocomplete, and will result in low-quality suggestions. See the docs to learn more about why: https://docs.continue.dev/walkthroughs/tab-autocomplete#i-want-better-completions-should-i-use-gpt-4`,
);
}

View file

@ -14,7 +14,7 @@ You likely want to use a model that is 30B+ parameters for chat.
### Open-source LLMs
*We currently reccommend the following open-source models:*
*We currently recommend the following open-source models:*
#### Llama 3 from Meta
@ -53,7 +53,7 @@ You likely want to use a model that is 1-15B parameters for autocomplete.
### Open-source LLMs
*We currently reccommend the following open-source models:*
*We currently recommend the following open-source models:*
#### DeepSeek Coder from DeepSeek
@ -84,4 +84,4 @@ You likely want to use an embeddings model that is made to vectorize code.
*You can also use other embeddings models by adding them to your `config.json`.*
**In addition to selecting models, you will need to figure out [what providers to use](./select-provider.md).**
**In addition to selecting models, you will need to figure out [what providers to use](./select-provider.md).**

View file

@ -83,9 +83,16 @@ const config = {
label: "Docs",
},
{
href: "https://github.com/continuedev/continue",
to: "https://github.com/continuedev/continue",
label: "GitHub",
position: "right",
className: 'github-navbar',
},
{
to: "https://discord.gg/vapESyrFmJ",
label: "Discord",
position: "right",
className: 'discord-navbar',
},
],
},
@ -93,16 +100,16 @@ const config = {
style: "dark",
links: [
{
title: "Docs",
title: "Extensions",
items: [
{
label: "Introduction",
to: "/intro",
},
{
label: "VS Code",
to: "https://marketplace.visualstudio.com/items?itemName=Continue.continue",
},
{
label: "JetBrains",
to: "https://plugins.jetbrains.com/plugin/22707-continue-extension",
},
],
},
{
@ -110,24 +117,24 @@ const config = {
items: [
{
label: "Discord",
href: "https://discord.gg/vapESyrFmJ",
to: "https://discord.gg/vapESyrFmJ",
},
{
label: "Twitter",
href: "https://twitter.com/continuedev",
label: "GitHub",
to: "https://github.com/continuedev/continue",
},
],
},
{
title: "More",
title: "Follow Us",
items: [
{
label: "GitHub",
href: "https://github.com/continuedev/continue",
label: "Twitter",
to: "https://twitter.com/continuedev",
},
{
label: "Website",
href: "https://continue.dev",
label: "LinkedIn",
to: "https://linkedin.com/company/continuedev",
},
],
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 7.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 MiB

After

Width:  |  Height:  |  Size: 5.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 MiB

After

Width:  |  Height:  |  Size: 8.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 MiB

After

Width:  |  Height:  |  Size: 6.2 MiB

View file

@ -1,11 +0,0 @@
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_703_2)">
<rect width="256" height="256" fill="black"/>
<path d="M0 0H256V256H0V0Z" fill="#12887A"/>
</g>
<defs>
<clipPath id="clip0_703_2">
<rect width="256" height="256" fill="white"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 338 B

View file

@ -1,11 +0,0 @@
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_710_4)">
<rect width="256" height="256" fill="black"/>
<path d="M0 0H256V256H0V0Z" fill="#FFB215"/>
</g>
<defs>
<clipPath id="clip0_710_4">
<rect width="256" height="256" fill="white"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 338 B

View file

@ -1,11 +0,0 @@
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_710_2)">
<rect width="256" height="256" fill="black"/>
<path d="M0 0H256V256H0V0Z" fill="#E12637"/>
</g>
<defs>
<clipPath id="clip0_710_2">
<rect width="256" height="256" fill="white"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 KiB

View file

@ -265,10 +265,7 @@
"apiType": {
"title": "Api Type",
"markdownDescription": "OpenAI API type, either `openai` or `azure`",
"enum": [
"openai",
"azure"
]
"enum": ["openai", "azure"]
},
"apiVersion": {
"title": "Api Version",
@ -281,11 +278,7 @@
"type": "string"
}
},
"required": [
"title",
"provider",
"model"
],
"required": ["title", "provider", "model"],
"allOf": [
{
"if": {
@ -295,9 +288,7 @@
}
},
"not": {
"required": [
"provider"
]
"required": ["provider"]
}
},
"then": {
@ -323,48 +314,33 @@
]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"required": [
"apiKey"
]
"required": ["apiKey"]
}
},
{
"if": {
"properties": {
"provider": {
"enum": [
"huggingface-tgi",
"huggingface-inference-api"
]
"enum": ["huggingface-tgi", "huggingface-inference-api"]
}
}
},
"then": {
"required": [
"apiBase"
]
"required": ["apiBase"]
},
"required": [
"provider"
]
"required": ["provider"]
},
{
"if": {
"properties": {
"provider": {
"enum": [
"openai"
]
"enum": ["openai"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -384,14 +360,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"openai"
]
"enum": ["openai"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -421,14 +393,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"replicate"
]
"enum": ["replicate"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -458,14 +426,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"free-trial"
]
"enum": ["free-trial"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -492,9 +456,7 @@
"if": {
"properties": {
"provider": {
"enum": [
"openai"
]
"enum": ["openai"]
},
"apiType": {
"not": {
@ -502,9 +464,7 @@
}
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -561,14 +521,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"anthropic"
]
"enum": ["anthropic"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -596,22 +552,15 @@
"if": {
"properties": {
"provider": {
"enum": [
"cohere"
]
"enum": ["cohere"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
"model": {
"enum": [
"command-r",
"command-r-plus"
]
"enum": ["command-r", "command-r-plus"]
}
}
}
@ -620,14 +569,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"bedrock"
]
"enum": ["bedrock"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -652,14 +597,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"gemini"
]
"enum": ["gemini"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -677,14 +618,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"together"
]
"enum": ["together"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -718,14 +655,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"deepinfra"
]
"enum": ["deepinfra"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -748,9 +681,7 @@
]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -796,14 +727,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"ollama"
]
"enum": ["ollama"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -851,14 +778,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"mistral"
]
"enum": ["mistral"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -879,14 +802,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"groq"
]
"enum": ["groq"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -910,30 +829,20 @@
"const": "azure"
}
},
"required": [
"apiType"
]
"required": ["apiType"]
},
"then": {
"required": [
"engine",
"apiVersion",
"apiBase"
]
"required": ["engine", "apiVersion", "apiBase"]
}
},
{
"if": {
"properties": {
"provider": {
"enum": [
"openai"
]
"enum": ["openai"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -950,9 +859,7 @@
"const": "llamafile"
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -966,14 +873,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"text-gen-webui"
]
"enum": ["text-gen-webui"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -987,14 +890,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"flowise"
]
"enum": ["flowise"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -1021,10 +920,7 @@
"type": "string"
}
},
"required": [
"key",
"value"
]
"required": ["key", "value"]
}
},
"additionalFlowiseConfiguration": {
@ -1043,10 +939,7 @@
"description": "Configuration Property value"
}
},
"required": [
"key",
"value"
]
"required": ["key", "value"]
}
},
"model": {
@ -1134,9 +1027,7 @@
"type": "string"
}
},
"required": [
"default"
]
"required": ["default"]
},
"SlashCommand": {
"title": "SlashCommand",
@ -1195,9 +1086,7 @@
"if": {
"properties": {
"name": {
"enum": [
"issue"
]
"enum": ["issue"]
}
}
},
@ -1210,23 +1099,17 @@
"description": "Enter the URL of the GitHub repository for which you want to generate the issue."
}
},
"required": [
"repositoryUrl"
]
"required": ["repositoryUrl"]
}
},
"required": [
"params"
]
"required": ["params"]
}
},
{
"if": {
"properties": {
"name": {
"enum": [
"edit"
]
"enum": ["edit"]
}
}
},
@ -1251,9 +1134,7 @@
"if": {
"properties": {
"name": {
"enum": [
"share"
]
"enum": ["share"]
}
}
},
@ -1271,10 +1152,7 @@
}
}
],
"required": [
"name",
"description"
]
"required": ["name", "description"]
},
"CustomCommand": {
"title": "CustomCommand",
@ -1293,11 +1171,7 @@
"type": "string"
}
},
"required": [
"name",
"prompt",
"description"
]
"required": ["name", "prompt", "description"]
},
"ContextProviderWithParams": {
"title": "ContextProviderWithParams",
@ -1370,9 +1244,7 @@
"if": {
"properties": {
"name": {
"enum": [
"google"
]
"enum": ["google"]
}
}
},
@ -1385,23 +1257,17 @@
"description": "Your API key for https://serper.dev in order to get Google search results"
}
},
"required": [
"serperApiKey"
]
"required": ["serperApiKey"]
}
},
"required": [
"params"
]
"required": ["params"]
}
},
{
"if": {
"properties": {
"name": {
"enum": [
"open"
]
"enum": ["open"]
}
}
},
@ -1423,9 +1289,7 @@
"if": {
"properties": {
"name": {
"enum": [
"issue"
]
"enum": ["issue"]
}
}
},
@ -1454,37 +1318,24 @@
"type": {
"type": "string",
"description": "The type of issues to search for",
"enum": [
"open",
"closed",
"all"
]
"enum": ["open", "closed", "all"]
}
},
"required": [
"owner",
"repo"
]
"required": ["owner", "repo"]
}
}
},
"required": [
"repos"
]
"required": ["repos"]
}
},
"required": [
"params"
]
"required": ["params"]
}
},
{
"if": {
"properties": {
"name": {
"enum": [
"database"
]
"enum": ["database"]
}
}
},
@ -1502,11 +1353,7 @@
"connection_type": {
"type": "string",
"description": "The type of database (e.g., 'postgres', 'mysql')",
"enum": [
"postgres",
"mysql",
"sqlite"
]
"enum": ["postgres", "mysql", "sqlite"]
},
"connection": {
"type": "object",
@ -1539,25 +1386,17 @@
"required": []
}
},
"required": [
"name",
"type",
"connection"
]
"required": ["name", "type", "connection"]
}
},
"required": [
"connections"
]
"required": ["connections"]
}
},
{
"if": {
"properties": {
"name": {
"enum": [
"gitlab-mr"
]
"enum": ["gitlab-mr"]
}
}
},
@ -1578,23 +1417,17 @@
"description": "If you have code selected, filters out comments that aren't related to the selection."
}
},
"required": [
"token"
]
"required": ["token"]
}
},
"required": [
"params"
]
"required": ["params"]
}
},
{
"if": {
"properties": {
"name": {
"enum": [
"jira"
]
"enum": ["jira"]
}
}
},
@ -1640,24 +1473,17 @@
]
}
},
"required": [
"domain",
"token"
]
"required": ["domain", "token"]
}
},
"required": [
"params"
]
"required": ["params"]
}
},
{
"if": {
"properties": {
"name": {
"enum": [
"http"
]
"enum": ["http"]
}
}
},
@ -1670,24 +1496,17 @@
"description": "The HTTP endpoint of your context provider server."
}
},
"required": [
"url"
]
"required": ["url"]
}
},
"required": [
"params"
]
"required": ["params"]
}
},
{
"if": {
"properties": {
"name": {
"enum": [
"codebase",
"folder"
]
"enum": ["codebase", "folder"]
}
}
},
@ -1722,9 +1541,7 @@
"if": {
"properties": {
"name": {
"enum": [
"postgres"
]
"enum": ["postgres"]
}
}
},
@ -1776,19 +1593,11 @@
}
}
},
"required": [
"host",
"port",
"user",
"password",
"database"
]
"required": ["host", "port", "user", "password", "database"]
}
}
],
"required": [
"name"
]
"required": ["name"]
},
"SerializedContinueConfig": {
"title": "config.json",
@ -1939,46 +1748,32 @@
"$ref": "#/definitions/RequestOptions"
}
},
"required": [
"provider"
],
"required": ["provider"],
"allOf": [
{
"if": {
"properties": {
"provider": {
"enum": [
"ollama"
]
"enum": ["ollama"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"required": [
"model"
]
"required": ["model"]
}
},
{
"if": {
"properties": {
"provider": {
"enum": [
"cohere"
]
"enum": ["cohere"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"required": [
"apiKey"
]
"required": ["apiKey"]
}
}
]
@ -1989,33 +1784,22 @@
"type": "object",
"properties": {
"name": {
"enum": [
"cohere",
"voyage",
"llm",
"free-trial"
]
"enum": ["cohere", "voyage", "llm", "free-trial"]
},
"params": {
"type": "object"
}
},
"required": [
"name"
],
"required": ["name"],
"allOf": [
{
"if": {
"properties": {
"name": {
"enum": [
"cohere"
]
"enum": ["cohere"]
}
},
"required": [
"name"
]
"required": ["name"]
},
"then": {
"properties": {
@ -2037,9 +1821,7 @@
"type": "string"
}
},
"required": [
"apiKey"
]
"required": ["apiKey"]
}
}
}
@ -2048,14 +1830,10 @@
"if": {
"properties": {
"name": {
"enum": [
"llm"
]
"enum": ["llm"]
}
},
"required": [
"name"
]
"required": ["name"]
},
"then": {
"properties": {
@ -2066,9 +1844,7 @@
"type": "string"
}
},
"required": [
"modelTitle"
]
"required": ["modelTitle"]
}
}
}
@ -2077,14 +1853,10 @@
"if": {
"properties": {
"name": {
"enum": [
"voyage"
]
"enum": ["voyage"]
}
},
"required": [
"name"
]
"required": ["name"]
},
"then": {
"properties": {
@ -2095,14 +1867,10 @@
"type": "string"
},
"model": {
"enum": [
"rerank-lite-1"
]
"enum": ["rerank-lite-1"]
}
},
"required": [
"apiKey"
]
"required": ["apiKey"]
}
}
}
@ -2158,11 +1926,7 @@
"description": "An optional template string to be used for autocomplete. It will be rendered with the Mustache templating language, and is passed the 'prefix' and 'suffix' variables."
},
"multilineCompletions": {
"enum": [
"always",
"never",
"auto"
],
"enum": ["always", "never", "auto"],
"description": "If set to true, Continue will only complete a single line at a time."
},
"useCache": {
@ -2191,10 +1955,7 @@
"type": "object",
"properties": {
"codeBlockToolbarPosition": {
"enum": [
"top",
"bottom"
],
"enum": ["top", "bottom"],
"default": "top",
"description": "Whether to show the copy and apply code buttons at the top or bottom of code blocks in the sidebar."
}
@ -2208,9 +1969,7 @@
"defaultContext": {
"type": "array",
"items": {
"enum": [
"activeFile"
]
"enum": ["activeFile"]
}
},
"modelRoles": {
@ -2250,10 +2009,7 @@
},
"mergeBehavior": {
"type": "string",
"enum": [
"merge",
"overwrite"
],
"enum": ["merge", "overwrite"],
"default": "merge",
"title": "Merge behavior",
"markdownDescription": "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json."
@ -2261,4 +2017,4 @@
}
}
}
}
}

View file

@ -279,7 +279,6 @@ function TipTapEditor(props: TipTapEditorProps) {
});
return true;
},
"Alt-Enter": () => {
onEnterRef.current({
useCodebase: false,