Merge branch 'main' into preview

This commit is contained in:
Nate Sesti 2024-05-16 22:15:07 -07:00
commit 4e33901ab0
16 changed files with 14589 additions and 392 deletions

View file

@ -30,7 +30,9 @@ export async function* noFirstCharNewline(stream: AsyncGenerator<string>) {
for await (let char of stream) {
if (first) {
first = false;
if (char === "\n") {return;}
if (char === "\n") {
return;
}
}
yield char;
}
@ -48,9 +50,9 @@ export async function* stopOnUnmatchedClosingBracket(
): AsyncGenerator<string> {
const stack: string[] = [];
for (let i = 0; i < suffix.length; i++) {
if (suffix[i] === " ") {continue;}
if (suffix[i] === " ") continue;
const openBracket = BRACKETS_REVERSE[suffix[i]];
if (!openBracket) {break;}
if (!openBracket) break;
stack.unshift(openBracket);
}

View file

@ -2,13 +2,19 @@ import Handlebars from "handlebars";
import ignore from "ignore";
import path from "path";
import { v4 as uuidv4 } from "uuid";
import { IDE, ILLM, Position, Range, TabAutocompleteOptions } from "../index.js";
import { RangeInFileWithContents } from "../commands/util.js";
import { ConfigHandler } from "../config/handler.js";
import { streamLines } from "../diff/util.js";
import {
IDE,
ILLM,
Position,
Range,
TabAutocompleteOptions,
} from "../index.js";
import OpenAI from "../llm/llms/OpenAI.js";
import { getBasename } from "../util/index.js";
import { logDevData } from "../util/devdata.js";
import { getBasename } from "../util/index.js";
import {
COUNT_COMPLETION_REJECTED_AFTER,
DEFAULT_AUTOCOMPLETE_OPTS,
@ -157,7 +163,9 @@ export async function getTabCompletion(
}
// Model
if (!llm) {return;}
if (!llm) {
return;
}
if (llm instanceof OpenAI) {
llm.useLegacyCompletionsEndpoint = true;
} else if (

View file

@ -1,6 +1,6 @@
import Parser from "web-tree-sitter";
import { TabAutocompleteOptions } from "../index.js";
import { RangeInFileWithContents } from "../commands/util.js";
import { TabAutocompleteOptions } from "../index.js";
import {
countTokens,
@ -8,7 +8,11 @@ import {
pruneLinesFromTop,
} from "../llm/countTokens.js";
import { getAst, getTreePathAtCursor } from "./ast.js";
import { AutocompleteLanguageInfo, LANGUAGES, Typescript } from "./languages.js";
import {
AutocompleteLanguageInfo,
LANGUAGES,
Typescript,
} from "./languages.js";
import {
AutocompleteSnippet,
fillPromptWithSnippets,

View file

@ -1,4 +1,3 @@
import { ContextItemWithId, ILLM, SlashCommand } from "../../index.js";
import {
filterCodeBlockLines,
filterEnglishLinesAtEnd,
@ -8,6 +7,7 @@ import {
streamWithNewLines,
} from "../../autocomplete/lineStream.js";
import { streamLines } from "../../diff/util.js";
import { ContextItemWithId, ILLM, SlashCommand } from "../../index.js";
import { stripImages } from "../../llm/countTokens.js";
import {
dedentAndGetCommonWhitespace,

View file

@ -1,10 +1,10 @@
import { BaseContextProvider } from "../index.js";
import {
ContextItem,
ContextProviderDescription,
ContextProviderExtras,
} from "../../index.js";
import { getBasename } from "../../util/index.js";
import { BaseContextProvider } from "../index.js";
class CurrentFileContextProvider extends BaseContextProvider {
static description: ContextProviderDescription = {

View file

@ -1,5 +1,5 @@
import { BaseContextProvider } from "../index.js";
import { ContextProviderName } from "../../index.js";
import { BaseContextProvider } from "../index.js";
import CodeContextProvider from "./CodeContextProvider.js";
import CodebaseContextProvider from "./CodebaseContextProvider.js";
import CurrentFileContextProvider from "./CurrentFileContextProvider.js";

5963
core/yarn.lock Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
# AnthropicLLM
# Anthropic
To setup Anthropic, add the following to your `config.json` file:
To setup Anthropic, obtain an API key from [here](https://www.anthropic.com/api) and add the following to your `config.json` file:
```json title="~/.continue/config.json"
{
@ -8,13 +8,11 @@ To setup Anthropic, add the following to your `config.json` file:
{
"title": "Anthropic",
"provider": "anthropic",
"model": "claude-2",
"model": "claude-3-opus-20240229",
"apiKey": "YOUR_API_KEY"
}
]
}
```
Claude 2 is not yet publicly released. You can request early access [here](https://www.anthropic.com/earlyaccess).
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Anthropic.ts)

View file

@ -1,24 +1,72 @@
# FreeTrial
# Free Trial
With the `FreeTrial` provider, new users can try out Continue with GPT-4 using a proxy server that securely makes calls to OpenAI using our API key. Continue should just work the first time you install the extension in VS Code.
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.
Once you are using Continue regularly though, you will need to add an OpenAI API key that has access to GPT-4 by following these steps:
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:
1. Copy your API key from https://platform.openai.com/account/api-keys
2. Open `~/.continue/config.json`. You can do this by using the '/config' command in Continue
3. Change the LLM to look like this:
1. Select an open-source model to use for free locally, or
2. Add your own API key for OpenAI, Anthropic, or another LLM provider
## Options
### 🦙 Ollama (free, local)
Ollama is a local service that makes it easy to run language models on your laptop.
1. Download Ollama from https://ollama.ai
2. Open `~/.continue/config.json`. You can do this by clicking the gear icon in the bottom right corner of the Continue sidebar
3. Add the following to your `config.json`:
```json title="~/.continue/config.json"
{
"models": [
{
"title": "GPT-4",
"provider": "openai",
"model": "gpt-4",
"title": "Llama3 8b",
"provider": "ollama",
"model": "llama3:8b"
}
]
}
```
### ⚡️ Groq (extremely fast)
Groq provides lightning fast inference for open-source LLMs like Llama3, up to twice as fast as through other providers.
1. Obtain an API key from https://console.groq.com
2. Add the following to your `config.json`:
```json title="~/.continue/config.json"
{
"models": [
{
"title": "Llama3 70b",
"provider": "groq",
"model": "llama3-70b",
"apiKey": "YOUR_API_KEY"
}
]
}
```
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/FreeTrial.ts)
### ✨ OpenAI (highly capable)
1. Copy your API key from https://platform.openai.com/account/api-keys
2. Add the following to your `config.json`:
```json title="~/.continue/config.json"
{
"models": [
{
"title": "GPT-4-Turbo",
"provider": "openai",
"model": "gpt-4-turbo",
"apiKey": "YOUR_API_KEY"
}
]
}
```
### ⏩ 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).

View file

@ -1,6 +1,6 @@
# Ollama
[Ollama](https://ollama.ai/) is an application for Mac and Linux that makes it easy to locally run open-source models, including Llama-2. Download the app from the website, and it will walk you through setup in a couple of minutes. You can also read more in their [README](https://github.com/jmorganca/ollama). Continue can then be configured to use the `Ollama` LLM class:
[Ollama](https://ollama.ai/) is an application for Mac, Windows, and Linux that makes it easy to locally run open-source models, including Llama3. Download the app from the website, and it will walk you through setup in a couple of minutes. You can also read more in their [README](https://github.com/ollama/ollama). Continue can then be configured to use the `"ollama"` provider:
```json title="~/.continue/config.json"
{
@ -8,9 +8,7 @@
{
"title": "Ollama",
"provider": "ollama",
"model": "llama2-7b",
"completionOptions": {},
"apiBase": "http://localhost:11434"
"model": "llama3:8b"
}
]
}
@ -38,7 +36,7 @@ If you need to send custom headers for authentication, you may use the `requestO
{
"title": "Ollama",
"provider": "ollama",
"model": "llama2-7b",
"model": "llama3:8b",
"requestOptions": {
"headers": {
"Authorization": "Bearer xxx"

View file

@ -6,19 +6,19 @@ keywords: [configure, llm, provider]
# Configuration
## Change the default LLM
## Setting up chat models
In `config.json`, you'll find the `models` property, a list of the models that you have saved to use with Continue:
```json
"models": [
{
"title": "Smart Model",
"title": "GPT-4",
"provider": "free-trial",
"model": "gpt-4"
},
{
"title": "Fast Model",
"title": "GPT-3.5-Turbo",
"provider": "free-trial",
"model": "gpt-3.5-turbo"
}
@ -167,7 +167,10 @@ export function modifyConfig(config: Config): Config {
title: "My Custom LLM",
model: "mistral-7b",
},
streamCompletion: async function* (prompt: string, options: CompletionOptions) {
streamCompletion: async function* (
prompt: string,
options: CompletionOptions,
) {
// Make the API call here
// Then yield each part of the completion as it is streamed

View file

@ -8,16 +8,16 @@ keywords: [telemetry, anonymous, usage info, opt out]
## Overview
Continue collects and reports **anonymous** usage information. This data is essential to understanding how we should improve the product. You can opt out of it at any time. We use [Posthog](https://posthog.com/), an open source platform for product analytics, to collect and store the data. You can review the code [here](https://github.com/continuedev/continue/blob/main/gui/src/hooks/CustomPostHogProvider.tsx).
Continue collects and reports **anonymous** usage information. This data is essential to understanding how we should improve the product. You can opt out of it at any time. We use [Posthog](https://posthog.com/), an open source platform for product analytics, to collect and store the data. You can review the code [here](https://github.com/continuedev/continue/blob/main/gui/src/hooks/CustomPostHogProvider.tsx), or review our official policy [here](https://continue.dev/privacy).
## What we track
We track
- whether you accept or reject suggestions (not the code itself)
- the name of slash commands that are run
- whether you accept or reject suggestions (never including the code or the prompt)
- the name of the model and slash command used
- the number of tokens generated
- the name of your OS and IDE
- the name of the default model you configured
All data is anonymous and cleaned of PII before being sent to PostHog.

View file

@ -14,12 +14,22 @@ To solve many problems, the first step is reading the logs to find the relevant
### VS Code
#### Console logs
1. `cmd+shift+p` (MacOS) / `ctrl+shift+p` (Windows)
2. Search for and then select "Developer: Toggle Developer Tools"
3. This will open the [Chrome DevTools window](https://developer.chrome.com/docs/devtools/)
4. Select the `Console` tab
5. Read the console logs
#### LLM prompt logs
If you're getting a response from the LLM that doesn't seem to make sense, you can
1. Open the "Output" panel (right next to the terminal)
2. In the dropdown, select "Continue - LLM Prompts/Completions
3. View the exact prompts that were sent to the LLM and the completions recieved
### JetBrains
Open `~/.continue/core.log`. The most recent logs are found at the bottom of the file.
@ -55,9 +65,11 @@ If you are using VS Code and require requests to be made through a proxy, you ar
Continue can be used in [code-server](https://coder.com/), but if you are running across an error in the logs that includes "This is likely because the editor is not running in a secure context", please see [their documentation on securely exposing code-server](https://coder.com/docs/code-server/latest/guide#expose-code-server).
## Download a Newer Version
## Download the latest pre-release
If you are using an older version of the Continue extension, particularly one which depends on the separate Python server, we would recommend downloading the latest version of the extension, as we are constantly making bug fixes and are likely to have solved any major issues.
We are constantly making fixes and improvements to Continue, but the latest changes remain in a "pre-release" version for roughly a week so that we can test their stability. If you are experiencing issues, you can try the pre-release by going to the Continue extension page in VS Code and selecting "Switch to Pre-Release" as shown below.
![Pre-Release](../static/img/prerelease.png)
## Download an Older Version

BIN
docs/static/img/prerelease.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

View file

@ -267,10 +267,7 @@
"apiType": {
"title": "Api Type",
"markdownDescription": "OpenAI API type, either `openai` or `azure`",
"enum": [
"openai",
"azure"
]
"enum": ["openai", "azure"]
},
"apiVersion": {
"title": "Api Version",
@ -283,11 +280,7 @@
"type": "string"
}
},
"required": [
"title",
"provider",
"model"
],
"required": ["title", "provider", "model"],
"allOf": [
{
"if": {
@ -297,9 +290,7 @@
}
},
"not": {
"required": [
"provider"
]
"required": ["provider"]
}
},
"then": {
@ -325,48 +316,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": {
@ -386,14 +362,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"openai"
]
"enum": ["openai"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -424,14 +396,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"replicate"
]
"enum": ["replicate"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -461,14 +429,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"free-trial"
]
"enum": ["free-trial"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -495,9 +459,7 @@
"if": {
"properties": {
"provider": {
"enum": [
"openai"
]
"enum": ["openai"]
},
"apiType": {
"not": {
@ -505,9 +467,7 @@
}
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -565,14 +525,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"anthropic"
]
"enum": ["anthropic"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -600,22 +556,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"]
}
}
}
@ -624,14 +573,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"bedrock"
]
"enum": ["bedrock"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -656,14 +601,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"gemini"
]
"enum": ["gemini"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -681,14 +622,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"together"
]
"enum": ["together"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -722,14 +659,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"deepinfra"
]
"enum": ["deepinfra"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -752,9 +685,7 @@
]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -800,14 +731,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"ollama"
]
"enum": ["ollama"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -855,14 +782,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"mistral"
]
"enum": ["mistral"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -883,14 +806,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"groq"
]
"enum": ["groq"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -914,30 +833,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": {
@ -954,9 +863,7 @@
"const": "llamafile"
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -970,14 +877,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"text-gen-webui"
]
"enum": ["text-gen-webui"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -991,14 +894,10 @@
"if": {
"properties": {
"provider": {
"enum": [
"flowise"
]
"enum": ["flowise"]
}
},
"required": [
"provider"
]
"required": ["provider"]
},
"then": {
"properties": {
@ -1025,10 +924,7 @@
"type": "string"
}
},
"required": [
"key",
"value"
]
"required": ["key", "value"]
}
},
"additionalFlowiseConfiguration": {
@ -1047,10 +943,7 @@
"description": "Configuration Property value"
}
},
"required": [
"key",
"value"
]
"required": ["key", "value"]
}
},
"model": {
@ -1139,9 +1032,7 @@
"type": "string"
}
},
"required": [
"default"
]
"required": ["default"]
},
"SlashCommand": {
"title": "SlashCommand",
@ -1200,9 +1091,7 @@
"if": {
"properties": {
"name": {
"enum": [
"issue"
]
"enum": ["issue"]
}
}
},
@ -1215,23 +1104,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"]
}
}
},
@ -1256,9 +1139,7 @@
"if": {
"properties": {
"name": {
"enum": [
"share"
]
"enum": ["share"]
}
}
},
@ -1276,10 +1157,7 @@
}
}
],
"required": [
"name",
"description"
]
"required": ["name", "description"]
},
"CustomCommand": {
"title": "CustomCommand",
@ -1298,11 +1176,7 @@
"type": "string"
}
},
"required": [
"name",
"prompt",
"description"
]
"required": ["name", "prompt", "description"]
},
"ContextProviderWithParams": {
"title": "ContextProviderWithParams",
@ -1375,9 +1249,7 @@
"if": {
"properties": {
"name": {
"enum": [
"google"
]
"enum": ["google"]
}
}
},
@ -1390,23 +1262,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"]
}
}
},
@ -1428,9 +1294,7 @@
"if": {
"properties": {
"name": {
"enum": [
"issue"
]
"enum": ["issue"]
}
}
},
@ -1459,37 +1323,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"]
}
}
},
@ -1507,11 +1358,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",
@ -1544,25 +1391,17 @@
"required": []
}
},
"required": [
"name",
"type",
"connection"
]
"required": ["name", "type", "connection"]
}
},
"required": [
"connections"
]
"required": ["connections"]
}
},
{
"if": {
"properties": {
"name": {
"enum": [
"gitlab-mr"
]
"enum": ["gitlab-mr"]
}
}
},
@ -1583,23 +1422,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"]
}
}
},
@ -1645,24 +1478,17 @@
]
}
},
"required": [
"domain",
"token"
]
"required": ["domain", "token"]
}
},
"required": [
"params"
]
"required": ["params"]
}
},
{
"if": {
"properties": {
"name": {
"enum": [
"http"
]
"enum": ["http"]
}
}
},
@ -1675,24 +1501,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"]
}
}
},
@ -1727,9 +1546,7 @@
"if": {
"properties": {
"name": {
"enum": [
"postgres"
]
"enum": ["postgres"]
}
}
},
@ -1781,19 +1598,11 @@
}
}
},
"required": [
"host",
"port",
"user",
"password",
"database"
]
"required": ["host", "port", "user", "password", "database"]
}
}
],
"required": [
"name"
]
"required": ["name"]
},
"SerializedContinueConfig": {
"title": "config.json",
@ -1944,46 +1753,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"]
}
}
]
@ -1994,33 +1789,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": {
@ -2042,9 +1826,7 @@
"type": "string"
}
},
"required": [
"apiKey"
]
"required": ["apiKey"]
}
}
}
@ -2053,14 +1835,10 @@
"if": {
"properties": {
"name": {
"enum": [
"llm"
]
"enum": ["llm"]
}
},
"required": [
"name"
]
"required": ["name"]
},
"then": {
"properties": {
@ -2071,9 +1849,7 @@
"type": "string"
}
},
"required": [
"modelTitle"
]
"required": ["modelTitle"]
}
}
}
@ -2082,14 +1858,10 @@
"if": {
"properties": {
"name": {
"enum": [
"voyage"
]
"enum": ["voyage"]
}
},
"required": [
"name"
]
"required": ["name"]
},
"then": {
"properties": {
@ -2100,14 +1872,10 @@
"type": "string"
},
"model": {
"enum": [
"rerank-lite-1"
]
"enum": ["rerank-lite-1"]
}
},
"required": [
"apiKey"
]
"required": ["apiKey"]
}
}
}
@ -2163,11 +1931,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": {
@ -2196,10 +1960,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."
},
@ -2216,9 +1977,7 @@
"defaultContext": {
"type": "array",
"items": {
"enum": [
"activeFile"
]
"enum": ["activeFile"]
}
},
"modelRoles": {
@ -2258,10 +2017,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."
@ -2269,4 +2025,4 @@
}
}
}
}
}

8405
extensions/vscode/yarn.lock Normal file

File diff suppressed because it is too large Load diff