diff --git a/core/autocomplete/README.md b/core/autocomplete/README.md index c988eb0cd..a83524814 100644 --- a/core/autocomplete/README.md +++ b/core/autocomplete/README.md @@ -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": "", + "apiBase": "" + }, + ... +} +``` + +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://" + "model": "deepseek-coder:6.7b-base" }, ... } diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index 4f5f5b9c1..709317996 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -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`, ); } diff --git a/docs/docs/setup/select-model.md b/docs/docs/setup/select-model.md index f8e549988..1191a5616 100644 --- a/docs/docs/setup/select-model.md +++ b/docs/docs/setup/select-model.md @@ -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).** \ No newline at end of file +**In addition to selecting models, you will need to figure out [what providers to use](./select-provider.md).** diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index b1634ca09..658e5e8d3 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -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", }, ], }, diff --git a/docs/static/img/autocomplete.gif b/docs/static/img/autocomplete.gif index 48389b180..7340b3cb9 100644 Binary files a/docs/static/img/autocomplete.gif and b/docs/static/img/autocomplete.gif differ diff --git a/docs/static/img/classes.gif b/docs/static/img/classes.gif index 97465f542..36203f185 100644 Binary files a/docs/static/img/classes.gif and b/docs/static/img/classes.gif differ diff --git a/docs/static/img/codebase.gif b/docs/static/img/codebase.gif index dbcaa5f10..b07f34796 100644 Binary files a/docs/static/img/codebase.gif and b/docs/static/img/codebase.gif differ diff --git a/docs/static/img/continue-diagram.png b/docs/static/img/continue-diagram.png deleted file mode 100644 index aac9b8bec..000000000 Binary files a/docs/static/img/continue-diagram.png and /dev/null differ diff --git a/docs/static/img/continue-social-card.png b/docs/static/img/continue-social-card.png index 52c1a38ef..e10853577 100644 Binary files a/docs/static/img/continue-social-card.png and b/docs/static/img/continue-social-card.png differ diff --git a/docs/static/img/contribute-data-off.png b/docs/static/img/contribute-data-off.png deleted file mode 100644 index 3a37906c8..000000000 Binary files a/docs/static/img/contribute-data-off.png and /dev/null differ diff --git a/docs/static/img/contribute-data-on.png b/docs/static/img/contribute-data-on.png deleted file mode 100644 index 633a547cf..000000000 Binary files a/docs/static/img/contribute-data-on.png and /dev/null differ diff --git a/docs/static/img/docs.gif b/docs/static/img/docs.gif index 7da86106e..5f9fb4ab6 100644 Binary files a/docs/static/img/docs.gif and b/docs/static/img/docs.gif differ diff --git a/docs/static/img/docusaurus-social-card.jpg b/docs/static/img/docusaurus-social-card.jpg deleted file mode 100644 index ffcb44821..000000000 Binary files a/docs/static/img/docusaurus-social-card.jpg and /dev/null differ diff --git a/docs/static/img/docusaurus.png b/docs/static/img/docusaurus.png deleted file mode 100644 index f458149e3..000000000 Binary files a/docs/static/img/docusaurus.png and /dev/null differ diff --git a/docs/static/img/error.gif b/docs/static/img/error.gif index 753675b18..41d12aa73 100644 Binary files a/docs/static/img/error.gif and b/docs/static/img/error.gif differ diff --git a/docs/static/img/favicon.ico b/docs/static/img/favicon.ico index b06ec544d..9a6b0cbea 100644 Binary files a/docs/static/img/favicon.ico and b/docs/static/img/favicon.ico differ diff --git a/docs/static/img/inline.gif b/docs/static/img/inline.gif index 5e27151e7..286cf2e5c 100644 Binary files a/docs/static/img/inline.gif and b/docs/static/img/inline.gif differ diff --git a/docs/static/img/logo.png b/docs/static/img/logo.png index 183887a09..232e6f327 100644 Binary files a/docs/static/img/logo.png and b/docs/static/img/logo.png differ diff --git a/docs/static/img/slash.gif b/docs/static/img/slash.gif index b292a68d2..3a90748f1 100644 Binary files a/docs/static/img/slash.gif and b/docs/static/img/slash.gif differ diff --git a/docs/static/img/understand.gif b/docs/static/img/understand.gif index 123301e9b..2979f6c28 100644 Binary files a/docs/static/img/understand.gif and b/docs/static/img/understand.gif differ diff --git a/docs/static/img/undraw_docusaurus_mountain.svg b/docs/static/img/undraw_docusaurus_mountain.svg deleted file mode 100644 index 77cd4b548..000000000 --- a/docs/static/img/undraw_docusaurus_mountain.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/docs/static/img/undraw_docusaurus_react.svg b/docs/static/img/undraw_docusaurus_react.svg deleted file mode 100644 index ba158585f..000000000 --- a/docs/static/img/undraw_docusaurus_react.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/docs/static/img/undraw_docusaurus_tree.svg b/docs/static/img/undraw_docusaurus_tree.svg deleted file mode 100644 index 7e45e3efa..000000000 --- a/docs/static/img/undraw_docusaurus_tree.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/docs/static/img/vscode-install.png b/docs/static/img/vscode-install.png deleted file mode 100644 index 17ac547af..000000000 Binary files a/docs/static/img/vscode-install.png and /dev/null differ diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 06bc627ed..3eacba56b 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -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 @@ } } } -} \ No newline at end of file +} diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index add3f520c..1d6d7ce7a 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -279,7 +279,6 @@ function TipTapEditor(props: TipTapEditorProps) { }); return true; }, - "Alt-Enter": () => { onEnterRef.current({ useCodebase: false,