This commit is contained in:
Nate 2024-10-29 11:53:37 -07:00
commit 15caea26db
28 changed files with 787 additions and 4676 deletions

View file

@ -20,6 +20,12 @@ jobs:
with:
node-version-file: ".nvmrc"
- name: Cache root node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Cache extension node_modules
uses: actions/cache@v3
with:
@ -44,6 +50,10 @@ jobs:
path: binary/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }}
- name: root install
run: |
npm ci
- name: extensions/vscode install
run: |
cd extensions/vscode
@ -71,6 +81,7 @@ jobs:
run: |
cd extensions/vscode
npx tsc --noEmit
npm run lint
- name: core checks
run: |

View file

@ -97,7 +97,6 @@ jobs:
with:
node-version-file: ".nvmrc"
# Cache node_modules
- name: Cache core node_modules
uses: actions/cache@v3
with:

View file

@ -21,6 +21,12 @@ jobs:
with:
node-version-file: ".nvmrc"
- name: Cache root node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Cache extension node_modules
uses: actions/cache@v3
with:
@ -45,6 +51,10 @@ jobs:
path: binary/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }}
- name: Install Root Dependencies
run: |
npm ci
- name: Install extension Dependencies
run: |
cd extensions/vscode
@ -72,11 +82,13 @@ jobs:
run: |
cd core
npx tsc --noEmit
npm run lint
- name: tsc extensions/vscode
run: |
cd extensions/vscode
npx tsc --noEmit
npm run lint
- name: tsc binary
run: |

2
.gitignore vendored
View file

@ -166,3 +166,5 @@ extensions/intellij/.idea/**
**/.idea/workspace.xml
**/.idea/usage.statistics.xml
**/.idea/shelf/
extensions/intellij/bin

View file

@ -17,7 +17,8 @@
"**/core/vendor/**": true,
"**/gui/dist": true,
"**/extensions/vscode/gui/**": true,
"**/extensions/vscode/out/**": true
"**/extensions/vscode/out/**": true,
"**/extensions/intellij/build/**": true
},
"eslint.workingDirectories": ["./core"]
}

View file

@ -15,10 +15,10 @@ export function validateConfig(config: SerializedContinueConfig) {
const errors: ConfigValidationError[] = [];
// Validate chat models
if (!Array.isArray(config.models) || config.models.length === 0) {
if (!Array.isArray(config.models)) {
errors.push({
fatal: true,
message: "The 'models' field should be a non-empty array.",
message: "The 'models' field should be an array.",
});
} else {
config.models.forEach((model, index) => {

View file

@ -14,13 +14,13 @@ export interface RetrievalPipelineOptions {
llm: ILLM;
config: ContinueConfig;
ide: IDE;
input: string;
nRetrieve: number;
nFinal: number;
tags: BranchAndDir[];
pathSep: string;
filterDirectory?: string;
includeEmbeddings?: boolean; // Used to handle JB w/o an embeddings model
}
export interface IRetrievalPipeline {
@ -29,6 +29,7 @@ export interface IRetrievalPipeline {
export default class BaseRetrievalPipeline implements IRetrievalPipeline {
private lanceDbIndex: LanceDbIndex;
constructor(protected readonly options: RetrievalPipelineOptions) {
this.lanceDbIndex = new LanceDbIndex(
options.config.embeddingsProvider,

View file

@ -5,7 +5,7 @@ import BaseRetrievalPipeline from "./BaseRetrievalPipeline.js";
export default class NoRerankerRetrievalPipeline extends BaseRetrievalPipeline {
async run(): Promise<Chunk[]> {
const { input, nFinal, filterDirectory } = this.options;
const { input, nFinal, filterDirectory, includeEmbeddings } = this.options;
// We give 1/4 weight to recently edited files, 1/4 to full text search,
// and the remaining 1/2 to embeddings
@ -17,10 +17,9 @@ export default class NoRerankerRetrievalPipeline extends BaseRetrievalPipeline {
const ftsChunks = await this.retrieveFts(input, ftsNFinal);
const embeddingsChunks = await this.retrieveEmbeddings(
input,
embeddingsNFinal,
);
const embeddingsChunks = includeEmbeddings
? await this.retrieveEmbeddings(input, embeddingsNFinal)
: [];
const recentlyEditedFilesChunks =
await this.retrieveAndChunkRecentlyEditedFiles(recentlyEditedNFinal);

View file

@ -6,12 +6,15 @@ import BaseRetrievalPipeline from "./BaseRetrievalPipeline.js";
export default class RerankerRetrievalPipeline extends BaseRetrievalPipeline {
private async _retrieveInitial(): Promise<Chunk[]> {
const { input, nRetrieve, filterDirectory } = this.options;
const { input, nRetrieve, filterDirectory, includeEmbeddings } =
this.options;
let retrievalResults: Chunk[] = [];
const ftsChunks = await this.retrieveFts(input, nRetrieve);
const embeddingsChunks = await this.retrieveEmbeddings(input, nRetrieve);
const embeddingsChunks = includeEmbeddings
? await this.retrieveEmbeddings(input, nRetrieve)
: [];
const recentlyEditedFilesChunks =
await this.retrieveAndChunkRecentlyEditedFiles(nRetrieve);

View file

@ -1,8 +1,10 @@
import path from "path";
import { BranchAndDir, ContextItem, ContextProviderExtras } from "../../";
import TransformersJsEmbeddingsProvider from "../../indexing/embeddings/TransformersJsEmbeddingsProvider";
import { resolveRelativePathInWorkspace } from "../../util/ideUtils";
import { INSTRUCTIONS_BASE_ITEM } from "../providers/utils";
import { RetrievalPipelineOptions } from "./pipelines/BaseRetrievalPipeline";
import NoRerankerRetrievalPipeline from "./pipelines/NoRerankerRetrievalPipeline";
import RerankerRetrievalPipeline from "./pipelines/RerankerRetrievalPipeline";
@ -21,15 +23,17 @@ export async function retrieveContextItemsFromEmbeddings(
// transformers.js not supported in JetBrains IDEs right now
const isJetBrainsAndTransformersJs =
extras.embeddingsProvider.id === TransformersJsEmbeddingsProvider.model &&
extras.embeddingsProvider.providerName ===
TransformersJsEmbeddingsProvider.providerName &&
(await extras.ide.getIdeInfo()).ideType === "jetbrains";
if (isJetBrainsAndTransformersJs) {
throw new Error(
"The 'transformers.js' context provider is not currently supported in JetBrains. " +
"For now, you can use Ollama to set up local embeddings, or use our 'free-trial' " +
"embeddings provider. See here to learn more: " +
"https://docs.continue.dev/walkthroughs/codebase-embeddings#embeddings-providers",
void extras.ide.showToast(
"warning",
"Codebase retrieval is limited when `embeddingsProvider` is empty or set to `transformers.js` in JetBrains. " +
"You can use Ollama to set up local embeddings, use our 'free-trial', " +
"or configure your own. See here to learn more: " +
"https://docs.continue.dev/customize/model-types/embeddings",
);
}
@ -85,6 +89,7 @@ export async function retrieveContextItemsFromEmbeddings(
input: extras.fullInput,
llm: extras.llm,
config: extras.config,
includeEmbeddings: !isJetBrainsAndTransformersJs,
};
const pipeline = new pipelineType(pipelineOptions);

View file

View file

@ -1,22 +0,0 @@
---
title: config.json Reference
keywords: [config.json, configuration, options]
---
import Schema from "@site/static/schemas/config.json";
import JSONSchemaViewer from "@theme/JSONSchemaViewer";
# Configuration options
The following shows the JSON Schema definition for `config.json`.
You can also define a partial `config.json` object in a file called `.continuerc.json` at the root of your workspace. This will be applied on top of any configuration from `config.json`.
<JSONSchemaViewer
schema={Schema}
resolverOptions={{
jsonPointer: "#/definitions/SerializedContinueConfig",
}}
/>
[View the source](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json)

View file

@ -0,0 +1,201 @@
interface BaseCompletionOptions {
stream?: boolean; // Whether to stream the LLM response. Only respected by the 'anthropic' provider. Defaults to true.
temperature?: number; // The temperature of the completion, controlling randomness.
topP?: number; // The top-p value, which controls the cumulative probability for nucleus sampling.
topK?: number; // The top-k value, which restricts sampling to the top k tokens.
presencePenalty?: number; // The presence penalty, influencing the likelihood of generating similar tokens.
frequencePenalty?: number; // The frequency penalty, affecting the likelihood of repeating tokens.
mirostat?: number; // Mirostat sampling option to control perplexity (0 = disabled, 1 = Mirostat, 2 = Mirostat 2.0). Only supported by Ollama, LM Studio, and llama.cpp providers.
stop?: string[]; // Array of stop tokens that wil dl terminate the completion.
maxTokens?: number; // The maximum number of tokens to generate. Defaults to 600.
numThreads?: number; // The number of threads used in the generation process. Only available for the Ollama provider.
keepAlive?: number; // The number of seconds to keep the model loaded after the last request. Defaults to 1800 seconds (30 minutes).
}
interface RequestOptions {
timeout?: number; // Set the timeout for each request to the LLM. Default is 7200 seconds.
verifySsl?: boolean; // Whether to verify SSL certificates for requests.
caBundlePath?: string | string[]; // Path to a custom CA bundle for HTTP requests.
proxy?: string; // Proxy URL to use for HTTP requests.
headers?: Record<string, string>; // Headers for HTTP requests.
extraBodyProperties?: Record<string, unknown>; // Properties to merge with the HTTP request body.
noProxy?: string[]; // List of hostnames that should bypass the specified proxy.
clientCertificate?: {
cert: string; // Path to the client certificate file.
key: string; // Path to the client certificate key file.
passphrase?: string; // Passphrase for the client certificate key file, if required.
}; // Client certificate for HTTP requests.
}
interface ModelDescription {
title: string; // Title for the model.
provider:
| "openai"
| "free-trial"
| "etc" // Provider of the model, used to determine model type and interaction method.
model: string; // Model name, used for prompt template auto-detection.
apiKey?: string; // API key for providers like OpenAI, Anthropic, Cohere, etc.
apiBase?: string; // Base URL of the LLM API.
region?: string; // Region where the model is hosted.
profile?: string; // AWS security profile.
modelArn?: string; // AWS ARN for the imported model.
contextLength?: number; // Maximum context length of the LLM in tokens.
maxStopWords?: number; // Maximum stop words accepted by the API.
template?:
| "llama2"
| "alpaca"
| "zephyr"
| "phi2"
| "phind"
| "anthropic"
| "chatml"
| "none"
| "deepseek"
| "openchat"
| "xwin-coder"
| "neural-chat"
| "codellama-70b"
| "llava"
| "gemma"
| "llama3"; // Chat template for message formatting, with auto-detection option.
promptTemplates?: Record<string, string>; // Mapping of prompt template names to prompt strings.
completionOptions?: BaseCompletionOptions; // Options for the completion endpoint.
systemMessage?: string; // System message that will precede responses from the LLM.
requestOptions?: RequestOptions; // HTTP request options for the LLM.
apiType?: "openai" | "azure"; // API type (OpenAI or Azure).
apiVersion?: string; // Azure OpenAI API version (e.g., 2023-07-01-preview).
engine?: string; // Azure OpenAI engine.
capabilities?: {
uploadImage?: boolean; // Indicates if the model can upload images.
};
}
type ContextProviderName = "diff" | "terminal" | "debugger" | "open" | "google" | "search" | "http" | "codebase" | "problems" | "folder" | "issue" | "docs" | "tree" | "highlights" | "outline" | "postgres" | "code" | "currentFile" | "url" | "database" | "os" | "repo-map" | "greptile" | "web" | string
interface ContextProviderWithParams {
name: ContextProviderName
params?: Record<string, any>; // Parameters for the context provider. DEFAULT {}
}
interface SerializedContinueConfig {
completionOptions?: BaseCompletionOptions; // Default completion options, overridden by model-specific options.
requestOptions?: RequestOptions; // Default HTTP request options for models and context providers.
models?: ModelDescription[]; // Model configurations, defaulting to GPT-4 (trial) with free-trial provider.
systemMessage?: string; // System message preceding all LLM responses.
// TAB AUTOCOMPLETE
tabAutocompleteModel?: ModelDescription | ModelDescription[]; // Model for tab autocompletion, defaulting to Ollama instance.
tabAutocompleteOptions?: {
disable?: boolean; // If true, disables tab autocomplete. Default is false.
useCopyBuffer?: boolean; // If true, includes the copy buffer in prompt.
useFileSuffix?: boolean; // If true, includes file suffix in prompt.
maxPromptTokens?: number; // Max tokens for prompt.
debounceDelay?: number; // Delay in ms before triggering autocomplete.
maxSuffixPercentage?: number; // Max percentage of prompt for suffix.
prefixPercentage?: number; // Percentage of input for prefix.
template?: string; // Template string for autocomplete, using Mustache templating.
multilineCompletions?: "always" | "never" | "auto"; // Controls multiline completions.
useCache?: boolean; // If true, caches completions.
onlyMyCode?: boolean; // If true, only includes code within repository.
useOtherFiles?: boolean; // If true, includes snippets from other files. Default is true.
disableInFiles?: string[]; // Glob patterns for files where autocomplete is disabled.
};
// EMBEDDINGS
disableIndexing?: boolean; // If true, prevents codebase indexing, mainly for debugging.
embeddingsProvider?: {
provider: "huggingface-tei" | "transformers.js" | "ollama" | "openai" | "cohere" | "free-trial" | "gemini" | "voyage" | "nvidia" | "bedrock" | "sagemaker" | "vertex"; // Embeddings provider for codebase embeddings.
model?: string; // Model name for embeddings.
apiKey?: string; // API key for the provider.
apiBase?: string; // Base URL for API requests.
requestOptions?: RequestOptions; // Request options for embeddings provider.
maxChunkSize?: number; // Max tokens per document chunk, min 128.
maxBatchSize?: number; // Max chunks per request, min 1.
region?: string; // Region where the model is hosted.
profile?: string; // AWS security profile.
};
// RERANKING
reranker?: {
name: "cohere" | "voyage" | "llm" | "free-trial" | "huggingface-tei"; // Reranker name.
params?: Record<string, any>; // Additional parameters for reranking.
};
// COMMANDS
slashCommands?: {
name: "issue" | "share" | "cmd" | "edit" | "comment" | "http" | "commit" | "review" | string; // Slash command name.
description: string; // Description of the command.
step?: string; // Deprecated. Used for built-in commands; set name for pre-configured options.
params?: Record<string, any>; // Additional parameters for the command.
}; // Custom slash commands for sidebar actions.
customCommands?: {
name: string; // Name of the custom command.
prompt: string; // Prompt for the command.
description: string; // Description of the command.
}[]; // Custom commands for prompt shortcuts, with name, description, and prompt.
// CONTEXT_PROVIDERS
contextProviders?: ContextProviderWithParams[]; // List of context providers for LLM context.
// DOCS
docs?: {
title: string; // Title of the documentation site.
startUrl: string; // Starting URL for indexing.
rootUrl?: string; // Root URL of the site.
maxDepth?: number; // Maximum depth for crawling.
favicon?: string; // URL for site favicon, defaults to /favicon.ico from startUrl.
}[]; // List of documentation sites to index.
// UI
disableSessionTitles?: boolean; // If true, prevents generating session summary titles.
ui?: {
codeBlockToolbarPosition?: "top" | "bottom"; // Toolbar position in code blocks, default is "top".
fontSize?: number; // Font size for UI elements.
displayRawMarkdown?: boolean; // If true, displays raw markdown in output.
showChatScrollbar?: boolean; // If true, displays scrollbar in chat window.
};
// ANALYTICS
allowAnonymousTelemetry?: boolean; // If true, anonymous telemetry is collected. Default is true.
analytics?: {
provider: "posthog" | "logstash"; // Analytics provider.
url?: string; // URL for analytics data.
clientKey?: string; // Client key for analytics.
};
// AUTH
userToken?: string; // Optional token to identify the user.
// EXPERIMENTAL
experimental?: {
defaultContext?: (ContextProviderWithParams & { query?: string })[]; // Default context for the LLM.
modelRoles?: {
inlineEdit?: string; // Model title for inline edits.
applyCodeBlock?: string; // Model title for applying code blocks.
repoMapFileSelection?: string; // Model title for repo map selections.
};
readResponseTTS?: boolean; // If true, reads LLM responses aloud with TTS. Default is true.
promptPath?: string; // Path for prompt configuration.
quickActions?: {
title: string; // Display title for the quick action.
prompt: string; // Prompt for quick action.
sendToChat?: boolean; // If true, sends result to chat; else inserts in document. Default is false.
}[]; // Array of custom quick actions for code lens.
contextMenuPrompts?: {
comment?: string; // Prompt for commenting code.
docstring?: string; // Prompt for adding docstrings.
fix?: string; // Prompt for fixing code.
optimize?: string; // Prompt for optimizing code.
fixGrammar?: string; // Prompt for fixing grammar or spelling.
};
};
}

View file

@ -5,7 +5,11 @@ keywords: [talk, embeddings, reranker, codebase, experimental]
# @Codebase
Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally with `all-MiniLM-L6-v2` and stored locally in `~/.continue/index`.
Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally using `transformers.js` and stored locally in `~/.continue/index`.
:::info[`transformers.js cannot be used in JetBrains`]
Currently, `transformers.js` cannot be used in JetBrains IDEs. However, you can select a differet embeddings model from [the list here](../model-types/embeddings.md).
:::
Currently, the codebase retrieval feature is available as the "codebase" and "folder" context providers. You can use them by typing `@Codebase` or `@Folder` in the input box, and then asking a question. The contents of the input box will be compared with the embeddings from the rest of the codebase (or folder) to determine relevant files.

View file

@ -9,6 +9,10 @@ An "embeddings model" is trained to convert a piece of text into a vector, which
In Continue, embeddings are generated during indexing and then used by [@Codebase](../deep-dives/codebase.md) to perform similarity search over your codebase.
:::info[Default model (VS Code only)]
`transformers.js` is used as a default embeddings model in VS Code. In JetBrains, there currently is no default.
:::
## Recommended embedding models
If you have the ability to use any model, we recommend `voyage-code-2`, which is listed below along with the rest of the options for embeddings models.
@ -35,7 +39,7 @@ See [here](../model-providers/top-level/ollama.md#embeddings-model) for instruct
### Transformers.js (currently VS Code only)
[Transformers.js](https://huggingface.co/docs/transformers.js/index) is a JavaScript port of the popular [Transformers](https://huggingface.co/transformers/) library. It allows embeddings to be calculated entirely locally. The model used is `all-MiniLM-L6-v2`, which is shipped alongside the Continue extension and used as the default when you have not explicitly configured an embeddings provider.
[Transformers.js](https://huggingface.co/docs/transformers.js/index) is a JavaScript port of the popular [Transformers](https://huggingface.co/transformers/) library. It allows embeddings to be calculated entirely locally. The model used is `all-MiniLM-L6-v2`, which is shipped alongside the Continue extension.
```json title="config.json"
{
@ -72,4 +76,4 @@ See [here](../model-providers/top-level/gemini.md#embeddings-model) for instruct
### Vertex
See [here](../model-providers/more/vertex.md#embeddings-model) for instructions on how to use Vertex for embeddings.
See [here](../model-providers/more/vertex.md#embeddings-model) for instructions on how to use Vertex for embeddings.

View file

@ -34,7 +34,7 @@ const config = {
locales: ["en"],
},
themes: [["docusaurus-json-schema-plugin", {}]],
themes: [],
presets: [
[

View file

@ -21,7 +21,6 @@
"@docusaurus/preset-classic": "^3.5.2",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.1.0",
"docusaurus-json-schema-plugin": "^1.11.0",
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
@ -46,4 +45,4 @@
"engines": {
"node": ">=20.11.0"
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -3,7 +3,7 @@ pluginGroup=com.github.continuedev.continueintellijextension
pluginName=continue-intellij-extension
pluginRepositoryUrl=https://github.com/continuedev/continue
# SemVer format -> https://semver.org
pluginVersion=0.0.77
pluginVersion=0.0.78
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild=223
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension

View file

@ -71,6 +71,7 @@ class ContinuePluginStartupActivity : StartupActivity, Disposable, DumbAware {
override fun runActivity(project: Project) {
removeShortcutFromAction(getPlatformSpecificKeyStroke("J"))
removeShortcutFromAction(getPlatformSpecificKeyStroke("shift J"))
removeShortcutFromAction(getPlatformSpecificKeyStroke("I"))
initializePlugin(project)
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -353,6 +353,7 @@
"promptTemplates": {
"title": "Prompt Templates",
"markdownDescription": "A mapping of prompt template name ('edit' is currently the only one used in Continue) to a string giving the prompt template. See [here](https://docs.continue.dev/model-setup/configuration#customizing-the-edit-prompt) for an example.",
"x-intellij-html-description": "A mapping of prompt template name ('edit' is currently the only one used in Continue) to a string giving the prompt template. See <a href='https://docs.continue.dev/model-setup/configuration#customizing-the-edit-prompt'>here</a> for an example.",
"type": "object",
"additionalProperties": {
"type": "string"
@ -401,6 +402,7 @@
"apiType": {
"title": "Api Type",
"markdownDescription": "OpenAI API type, either `openai` or `azure`",
"x-intellij-html-description": "OpenAI API type, either <code>openai</code> or <code>azure</code>",
"enum": [
"openai",
"azure"
@ -670,16 +672,16 @@
"anyOf": [
{
"enum": [
"llama2-7b",
"llama2-13b",
"llama3.1-8b",
"llama3.1-70b",
"llama3.1-405b",
"llama3-8b",
"llama3-70b",
"codellama-7b",
"codellama-13b",
"codellama-34b",
"llama3.1-8b",
"llama3.1-70b",
"llama3.1-405b"
"llama2-7b",
"llama2-13b"
]
},
{
@ -687,7 +689,8 @@
}
]
},
"markdownDescription": "Select a pre-defined option, or find an exact model ID from Replicate [here](https://replicate.com/collections/streaming-language-models)."
"markdownDescription": "Select a pre-defined option, or find an exact model ID from Replicate [here](https://replicate.com/collections/streaming-language-models).",
"x-intellij-html-description": "Select a pre-defined option, or find an exact model ID from Replicate <a href='https://replicate.com/collections/streaming-language-models'>here</a>."
}
}
},
@ -963,7 +966,7 @@
"then": {
"properties": {
"model": {
"markdownDescription": "SageMaker endpoint name"
"description": "SageMaker endpoint name"
}
}
}
@ -1071,9 +1074,6 @@
"llama3.1-8b",
"llama3.1-70b",
"llama3.1-405b",
"llama3.2-3b",
"llama3.2-11b",
"llama3.2-90b",
"codellama-7b",
"codellama-13b",
"codellama-34b",
@ -1085,7 +1085,8 @@
"type": "string"
}
],
"markdownDescription": "Select a pre-defined option, or find an exact model string from Together AI [here](https://docs.together.ai/docs/inference-models)."
"markdownDescription": "Select a pre-defined option, or find an exact model string from Together AI [here](https://docs.together.ai/docs/inference-models).",
"x-intellij-html-description": "Select a pre-defined option, or find an exact model string from Together AI <a href='https://docs.together.ai/docs/inference-models'>here</a>."
}
}
}
@ -1106,7 +1107,8 @@
"then": {
"properties": {
"model": {
"markdownDescription": "Find the model name you want to use from DeepInfra [here](https://deepinfra.com/models?type=text-generation)."
"markdownDescription": "Find the model name you want to use from DeepInfra [here](https://deepinfra.com/models?type=text-generation).",
"x-intellij-html-description": "Find the model name you want to use from DeepInfra <a href='https://deepinfra.com/models?type=text-generation'>here</a>."
}
}
}
@ -1147,10 +1149,6 @@
"llama3.1-8b",
"llama3.1-70b",
"llama3.1-405b",
"llama3.2-1b",
"llama3.2-3b",
"llama3.2-11b",
"llama3.2-90b",
"phind-codellama-34b",
"wizardcoder-7b",
"wizardcoder-13b",
@ -1206,10 +1204,6 @@
"llama3.1-8b",
"llama3.1-70b",
"llama3.1-405b",
"llama3.2-1b",
"llama3.2-3b",
"llama3.2-11b",
"llama3.2-90b",
"phi-2",
"phind-codellama-34b",
"wizardcoder-7b",
@ -1232,7 +1226,8 @@
"type": "string"
}
],
"markdownDescription": "Select a pre-defined option, or find the exact model tag for an Ollama model [here](https://ollama.ai/library)."
"markdownDescription": "Select a pre-defined option, or find the exact model tag for an Ollama model [here](https://ollama.ai/library).",
"x-intellij-html-description": "Select a pre-defined option, or find the exact model tag for an Ollama model <a href='https://ollama.ai/library'>here</a>."
}
}
}
@ -1364,10 +1359,6 @@
"llama3.1-8b",
"llama3.1-70b",
"llama3.1-405b",
"llama3.2-1b",
"llama3.2-3b",
"llama3.2-11b",
"llama3.2-90b",
"AUTODETECT"
]
}
@ -1593,10 +1584,6 @@
"llama3.1-8b",
"llama3.1-70b",
"llama3.1-405b",
"llama3.2-1b",
"llama3.2-3b",
"llama3.2-11b",
"llama3.2-90b",
"phind-codellama-34b",
"wizardcoder-7b",
"wizardcoder-13b",
@ -1653,28 +1640,28 @@
},
"then": {
"properties": {
"apiBase": {
"watsonxUrl": {
"type": "string"
},
"apiKey": {
"watsonxApiKey": {
"type": "string"
},
"apiVersion": {
"watsonxApiVersion": {
"type": "string"
},
"projectId": {
"watsonxProjectId": {
"type": "string"
},
"deploymentId": {
"watsonxStopToken": {
"type": "string"
},
"watsonxFullUrl": {
"type": "string"
},
"model": {
"enum": [
"ibm/granite-13b-chat-v2",
"ibm/granite-3b-code-instruct",
"ibm/granite-8b-code-instruct",
"ibm/granite-20b-code-instruct",
"ibm/granite-34b-code-instruct",
"mistralai/mistral-large",
"meta-llama/llama-3-8b-instruct",
"meta-llama/llama-3-70b-instruct"
@ -1682,9 +1669,8 @@
}
},
"required": [
"apiBase",
"apiKey",
"apiVersion"
"watsonxUrl",
"watsonxProjectId"
]
}
},
@ -1709,16 +1695,14 @@
"enum": [
"llama3.1-8b",
"llama3.1-70b",
"llama3.1-405b",
"llama3.2-1b",
"llama3.2-3b"
"llama3.1-405b"
]
},
{
"type": "string"
}
],
"markdownDescription": "Select a pre-defined option."
"description": "Select a pre-defined option."
}
}
}
@ -1850,11 +1834,12 @@
"properties": {
"recap": {
"type": "boolean",
"markdownDescription": "If recap is set to `true`, Continue will generate a summary of the changes after making the edit."
"markdownDescription": "If recap is set to `true`, Continue will generate a summary of the changes after making the edit.",
"x-intellij-html-description": "If recap is set to <code>true</code>, Continue will generate a summary of the changes after making the edit."
},
"tokenLimit": {
"type": "integer",
"markdownDescription": "By default, Continue doesn't let you edit extremely large ranges (beyond 1,200 tokens), because the LLM is unlikely to succeed. But if you would like to override this limit with the understanding of possible failure you may do so here."
"description": "By default, Continue doesn't let you edit extremely large ranges (beyond 1,200 tokens), because the LLM is unlikely to succeed. But if you would like to override this limit with the understanding of possible failure you may do so here."
}
}
}
@ -1877,7 +1862,8 @@
"properties": {
"outputDir": {
"type": "string",
"markdownDescription": "If outputDir is set to `.` or begins with `./` or `.\\`, file will be saved to the current workspace or a subdirectory thereof, respectively. `~` can similarly be used to specify the user's home directory."
"markdownDescription": "If outputDir is set to `.` or begins with `./` or `.\\`, file will be saved to the current workspace or a subdirectory thereof, respectively. `~` can similarly be used to specify the user's home directory.",
"x-intellij-html-description": "If outputDir is set to <code>.</code> or begins with <code>./</code> or <code>.\\</code>, file will be saved to the current workspace or a subdirectory thereof, respectively. <code>~</code> can similarly be used to specify the user's home directory."
}
}
}
@ -1900,7 +1886,8 @@
"properties": {
"includeUnstaged": {
"type": "boolean",
"markdownDescription": "If includeUnstaged is set to true, then unstaged changes are also included in the prompt, otherwise only staged changes are included. Default is false."
"markdownDescription": "If set to `true`, then unstaged changes are also included in the prompt, otherwise only staged changes are included. Default is `false`.",
"x-intellij-html-description": "If set to <code>true</code>, then unstaged changes are also included in the prompt, otherwise only staged changes are included. Default is <code>false</code>."
}
}
}
@ -2377,7 +2364,8 @@
},
"apiVersion": {
"type": "integer",
"markdownDescription": "This context provider supports both Jira API version 2 and 3. It will use version 3 by default since that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the `apiVersion` property."
"markdownDescription": "This context provider supports both Jira API version 2 and 3. It will use version 3 by default since that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the `apiVersion` property.",
"x-intellij-html-description": "This context provider supports both Jira API version 2 and 3. It will use version 3 by default since that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the <code>apiVersion</code> property."
},
"requestOptions": {
"title": "Request Options",
@ -2627,13 +2615,15 @@
},
"allowAnonymousTelemetry": {
"title": "Allow Anonymous Telemetry",
"markdownDescription": "If this field is set to True, we will collect anonymous telemetry as described in the documentation page on telemetry. If set to `false`, we will not collect any data. Learn more in [the docs](https://docs.continue.dev/telemetry).",
"markdownDescription": "If this field is set to `true`, we will collect anonymous telemetry as described in the documentation page on telemetry. If set to `false`, we will not collect any data. Learn more in [the docs](https://docs.continue.dev/telemetry).",
"x-intellij-html-description": "If this field is set to `true`, we will collect anonymous telemetry as described in the documentation page on telemetry. If set to `false`, we will not collect any data. Learn more in <a href='https://docs.continue.dev/telemetry'>the docs</a>.",
"default": true,
"type": "boolean"
},
"models": {
"title": "Models",
"markdownDescription": "Learn about setting up models in [the documentation](https://docs.continue.dev/model-setup/overview).",
"x-intellij-html-description": "Learn about setting up models in <a href='https://docs.continue.dev/model-setup/overview'>the documentation</a>.",
"default": [
{
"title": "GPT-4 (trial)",
@ -2682,6 +2672,7 @@
"slashCommands": {
"title": "Slash Commands",
"markdownDescription": "An array of slash commands that let you take custom actions from the sidebar. Learn more in the [documentation](https://docs.continue.dev/customization/slash-commands).",
"x-intellij-html-description": "An array of slash commands that let you take custom actions from the sidebar. Learn more in the <a href='https://docs.continue.dev/customization/slash-commands'>documentation</a>.",
"default": [],
"type": "array",
"items": {
@ -2690,7 +2681,8 @@
},
"customCommands": {
"title": "Custom Commands",
"markdownDescription": "An array of custom commands that allow you to reuse prompts. Each has name, description, and prompt properties. When you enter /<name> in the text input, it will act as a shortcut to the prompt. Learn more in the [documentation](https://docs.continue.dev/customization/slash-commands#custom-commands-use-natural-language).",
"markdownDescription": "An array of custom commands that allow you to reuse prompts. Each has name, description, and prompt properties. When you enter `/<name>` in the text input, it will act as a shortcut to the prompt. Learn more in the [documentation](https://docs.continue.dev/customization/slash-commands#custom-commands-use-natural-language).",
"x-intellij-html-description": "An array of custom commands that allow you to reuse prompts. Each has name, description, and prompt properties. When you enter <code>/<name></code> in the text input, it will act as a shortcut to the prompt. Learn more in the <a href='https://docs.continue.dev/customization/slash-commands#custom-commands-use-natural-language'>documentation</a>.",
"default": [
{
"name": "test",
@ -2706,6 +2698,7 @@
"contextProviders": {
"title": "Context Providers",
"markdownDescription": "A list of ContextProvider objects that can be used to provide context to the LLM by typing '@'. Read more about ContextProviders in [the documentation](https://docs.continue.dev/customization/context-providers).",
"x-intellij-html-description": "A list of ContextProvider objects that can be used to provide context to the LLM by typing '@'. Read more about ContextProviders in <a href='https://docs.continue.dev/customization/context-providers'>the documentation</a>.",
"default": [],
"type": "array",
"items": {
@ -2720,18 +2713,21 @@
"disableIndexing": {
"title": "Disable Indexing",
"markdownDescription": "If set to `true`, Continue will not index the codebase. This is mainly used for debugging purposes.",
"x-intellij-html-description": "If set to <code>true</code>, Continue will not index the codebase. This is mainly used for debugging purposes.",
"default": false,
"type": "boolean"
},
"disableSessionTitles": {
"title": "Disable Session Titles",
"markdownDescription": "If set to `true`, Continue will not make extra requests to the LLM to generate a summary title of each session.",
"x-intellij-html-description": "If set to <code>true</code>, Continue will not make extra requests to the LLM to generate a summary title of each session.",
"default": false,
"type": "boolean"
},
"embeddingsProvider": {
"title": "Embeddings Provider",
"markdownDescription": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/features/codebase-embeddings#embeddings-providers).",
"markdownDescription": "The method that will be used to generate codebase embeddings. The default is `transformers.js`, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/features/codebase-embeddings#embeddings-providers).\n\n **Note**: `transformers.js` currently cannot be used in JetBrains.",
"x-intellij-html-description": "The method that will be used to generate codebase embeddings. The default is <code>transformers.js</code>, which will run locally in the browser. Learn about the other options <a href='https://docs.continue.dev/features/codebase-embeddings#embeddings-providers'>here</a>.<br><br><strong>Note</strong>: <code>transformers.js</code> currently cannot be used in JetBrains.",
"type": "object",
"properties": {
"provider": {
@ -2831,7 +2827,7 @@
"then": {
"properties": {
"model": {
"markdownDescription": "SageMaker endpoint name"
"description": "SageMaker endpoint name"
}
},
"required": [
@ -2855,10 +2851,10 @@
"then": {
"properties": {
"projectId": {
"markdownDescription": "The name of your vertexAI project"
"description": "The name of your VertexAI project"
},
"region": {
"markdownDescription": "The region your vertexAI model is hosted in - typically central1",
"description": "The region your VertexAI model is hosted in - typically central1",
"default": "central1"
},
"model": {
@ -2876,7 +2872,7 @@
},
"reranker": {
"title": "Reranker",
"markdownDescription": "The reranker is responsible for selecting the final results when retrieving snippets from your codebase.",
"description": "The reranker is responsible for selecting the final results when retrieving snippets from your codebase.",
"type": "object",
"properties": {
"name": {
@ -3026,7 +3022,7 @@
},
"truncate": {
"type": "boolean",
"description": "Wether to truncate long sequences to the maximum allowed context length.",
"description": "Whether to truncate long sequences to the maximum allowed context length.",
"default": false
},
"truncation_direction": {
@ -3034,7 +3030,7 @@
"Right",
"Left"
],
"markdownDescription": "Wether to truncate sequences from the `left` or `right`.",
"description": "Whether to truncate sequences from the left or right.",
"default": "Right"
}
},
@ -3062,6 +3058,7 @@
"tabAutocompleteModel": {
"title": "Tab Autocomplete Model",
"markdownDescription": "The model used for tab autocompletion. If undefined, Continue will default to using starcoder2:3b on a local Ollama instance.\n\n*IMPORTANT*:\n\nIf you use a custom model, ensure that it is one trained for fill-in-the-middle completions. An instruct model is typically not well-suited to autocomplete and you may receive unsatisfactory completions.",
"x-intellij-html-description": "The model used for tab autocompletion. If undefined, Continue will default to using starcoder2:3b on a local Ollama instance.<br><br><i>IMPORTANT</i>:<br><br>If you use a custom model, ensure that it is one trained for fill-in-the-middle completions. An instruct model is typically not well-suited to autocomplete and you may receive unsatisfactory completions.",
"default": {
"title": "Tab Autocomplete Model",
"provider": "ollama",
@ -3083,6 +3080,7 @@
"title": "TabAutocompleteOptions",
"type": "object",
"markdownDescription": "These options let you customize your tab-autocomplete experience. Read about all options in [the docs](https://docs.continue.dev/features/tab-autocomplete#configuration-options).",
"x-intellij-html-description": "These options let you customize your tab-autocomplete experience. Read about all options in <a href='https://docs.continue.dev/features/tab-autocomplete#configuration-options'>the docs</a>.",
"properties": {
"disable": {
"type": "boolean",
@ -3169,6 +3167,7 @@
"showChatScrollbar": {
"title": "Show Chat Scrollbar",
"markdownDescription": "If set to `true`, a scrollbar will be displayed in the chat window to navigate through messages.",
"x-intellij-html-description": "If set to <code>true</code>, a scrollbar will be displayed in the chat window to navigate through messages.",
"default": false,
"type": "boolean"
}

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "0.9.223",
"version": "0.9.222",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "0.9.223",
"version": "0.9.222",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",

View file

@ -606,4 +606,4 @@
"ws": "^8.13.0",
"yarn": "^1.22.21"
}
}
}

View file

@ -85,7 +85,7 @@ function isWin() {
async function package(target, os, arch, exe) {
console.log("[info] Packaging extension for target ", target);
// Copy config_schema.json to config.json in docs and intellij
// Copy config_schema.json to config.json in intellij
copyConfigSchema();
// Install node_modules
@ -153,10 +153,9 @@ async function package(target, os, arch, exe) {
// onnx runtime bindngs
`bin/napi-v3/${os}/${arch}/onnxruntime_binding.node`,
`bin/napi-v3/${os}/${arch}/${
os === "darwin"
? "libonnxruntime.1.14.0.dylib"
: os === "linux"
`bin/napi-v3/${os}/${arch}/${os === "darwin"
? "libonnxruntime.1.14.0.dylib"
: os === "linux"
? "libonnxruntime.so.1.14.0"
: "onnxruntime.dll"
}`,
@ -193,17 +192,15 @@ async function package(target, os, arch, exe) {
// out/node_modules (to be accessed by extension.js)
`out/node_modules/@vscode/ripgrep/bin/rg${exe}`,
`out/node_modules/@esbuild/${
target === "win32-arm64"
? "esbuild.exe"
: target === "win32-x64"
`out/node_modules/@esbuild/${target === "win32-arm64"
? "esbuild.exe"
: target === "win32-x64"
? "win32-x64/esbuild.exe"
: `${target}/bin/esbuild`
}`,
`out/node_modules/@lancedb/vectordb-${
os === "win32"
? "win32-x64-msvc"
: `${target}${os === "linux" ? "-gnu" : ""}`
`out/node_modules/@lancedb/vectordb-${os === "win32"
? "win32-x64-msvc"
: `${target}${os === "linux" ? "-gnu" : ""}`
}/index.node`,
`out/node_modules/esbuild/lib/main.js`,
`out/node_modules/esbuild/bin/esbuild`,

View file

@ -48,11 +48,7 @@ const exe = os === "win32" ? ".exe" : "";
(async () => {
console.log("[info] Packaging extension for target ", target);
// Copy config_schema.json to config.json in docs and intellij
fs.copyFileSync(
"config_schema.json",
path.join("..", "..", "docs", "static", "schemas", "config.json"),
);
// Copy config_schema.json to config.json in intellij
fs.copyFileSync(
"config_schema.json",
path.join(
@ -505,12 +501,11 @@ const exe = os === "win32" ? ".exe" : "";
// onnx runtime bindngs
`bin/napi-v3/${os}/${arch}/onnxruntime_binding.node`,
`bin/napi-v3/${os}/${arch}/${
os === "darwin"
? "libonnxruntime.1.14.0.dylib"
: os === "linux"
? "libonnxruntime.so.1.14.0"
: "onnxruntime.dll"
`bin/napi-v3/${os}/${arch}/${os === "darwin"
? "libonnxruntime.1.14.0.dylib"
: os === "linux"
? "libonnxruntime.so.1.14.0"
: "onnxruntime.dll"
}`,
"builtin-themes/dark_modern.json",
@ -545,17 +540,15 @@ const exe = os === "win32" ? ".exe" : "";
// out/node_modules (to be accessed by extension.js)
`out/node_modules/@vscode/ripgrep/bin/rg${exe}`,
`out/node_modules/@esbuild/${
target === "win32-arm64"
? "esbuild.exe"
: target === "win32-x64"
? "win32-x64/esbuild.exe"
: `${target}/bin/esbuild`
`out/node_modules/@esbuild/${target === "win32-arm64"
? "esbuild.exe"
: target === "win32-x64"
? "win32-x64/esbuild.exe"
: `${target}/bin/esbuild`
}`,
`out/node_modules/@lancedb/vectordb-${
os === "win32"
? "win32-x64-msvc"
: `${target}${os === "linux" ? "-gnu" : ""}`
`out/node_modules/@lancedb/vectordb-${os === "win32"
? "win32-x64-msvc"
: `${target}${os === "linux" ? "-gnu" : ""}`
}/index.node`,
`out/node_modules/esbuild/lib/main.js`,
`out/node_modules/esbuild/bin/esbuild`,

View file

@ -11,10 +11,6 @@ const {
const continueDir = path.join(__dirname, "..", "..", "..");
function copyConfigSchema() {
fs.copyFileSync(
"config_schema.json",
path.join("..", "..", "docs", "static", "schemas", "config.json"),
);
fs.copyFileSync(
"config_schema.json",
path.join(