From f425cadcda1cb1429bcef0026e333ffb942048c7 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 28 Oct 2024 12:02:31 -0700 Subject: [PATCH 01/15] docs config md part 1 --- docs/docs/customize/config.md | 0 docs/docs/customize/config.mdx | 22 - docs/docs/customize/config.ts | 201 + docs/docusaurus.config.js | 2 +- docs/package.json | 3 +- docs/static/schemas/config.json | 3340 ----------------- extensions/vscode/package-lock.json | 4 +- .../scripts/prepackage-cross-platform.js | 23 +- extensions/vscode/scripts/prepackage.js | 35 +- extensions/vscode/scripts/utils.js | 4 - 10 files changed, 229 insertions(+), 3405 deletions(-) create mode 100644 docs/docs/customize/config.md delete mode 100644 docs/docs/customize/config.mdx create mode 100644 docs/docs/customize/config.ts delete mode 100644 docs/static/schemas/config.json diff --git a/docs/docs/customize/config.md b/docs/docs/customize/config.md new file mode 100644 index 000000000..e69de29bb diff --git a/docs/docs/customize/config.mdx b/docs/docs/customize/config.mdx deleted file mode 100644 index cac96ceb6..000000000 --- a/docs/docs/customize/config.mdx +++ /dev/null @@ -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`. - - - -[View the source](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json) diff --git a/docs/docs/customize/config.ts b/docs/docs/customize/config.ts new file mode 100644 index 000000000..31a9c94b6 --- /dev/null +++ b/docs/docs/customize/config.ts @@ -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; // Headers for HTTP requests. + extraBodyProperties?: Record; // 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; // 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; // 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; // 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; // 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. + }; + }; +} diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 5af3b8a2d..2b4c39510 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -34,7 +34,7 @@ const config = { locales: ["en"], }, - themes: [["docusaurus-json-schema-plugin", {}]], + themes: [], presets: [ [ diff --git a/docs/package.json b/docs/package.json index 423c60bde..23af5df45 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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" } -} +} \ No newline at end of file diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json deleted file mode 100644 index 32b59486e..000000000 --- a/docs/static/schemas/config.json +++ /dev/null @@ -1,3340 +0,0 @@ -{ - "title": "config.json", - "$ref": "#/definitions/SerializedContinueConfig", - "definitions": { - "BaseCompletionOptions": { - "title": "BaseCompletionOptions", - "type": "object", - "properties": { - "stream": { - "title": "Stream", - "description": "Whether to stream the LLM response. Currently only respected by the 'anthropic' provider. Otherwise will always stream.", - "type": "boolean", - "default": true - }, - "temperature": { - "title": "Temperature", - "description": "The temperature of the completion.", - "type": "number" - }, - "topP": { - "title": "Top P", - "description": "The topP of the completion.", - "type": "number" - }, - "topK": { - "title": "Top K", - "description": "The topK of the completion.", - "type": "integer" - }, - "presencePenalty": { - "title": "Presence Penalty", - "description": "The presence penalty Aof the completion.", - "type": "number" - }, - "frequencePenalty": { - "title": "Frequency Penalty", - "description": "The frequency penalty of the completion.", - "type": "number" - }, - "mirostat": { - "title": "Mirostat", - "description": "Enable Mirostat sampling, controlling perplexity during text generation (default: 0, 0 = disabled, 1 = Mirostat, 2 = Mirostat 2.0). Only available for Ollama, LM Studio, and llama.cpp providers", - "type": "number" - }, - "stop": { - "title": "Stop", - "description": "The stop tokens of the completion.", - "type": "array", - "items": { - "type": "string" - } - }, - "maxTokens": { - "title": "Max Tokens", - "description": "The maximum number of tokens to generate.", - "default": 600, - "type": "integer" - }, - "numThreads": { - "title": "Number of threads", - "description": "The number of threads used in the generation process. Only available for Ollama (this is the num_thread parameter)", - "type": "integer" - }, - "keepAlive": { - "title": "Ollama keep_alive", - "description": "The number of seconds after no requests are made to unload the model from memory. Defaults to 60*30 = 30min", - "type": "integer" - } - } - }, - "ClientCertificateOptions": { - "title": "ClientCertificateOptions", - "type": "object", - "properties": { - "cert": { - "title": "Cert Path", - "description": "Path to the client certificate file", - "type": "string" - }, - "key": { - "title": "Key Path", - "description": "Path to the client certificate key file", - "type": "string" - }, - "passphrase": { - "title": "Passphrase", - "description": "Passphrase for the client certificate key file", - "type": "string" - } - }, - "required": [ - "cert", - "key" - ] - }, - "RequestOptions": { - "title": "RequestOptions", - "type": "object", - "properties": { - "timeout": { - "title": "Timeout", - "description": "Set the timeout for each request to the LLM. If you are running a local LLM that takes a while to respond, you might want to set this to avoid timeouts.", - "default": 7200, - "type": "integer" - }, - "verifySsl": { - "title": "Verify Ssl", - "description": "Whether to verify SSL certificates for requests.", - "type": "boolean" - }, - "caBundlePath": { - "title": "Ca Bundle Path", - "description": "Path to a custom CA bundle to use when making the HTTP request", - "anyOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - }, - "proxy": { - "title": "Proxy", - "description": "Proxy URL to use when making the HTTP request", - "type": "string" - }, - "headers": { - "title": "Headers", - "description": "Headers to use when making the HTTP request", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "extraBodyProperties": { - "title": "Extra Body Properties", - "description": "This object will be merged with the body when making the HTTP requests", - "type": "object" - }, - "noProxy": { - "title": "No Proxy", - "description": "A list of hostnames for which Continue should not use the proxy specified in requestOptions.proxy", - "type": "array", - "items": { - "type": "string" - } - }, - "clientCertificate": { - "title": "Client Certificate", - "description": "Client certificate to use when making the HTTP request", - "$ref": "#/definitions/ClientCertificateOptions" - } - } - }, - "ModelDescription": { - "title": "ModelDescription", - "type": "object", - "properties": { - "title": { - "title": "Title", - "description": "The title you wish to give your model.", - "type": "string" - }, - "provider": { - "title": "Provider", - "description": "The provider of the model. This is used to determine the type of model, and how to interact with it.", - "enum": [ - "openai", - "free-trial", - "anthropic", - "anthropic-vertexai", - "cohere", - "bedrock", - "bedrockimport", - "sagemaker", - "together", - "ollama", - "huggingface-tgi", - "huggingface-inference-api", - "llama.cpp", - "replicate", - "gemini", - "gemini-vertexai", - "lmstudio", - "llamafile", - "mistral", - "mistral-vertexai", - "deepinfra", - "groq", - "fireworks", - "cloudflare", - "deepseek", - "azure", - "msty", - "watsonx", - "openrouter", - "sambanova", - "nvidia", - "vllm", - "cerebras" - ], - "markdownEnumDescriptions": [ - "### OpenAI\nUse gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/openai)", - "### Free Trial\nNew users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.json where it says `apiKey=\"\"` or select another model provider.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/freetrial)", - "### Anthropic\nTo get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/anthropicllm)", - "### Anthropic Vertex AI\nTo get started you need to enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) and set up the [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).", - "### Cohere\nTo use Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/cohere)", - "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", - "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", - "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", - "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", - "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", - "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", - "### Llama.cpp\nllama.cpp comes with a [built-in server](https://github.com/ggerganov/llama.cpp/tree/master/examples/server#llamacppexampleserver) that can be run from source. To do this:\n\n1. Clone the repository with `git clone https://github.com/ggerganov/llama.cpp`.\n2. `cd llama.cpp`\n3. Run `make` to build the server.\n4. Download the model you'd like to use and place it in the `llama.cpp/models` directory (the best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke))\n5. Run the llama.cpp server with the command below (replacing with the model you downloaded):\n\n```shell\n.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf\n```\n\nAfter it's up and running, you can start using Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/llamacpp)", - "### Replicate\nReplicate is a hosted service that makes it easy to run ML models. To get started with Replicate:\n1. Obtain an API key from [here](https://replicate.com)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/replicatellm)", - "### Gemini API\nTo get started with Google Makersuite, obtain your API key from [here](https://makersuite.google.com) and paste it below.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/geminiapi)", - "### Gemini API on Vertex AI\nTo get started you need to enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) and set up the [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).", - "### LMStudio\nLMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started:\n1. Download from [lmstudio.ai](https://lmstudio.ai/) and open the application\n2. Search for and download the desired model from the home screen of LMStudio.\n3. In the left-bar, click the '<->' icon to open the Local Inference Server and press 'Start Server'.\n4. Once your model is loaded and the server has started, you can begin using Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/lmstudio)", - "### Llamafile\nTo get started with llamafiles, find and download a binary on their [GitHub repo](https://github.com/Mozilla-Ocho/llamafile#binary-instructions). Then run it with the following command:\n\n```shell\nchmod +x ./llamafile\n./llamafile\n```\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/llamafile)", - "### Mistral API\n\nTo get access to the Mistral API, obtain your API key from the [Mistral platform](https://docs.mistral.ai/)", - "### Mistral API on Vertex AI\nTo get started you need to enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) and set up the [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).", - "### DeepInfra\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/deepinfra)", - "### Groq\nGroq provides extremely fast inference of open-source language models. To get started, obtain an API key from [their console](https://console.groq.com/keys).", - "### Fireworks\nFireworks is a fast inference engine for open-source language models. To get started, obtain an API key from [their console](https://fireworks.ai/api-keys).", - "### Cloudflare Workers AI\n\n[Reference](https://developers.cloudflare.com/workers-ai/)", - "### Deepseek\n Deepseek's API provides the best pricing for their state-of-the-art Deepseek Coder models. To get started, obtain an API key from [their console](https://platform.deepseek.com/api_keys)", - "### Azure OpenAI\n Azure OpenAI lets you securely run OpenAI's models on Azure. To get started, follow the steps [here](https://docs.continue.dev/reference/Model%20Providers/azure)", - "### Msty\nMsty is the simplest way to get started with online or local LLMs on all desktop platforms - Windows, Mac, and Linux. No fussing around, one-click and you are up and running. To get started, follow these steps:\n1. Download from [Msty.app](https://msty.app/), open the application, and click 'Setup Local AI'.\n2. Go to the Local AI Module page and download a model of your choice.\n3. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://continue.dev/docs/reference/Model%20Providers/Msty)", - "### IBM watsonx\nwatsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks.", - "### OpenRouter\nOpenRouter offers a single API to access almost any language model. To get started, obtain an API key from [their console](https://openrouter.ai/settings/keys).", - "### NVIDIA NIMs\nNVIDIA offers a single API to access almost any language model. To find out more, visit the [LLM APIs Documentation](https://docs.api.nvidia.com/nim/reference/llm-apis).\nFor information specific to getting a key, please check out the [docs here](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog)", - "### vLLM\nvLLM is a highly performant way of hosting LLMs for a team. To get started, follow their [quickstart](https://docs.vllm.ai/en/latest/getting_started/quickstart.html) to set up your server.", - "### Cerebras\nCerebras Inference uses specialized silicon to provides superfast inference. To get started, get your API keys from [their console](https://cloud.cerebras.ai/)." - ], - "type": "string" - }, - "model": { - "title": "Model", - "description": "The name of the model. Used to autodetect prompt template.", - "type": "string" - }, - "apiKey": { - "title": "Api Key", - "description": "OpenAI, Anthropic, Cohere, Together, or other API key", - "type": "string" - }, - "apiBase": { - "title": "Api Base", - "description": "The base URL of the LLM API.", - "type": "string" - }, - "region": { - "title": "Region", - "description": "The region where the model is hosted", - "anyOf": [ - { - "enum": [ - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - "eu-west-1", - "eu-central-1", - "ap-southeast-1", - "ap-northeast-1", - "ap-south-1", - "us-central1", - "us-east1", - "us-east4", - "us-east5", - "us-west1", - "us-west4", - "us-south1", - "northamerica-northeast1", - "southamerica-east1", - "europe-central2", - "europe-north1", - "europe-west1", - "europe-west2", - "europe-west3", - "europe-west4", - "europe-west6", - "europe-west8", - "europe-west9", - "europe-southwest1", - "asia-east1", - "asia-east2", - "asia-south1", - "asia-northeast1", - "asia-northeast3", - "asia-southeast1", - "australia-southeast1", - "me-central1", - "me-central2", - "me-west1" - ], - "type": "string" - }, - { - "type": "string" - } - ] - }, - "profile": { - "title": "Profile", - "description": "The AWS security profile to use", - "type": "string" - }, - "modelArn": { - "title": "Profile", - "description": "The AWS arn for the imported model", - "type": "string" - }, - "contextLength": { - "title": "Context Length", - "description": "The maximum context length of the LLM in tokens, as counted by countTokens.", - "default": 2048, - "type": "integer" - }, - "maxStopWords": { - "title": "Max Stop Words", - "description": "The maximum number of stop words that the API will accept. You can set this if you are receiving an error about the number of stop words, but otherwise should leave it undefined.", - "type": "integer" - }, - "template": { - "title": "Template", - "description": "The chat template used to format messages. This is auto-detected for most models, but can be overridden here. Choose none if you are using vLLM or another server that automatically handles prompting.", - "enum": [ - "llama2", - "alpaca", - "zephyr", - "phi2", - "phind", - "anthropic", - "chatml", - "none", - "deepseek", - "openchat", - "xwin-coder", - "neural-chat", - "codellama-70b", - "llava", - "gemma", - "llama3" - ], - "type": "string" - }, - "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.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "completionOptions": { - "title": "Completion Options", - "description": "Options for the completion endpoint. Read more about the completion options in the documentation.", - "default": { - "temperature": null, - "topP": null, - "topK": null, - "presencePenalty": null, - "frequencyPenalty": null, - "stop": null, - "maxTokens": 600 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "systemMessage": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "requestOptions": { - "title": "Request Options", - "description": "Options for the HTTP request to the LLM.", - "default": { - "timeout": 7200, - "verifySsl": null, - "caBundlePath": null, - "proxy": null, - "headers": null, - "extraBodyProperties": null - }, - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - }, - "apiType": { - "title": "Api Type", - "markdownDescription": "OpenAI API type, either `openai` or `azure`", - "enum": [ - "openai", - "azure" - ] - }, - "apiVersion": { - "title": "Api Version", - "description": "Azure OpenAI API version (e.g. 2023-07-01-preview)", - "type": "string" - }, - "engine": { - "title": "Engine", - "description": "Azure OpenAI engine", - "type": "string" - }, - "capabilities": { - "type": "object", - "description": "We will attempt to automatically detect the capabilities of the model based on its title and provider, but this may not always be accurate. You can override the model's capabilities here.", - "properties": { - "uploadImage": { - "type": "boolean", - "description": "Indicates whether the model can upload images." - } - } - } - }, - "required": [ - "title", - "provider", - "model" - ], - "allOf": [ - { - "if": { - "properties": { - "provider": { - "type": "str" - } - }, - "not": { - "required": [ - "provider" - ] - } - }, - "then": { - "properties": { - "model": { - "description": "Choose a provider first, then model options will be shown here." - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "openai", - "anthropic", - "cohere", - "gemini", - "huggingface-inference-api", - "replicate", - "together", - "cloudflare", - "sambanova" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "required": [ - "apiKey" - ] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "bedrockimport" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "required": [ - "modelArn" - ] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "huggingface-tgi", - "huggingface-inference-api" - ] - } - } - }, - "then": { - "required": [ - "apiBase" - ] - }, - "required": [ - "provider" - ] - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "openai" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "engine": { - "type": "string" - }, - "apiType": { - "type": "string" - }, - "apiVersion": { - "type": "string" - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "cloudflare" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "accountId": { - "type": "string" - }, - "aiGatewaySlug": { - "type": "string" - }, - "model": { - "anyOf": [ - { - "enum": [ - "@cf/meta/llama-3-8b-instruct", - "@hf/thebloke/deepseek-coder-6.7b-instruct-awq", - "@cf/deepseek-ai/deepseek-math-7b-instruct", - "@cf/thebloke/discolm-german-7b-v1-awq", - "@cf/tiiuae/falcon-7b-instruct", - "@cf/google/gemma-2b-it-lora", - "@hf/google/gemma-7b-it", - "@cf/google/gemma-7b-it-lora", - "@hf/nousresearch/hermes-2-pro-mistral-7b", - "@cf/meta/llama-2-7b-chat-fp16", - "@cf/meta/llama-2-7b-chat-int8", - "@cf/meta-llama/llama-2-7b-chat-hf-lora", - "@hf/thebloke/llama-2-13b-chat-awq", - "@hf/thebloke/llamaguard-7b-awq", - "@cf/mistral/mistral-7b-instruct-v0.1", - "@hf/mistral/mistral-7b-instruct-v0.2", - "@cf/mistral/mistral-7b-instruct-v0.2-lora", - "@hf/thebloke/neural-chat-7b-v3-1-awq", - "@cf/openchat/openchat-3.5-0106", - "@hf/thebloke/openhermes-2.5-mistral-7b-awq", - "@cf/microsoft/phi-2", - "@cf/qwen/qwen1.5-0.5b-chat", - "@cf/qwen/qwen1.5-1.8b-chat", - "@cf/qwen/qwen1.5-7b-chat-awq", - "@cf/qwen/qwen1.5-14b-chat-awq", - "@cf/defog/sqlcoder-7b-2", - "@hf/nexusflow/starling-lm-7b-beta", - "@cf/tinyllama/tinyllama-1.1b-chat-v1.0", - "@hf/thebloke/zephyr-7b-beta-awq", - "@hf/thebloke/deepseek-coder-6.7b-base-awq" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "openai" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k", - "gpt-4o", - "gpt-4o-mini", - "gpt-4", - "gpt-3.5-turbo-0613", - "gpt-4-32k", - "gpt-4-0125-preview", - "gpt-4-turbo", - "AUTODETECT" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "replicate" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "llama2-7b", - "llama2-13b", - "llama3-8b", - "llama3-70b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b" - ] - }, - { - "type": "string" - } - ] - }, - "markdownDescription": "Select a pre-defined option, or find an exact model ID from Replicate [here](https://replicate.com/collections/streaming-language-models)." - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "free-trial" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "enum": [ - "gpt-4o", - "codestral-latest", - "llama3.1-70b", - "llama3.1-405b", - "gpt-3.5-turbo", - "gemini-pro", - "claude-3-5-sonnet-20240620", - "claude-3-haiku-20240307", - "AUTODETECT" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "openai" - ] - }, - "apiType": { - "not": { - "const": "azure" - } - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k", - "gpt-4o", - "gpt-4o-mini", - "gpt-4", - "gpt-3.5-turbo-0613", - "gpt-4-32k", - "gpt-4-turbo", - "gpt-4-vision-preview", - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "neural-chat-7b", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b", - "mistral-tiny", - "mistral-small", - "mistral-medium", - "AUTODETECT" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "anthropic" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "cacheBehavior": { - "title": "Caching Behavior", - "description": "Options for the prompt caching", - "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" - } - } - }, - "model": { - "anyOf": [ - { - "enum": [ - "claude-2", - "claude-instant-1", - "claude-3-5-sonnet-20240620", - "claude-3-opus-20240229", - "claude-3-sonnet-20240229", - "claude-3-haiku-20240307", - "claude-2.1" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "anthropic-vertexai" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "cacheBehavior": { - "title": "Caching Behavior", - "description": "Options for the prompt caching", - "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" - } - } - }, - "model": { - "anyOf": [ - { - "enum": [ - "claude-3-5-opus", - "claude-3-5-sonnet", - "claude-3-5-haiku", - "claude-3-opus", - "claude-3-sonnet", - "claude-3-haiku" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "cohere" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "enum": [ - "command-r", - "command-r-plus" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "bedrock" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "claude-3-sonnet-20240229", - "claude-3-haiku-20240307", - "claude-2" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "sagemaker" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "markdownDescription": "SageMaker endpoint name" - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "gemini" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "cacheBehavior": { - "title": "Caching Behavior", - "description": "Options for the prompt caching", - "properties": { - "cacheSystemMessage": { - "type": "boolean" - } - } - }, - "model": { - "enum": [ - "chat-bison-001", - "gemini-pro", - "gemini-1.5-pro-latest", - "gemini-1.5-pro", - "gemini-1.5-flash-latest", - "gemini-1.5-flash" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "gemini-vertexai" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "gemini-pro", - "gemini-1.5-pro-latest", - "gemini-1.5-pro", - "gemini-1.5-flash-latest", - "gemini-1.5-flash" - ] - }, - { - "type": "string" - } - ] - } - }, - "required": [ - "projectId", - "region" - ] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "together" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "llama3.2-3b", - "llama3.2-11b", - "llama3.2-90b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "phind-codellama-34b" - ] - }, - { - "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)." - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "deepinfra" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "markdownDescription": "Find the model name you want to use from DeepInfra [here](https://deepinfra.com/models?type=text-generation)." - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "huggingface-tgi", - "huggingface-inference-api", - "llama.cpp", - "text-gen-webui", - "llamafile" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "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", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "neural-chat-7b", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "ollama" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "mistral-7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "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", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "neural-chat-7b", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b", - "AUTODETECT" - ] - }, - { - "type": "string" - } - ], - "markdownDescription": "Select a pre-defined option, or find the exact model tag for an Ollama model [here](https://ollama.ai/library)." - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "mistral" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "enum": [ - "codestral-latest", - "codestral-mamba-latest", - "open-mistral-7b", - "open-mixtral-8x7b", - "open-mixtral-8x22b", - "mistral-small-latest", - "mistral-large-latest" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "mistral-vertexai" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "codestral", - "mistral-nemo", - "mistral-large" - ] - }, - { - "type": "string" - } - ] - } - }, - "required": [ - "projectId", - "region" - ] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "deepseek" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "cacheBehavior": { - "title": "Caching Behavior", - "description": "Options for the prompt caching", - "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" - } - } - }, - "model": { - "enum": [ - "deepseek-chat", - "deepseek-coder" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "groq" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "enum": [ - "llama2-70b", - "mistral-8x7b", - "gemma", - "gemma2", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "llama3.2-1b", - "llama3.2-3b", - "llama3.2-11b", - "llama3.2-90b", - "AUTODETECT" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "fireworks" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "enum": [ - "starcoder-7b" - ] - } - } - } - }, - { - "if": { - "properties": { - "apiType": { - "const": "azure" - } - }, - "required": [ - "apiType" - ] - }, - "then": { - "required": [ - "engine", - "apiVersion", - "apiBase" - ] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "openai" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "useLegacyCompletionsEndpoint": { - "type": "boolean" - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "const": "llamafile" - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "llamafileCommand": { - "type": "string" - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "cerebras" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "enum": [ - "llama3.1-8b", - "llama3.1-70b" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "text-gen-webui" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "streamingUrl": { - "type": "string" - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "flowise" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "timeout": { - "title": "Timeout", - "description": "Set the timeout for each request to Flowise. If you are running a local version of Flowise it might takes a while to respond, you might want to set this to avoid timeouts.", - "default": 5000, - "type": "integer" - }, - "additionalHeaders": { - "description": "A list of additional headers", - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "title": "Key", - "description": "Header key", - "type": "string" - }, - "value": { - "title": "Value", - "description": "Header value", - "type": "string" - } - }, - "required": [ - "key", - "value" - ] - } - }, - "additionalFlowiseConfiguration": { - "description": "A list of additional properties to be sent along `overrideConfig`", - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "title": "Key", - "description": "Configuration Property key", - "type": "string" - }, - "value": { - "title": "Value", - "description": "Configuration Property value" - } - }, - "required": [ - "key", - "value" - ] - } - }, - "model": { - "anyOf": [ - { - "enum": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k", - "gpt-4o", - "gpt-4o-mini", - "gpt-4", - "gpt-3.5-turbo-0613", - "gpt-4-32k", - "gpt-4-turbo", - "gpt-4-vision-preview", - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "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", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "claude-2", - "claude-instant-1", - "claude-3-5-sonnet-20240620", - "claude-3-opus-20240229", - "claude-3-sonnet-20240229", - "claude-3-haiku-20240307", - "claude-2.1", - "command-r", - "command-r-plus", - "chat-bison-001", - "gemini-pro", - "gemini-1.5-pro-latest", - "gemini-1.5-pro", - "gemini-1.5-flash-latest", - "gemini-1.5-flash", - "mistral-tiny", - "mistral-small", - "mistral-medium", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "watsonx" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "apiBase": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "apiVersion": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "deploymentId": { - "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" - ] - } - }, - "required": ["apiBase", "apiKey", "apiVersion"] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "sambanova" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "llama3.2-1b", - "llama3.2-3b" - ] - }, - { - "type": "string" - } - ], - "markdownDescription": "Select a pre-defined option." - } - } - } - } - ] - }, - "ModelRoles": { - "title": "ModelRoles", - "type": "object", - "properties": { - "default": { - "title": "Default", - "description": "The default model. If other model roles are not set, they will fall back to default.", - "type": "string" - }, - "chat": { - "title": "Chat", - "description": "The model to use for chat. If not set, will fall back to default.", - "type": "string" - }, - "edit": { - "title": "Edit", - "description": "The model to use for editing. If not set, will fall back to default.", - "type": "string" - }, - "summarize": { - "title": "Summarize", - "description": "The model to use for summarization. If not set, will fall back to default.", - "type": "string" - } - }, - "required": [ - "default" - ] - }, - "SlashCommand": { - "title": "SlashCommand", - "type": "object", - "properties": { - "name": { - "title": "Name", - "anyOf": [ - { - "enum": [ - "issue", - "share", - "cmd", - "edit", - "comment", - "http", - "commit", - "review" - ], - "type": "string", - "markdownEnumDescriptions": [ - "Generate a link to a drafted GitHub issue", - "Export the current chat session to markdown", - "Generate a terminal command and paste it into the terminal", - "Edit the highlighted code with given instructions", - "Add comments to the highlighted code", - "Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup.", - "Generate a commit message for the current changes", - "Review code and give feedback" - ] - }, - { - "type": "string" - } - ] - }, - "description": { - "title": "Description", - "type": "string" - }, - "step": { - "title": "Step", - "description": "This property is no longer required and has no effect. To use a built-in slash command, instead set the 'name' property to one of the pre-configured options.", - "type": "string" - }, - "params": { - "title": "Params", - "default": {}, - "type": "object" - } - }, - "allOf": [ - { - "if": { - "properties": { - "name": { - "enum": [ - "issue" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "repositoryUrl": { - "type": "string", - "description": "Enter the URL of the GitHub repository for which you want to generate the issue." - } - }, - "required": [ - "repositoryUrl" - ] - } - }, - "required": [ - "params" - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "edit" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "recap": { - "type": "boolean", - "markdownDescription": "If recap is set to `true`, 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." - } - } - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "share" - ] - } - } - }, - "then": { - "properties": { - "params": { - "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." - } - } - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "commit" - ] - } - } - }, - "then": { - "properties": { - "params": { - "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." - } - } - } - } - } - } - ], - "required": [ - "name", - "description" - ] - }, - "CustomCommand": { - "title": "CustomCommand", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "prompt": { - "title": "Prompt", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - } - }, - "required": [ - "name", - "prompt", - "description" - ] - }, - "ContextProviderWithParams": { - "title": "ContextProviderWithParams", - "type": "object", - "properties": { - "name": { - "title": "Name", - "anyOf": [ - { - "enum": [ - "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" - ], - "markdownEnumDescriptions": [ - "Reference the contents of the current changes as given by `git diff`", - "Reference the last terminal command", - "Reference the contents of the local variables in the debugger with top n level (defaulting to 3) of call stack for that thread", - "Reference the contents of all open or pinned files.", - "Enter a search phrase and include the Google search results as context", - "Reference the results of a ripgrep search in your codebase", - "Write a custom context provider at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup.", - "Use embeddings to automatically find relevant files from throughout the codebase", - "Reference all linting errors and warnings in the currently open file", - "Include important files from a folder in the prompt, as determined by similarity search", - "Reference GitHub issues from a repository", - "Retrieve important pages from a documentation website, as determined by similarity search", - "Display a file tree of the current workspace", - "Include important highlighted sections from your code", - "Include a repo map showing important code objects", - "References Postgres table schema and sample rows", - "Reference specific functions and classes from throughout your codebase", - "Reference the contents of the currently active file", - "Reference the contents of a page at a URL", - "Reference table schemas", - "Operating system and CPU Information", - "Map of files in the repository with important code highlights", - "Query your greptile index of the current repo", - "Search the web for sources related to your question" - ], - "type": "string" - }, - { - "type": "string" - } - ] - }, - "params": { - "title": "Params", - "default": {}, - "type": "object" - } - }, - "allOf": [ - { - "if": { - "properties": { - "name": { - "enum": [ - "discord" - ] - } - } - }, - "then": { - "allOf": [ - { - "properties": { - "params": { - "properties": { - "discordKey": { - "type": "string", - "description": "Your Discord bot token to access the Discord API. Required to fetch messages from servers." - }, - "guildId": { - "type": "string", - "description": "The ID of the guild (server) from which to fetch channels and messages." - }, - "channels": { - "type": "array", - "description": "A list of channel objects to search for messages", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The unique ID of the channel" - }, - "name": { - "type": "string", - "description": "The name of the channel" - } - }, - "required": [ - "id" - ] - } - } - }, - "required": [ - "discordKey" - ] - } - } - }, - { - "oneOf": [ - { - "properties": { - "params": { - "required": [ - "guildId" - ] - } - } - }, - { - "properties": { - "params": { - "required": [ - "channels" - ] - } - } - } - ] - } - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "google" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "serperApiKey": { - "type": "string", - "description": "Your API key for https://serper.dev in order to get Google search results" - } - }, - "required": [ - "serperApiKey" - ] - } - }, - "required": [ - "params" - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "web" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "n": { - "title": "N", - "description": "The number of results to return", - "default": 6, - "type": "integer" - } - } - } - }, - "required": [ - "params" - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "open" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "onlyPinned": { - "type": "boolean", - "description": "If set to true, only 'pinned' files will be included.", - "default": false - } - } - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "issue" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "githubToken": { - "type": "string", - "description": "Your GitHub token to access the GitHub API. Required for private repositories." - }, - "repos": { - "type": "array", - "description": "A list of repositories to search for issues", - "items": { - "type": "object", - "properties": { - "owner": { - "type": "string", - "description": "The owner of the repository" - }, - "repo": { - "type": "string", - "description": "The name of the repository" - }, - "type": { - "type": "string", - "description": "The type of issues to search for", - "enum": [ - "open", - "closed", - "all" - ] - } - }, - "required": [ - "owner", - "repo" - ] - } - } - }, - "required": [ - "repos" - ] - } - }, - "required": [ - "params" - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "database" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "connections": { - "type": "array", - "description": "A list of database connections", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name for this database connection" - }, - "connection_type": { - "type": "string", - "description": "The type of database (e.g., 'postgres', 'mysql')", - "enum": [ - "postgres", - "mysql", - "sqlite" - ] - }, - "connection": { - "type": "object", - "properties": { - "user": { - "type": "string", - "description": "The database user name" - }, - "host": { - "type": "string", - "description": "The host address of the database server" - }, - "database": { - "type": "string", - "description": "The name of the database to connect to" - }, - "password": { - "type": "string", - "description": "The password for the database user" - }, - "port": { - "type": "integer", - "description": "The port number to connect to at the host" - }, - "filename": { - "type": "string", - "description": "File location for simple file DB's" - } - }, - "required": [] - } - }, - "required": [ - "name", - "connection_type", - "connection" - ] - } - } - }, - "required": [ - "connections" - ] - } - }, - "required": [ - "params" - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "gitlab-mr" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "domain": { - "type": "string", - "description": "Your GitLab domain, will default to gitlab.com" - }, - "token": { - "type": "string", - "description": "Your private access token." - }, - "filterComments": { - "type": "boolean", - "description": "If you have code selected, filters out comments that aren't related to the selection." - } - }, - "required": [ - "token" - ] - } - }, - "required": [ - "params" - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "jira" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "domain": { - "type": "string", - "description": "Your Jira domain, for example company.atlassian.net." - }, - "email": { - "type": "string", - "description": "The email that you log into Jira with" - }, - "token": { - "type": "string", - "description": "Your atlassian API token from https://id.atlassian.com/manage-profile/security/api-tokens" - }, - "issueQuery": { - "type": "string", - "description": "Customize the query used to find Jira issues" - }, - "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." - }, - "requestOptions": { - "title": "Request Options", - "description": "Options for the HTTPS request to Jira.", - "default": { - "timeout": 7200, - "verifySsl": null, - "caBundlePath": null, - "proxy": null, - "headers": null, - "extraBodyProperties": null - }, - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - } - }, - "required": [ - "domain", - "token" - ] - } - }, - "required": [ - "params" - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "http" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "url": { - "type": "string", - "description": "The HTTP endpoint of your context provider server." - }, - "options": { - "title": "Custom Options", - "description": "Additional options to pass to your custom HTTP server.", - "type": "object" - } - }, - "required": [ - "url" - ] - } - }, - "required": [ - "params" - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "codebase", - "folder" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "nRetrieve": { - "title": "N Retrieve", - "description": "Number of results to initially retrieve from vector database", - "default": 50, - "type": "integer" - }, - "nFinal": { - "title": "N Final", - "description": "Final number of results to use after re-ranking", - "default": 10, - "type": "integer" - }, - "useReranking": { - "title": "Use Reranking", - "description": "Whether to use re-ranking, which will allow initial selection of nRetrieve results, then will use an LLM to select the top nFinal results. Disabling re-ranking will give faster, but less accurate, results.", - "default": true, - "type": "boolean" - } - } - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "postgres" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "host": { - "title": "Host", - "description": "Database host", - "default": "localhost", - "type": "string" - }, - "port": { - "title": "Port", - "description": "Database port", - "default": 5432, - "type": "integer" - }, - "user": { - "title": "User", - "description": "Database user", - "default": "postgres", - "type": "string" - }, - "password": { - "title": "Password", - "description": "Database password", - "type": "string" - }, - "database": { - "title": "Database", - "description": "Database name", - "default": "postgres", - "type": "string" - }, - "schema": { - "title": "Schema", - "description": "Database schema", - "default": "public", - "type": "string" - }, - "sampleRows": { - "title": "Sample Rows", - "description": "Number of rows to sample from the database", - "default": 3, - "type": "integer" - } - } - } - }, - "required": [ - "host", - "port", - "user", - "password", - "database" - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "greptile" - ] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "GithubToken": { - "title": "GithubToken", - "description": "Your github access token", - "default": "", - "type": "string" - }, - "GreptileToken": { - "title": "GreptileToken", - "description": "Your greptile access token", - "default": "", - "type": "string" - } - } - } - }, - "required": [ - "GreptileToken", - "GithubToken" - ] - } - } - ], - "required": [ - "name" - ] - }, - "SerializedContinueConfig": { - "title": "config.json", - "type": "object", - "properties": { - "docs": { - "title": "Docs", - "description": "A list of documentation sites to be indexed", - "type": "array", - "items": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "The title of the documentation site" - }, - "startUrl": { - "type": "string", - "description": "The starting URL for indexing the documentation" - }, - "rootUrl": { - "type": "string", - "description": "The root URL of the documentation site" - }, - "maxDepth": { - "type": "integer", - "description": "The maximum depth to crawl the documentation site" - }, - "favicon": { - "type": "string", - "description": "The URL path to a favicon for the site - by default, it will be `/favicon.ico` path from the Start URL" - } - }, - "required": [ - "title", - "startUrl" - ] - } - }, - "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).", - "default": true, - "type": "boolean" - }, - "models": { - "title": "Models", - "markdownDescription": "Learn about setting up models in [the documentation](https://docs.continue.dev/model-setup/overview).", - "default": [ - { - "title": "GPT-4 (trial)", - "provider": "free-trial", - "model": "gpt-4", - "apiKey": "" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/ModelDescription" - } - }, - "systemMessage": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "completionOptions": { - "title": "Completion Options", - "description": "Default options for completion. These will be overriden by any options set for a specific model.", - "default": { - "temperature": null, - "topP": null, - "topK": null, - "presencePenalty": null, - "frequencyPenalty": null, - "stop": null, - "maxTokens": 600 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "requestOptions": { - "title": "Request Options", - "description": "Default request options for all fetch requests from models and context providers. These will be overriden by any model-specific request options.", - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - }, - "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).", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/SlashCommand" - } - }, - "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 / 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).", - "default": [ - { - "name": "test", - "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", - "description": "This is an example custom command. Open config.json to edit it and create more" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/CustomCommand" - } - }, - "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).", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ContextProviderWithParams" - } - }, - "userToken": { - "title": "User Token", - "description": "An optional token to identify the user.", - "type": "string" - }, - "disableIndexing": { - "title": "Disable Indexing", - "markdownDescription": "If set to `true`, 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.", - "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).", - "type": "object", - "properties": { - "provider": { - "enum": [ - "huggingface-tei", - "transformers.js", - "ollama", - "openai", - "cohere", - "free-trial", - "gemini", - "voyage", - "nvidia", - "bedrock", - "sagemaker", - "vertex" - ] - }, - "model": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "apiBase": { - "type": "string" - }, - "requestOptions": { - "title": "Request Options", - "description": "Request options to be used in any fetch requests made by the embeddings provider", - "$ref": "#/definitions/RequestOptions" - }, - "maxChunkSize": { - "title": "Maximum Chunk Size", - "description": "The maximum number of tokens that each chunk of a document is allowed to have", - "type": "integer", - "minimum": 128, - "exclusiveMaximum": 2147483647 - }, - "maxBatchSize": { - "title": "Maximum Batch Size", - "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", - "type": "integer", - "minimum": 1, - "exclusiveMaximum": 2147483647 - }, - "region": { - "title": "Region", - "description": "The region where the model is hosted", - "$ref": "#/definitions/ModelDescription/properties/region" - }, - "profile": { - "title": "Profile", - "description": "The AWS security profile to use", - "type": "string" - } - }, - "required": [ - "provider" - ], - "allOf": [ - { - "if": { - "properties": { - "provider": { - "enum": [ - "cohere", - "voyage", - "nvidia", - "gemini" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "required": [ - "apiKey" - ] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "sagemaker" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "model": { - "markdownDescription": "SageMaker endpoint name" - } - }, - "required": [ - "model" - ] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "vertex" - ] - } - }, - "required": [ - "provider" - ] - }, - "then": { - "properties": { - "projectId": { - "markdownDescription": "The name of your vertexAI project" - }, - "region": { - "markdownDescription": "The region your vertexAI model is hosted in - typically central1", - "default": "central1" - }, - "model": { - "default": "text-embedding-004" - } - }, - "required": [ - "projectId", - "model", - "region" - ] - } - } - ] - }, - "reranker": { - "title": "Reranker", - "markdownDescription": "The reranker is responsible for selecting the final results when retrieving snippets from your codebase.", - "type": "object", - "properties": { - "name": { - "enum": [ - "cohere", - "voyage", - "llm", - "free-trial", - "huggingface-tei" - ] - }, - "params": { - "type": "object" - } - }, - "required": [ - "name" - ], - "allOf": [ - { - "if": { - "properties": { - "name": { - "enum": [ - "cohere" - ] - } - }, - "required": [ - "name" - ] - }, - "then": { - "properties": { - "params": { - "type": "object", - "properties": { - "model": { - "enum": [ - "rerank-english-v3.0", - "rerank-multilingual-v3.0", - "rerank-english-v2.0", - "rerank-multilingual-v2.0" - ] - }, - "apiBase": { - "type": "string" - }, - "apiKey": { - "type": "string" - } - }, - "required": [ - "apiKey" - ] - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "llm" - ] - } - }, - "required": [ - "name" - ] - }, - "then": { - "properties": { - "params": { - "type": "object", - "properties": { - "modelTitle": { - "type": "string" - } - }, - "required": [ - "modelTitle" - ] - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "voyage" - ] - } - }, - "required": [ - "name" - ] - }, - "then": { - "properties": { - "params": { - "type": "object", - "properties": { - "apiKey": { - "type": "string" - }, - "model": { - "enum": [ - "rerank-lite-1", - "rerank-1", - "rerank-2", - "rerank-2-lite" - ] - } - }, - "required": [ - "apiKey" - ] - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": [ - "huggingface-tei" - ] - } - }, - "required": [ - "name" - ] - }, - "then": { - "properties": { - "params": { - "type": "object", - "properties": { - "apiBase": { - "type": "string", - "default": "http://localhost:8080" - }, - "truncate": { - "type": "boolean", - "description": "Wether to truncate long sequences to the maximum allowed context length.", - "default": false - }, - "truncation_direction": { - "enum": [ - "Right", - "Left" - ], - "markdownDescription": "Wether to truncate sequences from the `left` or `right`.", - "default": "Right" - } - }, - "required": [ - "apiBase" - ] - } - }, - "if": { - "properties": { - "truncate": { - "const": true - } - } - }, - "then": { - "required": [ - "truncation_direction" - ] - } - } - } - ] - }, - "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.", - "default": { - "title": "Tab Autocomplete Model", - "provider": "ollama", - "model": "deepseek-coder:1.3b-base" - }, - "oneOf": [ - { - "$ref": "#/definitions/ModelDescription" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/ModelDescription" - } - } - ] - }, - "tabAutocompleteOptions": { - "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).", - "properties": { - "disable": { - "type": "boolean", - "description": "Disable tab autocomplete. This can also be done from the IDE settings.", - "default": false - }, - "useCopyBuffer": { - "type": "boolean", - "description": "Determines whether the copy buffer will be considered when contructing the prompt." - }, - "useFileSuffix": { - "type": "boolean", - "description": "Determines whether to use the file suffix in the prompt." - }, - "maxPromptTokens": { - "type": "number", - "description": "The maximum number of prompt tokens to use. A smaller number will yield faster completions, but less context." - }, - "debounceDelay": { - "type": "number", - "description": "The delay in milliseconds before triggering autocomplete after a keystroke." - }, - "maxSuffixPercentage": { - "type": "number", - "description": "The maximum percentage of the prompt that can be dedicated to the suffix." - }, - "prefixPercentage": { - "type": "number", - "description": "The percentage of the input that should be dedicated to the prefix." - }, - "template": { - "type": "string", - "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" - ], - "description": "If set to true, Continue will only complete a single line at a time." - }, - "useCache": { - "type": "boolean", - "description": "Whether to cache completions" - }, - "onlyMyCode": { - "type": "boolean", - "description": "If set to true, Continue will not include any snippets from go to definition unless they are within your repository" - }, - "useOtherFiles": { - "type": "boolean", - "description": "Defaults to true. If set to false, Continue will not attempt to include snippets from other files." - }, - "disableInFiles": { - "description": "A list of files / glob patterns in which to disable tab autocomplete. For example, *.csv if you'd like to disable autocomplete in .csv files.", - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [] - }, - "ui": { - "type": "object", - "properties": { - "codeBlockToolbarPosition": { - "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." - }, - "fontSize": { - "type": "number" - }, - "displayRawMarkdown": { - "type": "boolean", - "description": "If set to true, we will display the model output as raw markdown.", - "default": false - }, - "showChatScrollbar": { - "title": "Show Chat Scrollbar", - "markdownDescription": "If set to `true`, a scrollbar will be displayed in the chat window to navigate through messages.", - "default": false, - "type": "boolean" - } - } - }, - "analytics": { - "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": [ - "posthog", - "logstash" - ], - "description": "The 3rd party analytics provider to use.", - "default": "posthog", - "markdownEnumDescriptions": [ - "### Posthog\nTo use Posthog, set up an account, obtain your client key, and enter it in the client key field.", - "### Logstash\nContinue's Logstash integration uses the TCP input at the specified URL" - ] - }, - "url": { - "type": "string", - "description": "The URL to which analytics will be sent" - }, - "clientKey": { - "type": "string", - "description": "The client key to use for analytics" - } - }, - "required": [ - "provider" - ], - "allOf": [ - { - "if": { - "properties": { - "provider": { - "enum": [ - "posthog" - ] - } - } - }, - "then": { - "required": [ - "clientKey" - ] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "logstash" - ] - } - } - }, - "then": { - "required": [ - "url" - ] - } - } - ] - }, - "experimental": { - "type": "object", - "title": "Experimental", - "description": "Experimental properties are subject to change.", - "properties": { - "defaultContext": { - "type": "array", - "items": { - "allOf": [ - { - "$ref": "#/definitions/ContextProviderWithParams" - }, - { - "properties": { - "query": { - "type": "string", - "description": "Required for certain context providers, like 'url' in order to specify the input, or which of the dropdown items to select." - } - } - } - ] - } - }, - "modelRoles": { - "type": "object", - "properties": { - "inlineEdit": { - "description": "The 'title' property of the model you wish to use for inline edits", - "type": "string" - }, - "applyCodeBlock": { - "description": "The 'title' property of the model you wish to use for applying code blocks", - "type": "string" - }, - "repoMapFileSelection": { - "description": "The 'title' property of the model you wish to use for repo map file selections", - "type": "string" - } - } - }, - "readResponseTTS": { - "type": "boolean", - "default": true, - "description": "Automatically read LLM chat responses aloud using system TTS models" - }, - "promptPath": { - "type": "string" - }, - "quickActions": { - "type": "array", - "items": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "The title of the quick action that will display in the Code Lens." - }, - "prompt": { - "type": "string", - "description": "The prompt that will be sent to the model when the quick action is invoked, with the function or class body concatenated." - }, - "sendToChat": { - "type": "boolean", - "description": "If true, the result of the quick action will be sent to the chat panel. If false, the streamed result will be inserted into the document.", - "default": false - } - }, - "required": [ - "prompt", - "title" - ] - }, - "description": "Quick actions are a way to add custom commands to the Code Lens of function and class declarations." - }, - "contextMenuPrompts": { - "type": "object", - "properties": { - "comment": { - "type": "string", - "default": "Write comments for this code. Do not change anything about the code itself." - }, - "docstring": { - "type": "string", - "default": "Write a docstring for this code. Do not change anything about the code itself." - }, - "fix": { - "type": "string", - "default": "Fix this code" - }, - "optimize": { - "type": "string", - "default": "Optimize this code" - }, - "fixGrammar": { - "type": "string", - "default": "If there are any grammar or spelling mistakes in this writing, fix them. Do not make other large changes to the writing." - } - } - } - } - } - } - } - } -} \ No newline at end of file diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index ab1d53f6e..7ebbfdcff 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -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", diff --git a/extensions/vscode/scripts/prepackage-cross-platform.js b/extensions/vscode/scripts/prepackage-cross-platform.js index 65cf8836c..162d5fa30 100644 --- a/extensions/vscode/scripts/prepackage-cross-platform.js +++ b/extensions/vscode/scripts/prepackage-cross-platform.js @@ -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`, diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 7ef71035b..274b6332c 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -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`, diff --git a/extensions/vscode/scripts/utils.js b/extensions/vscode/scripts/utils.js index 93c1928ce..914816f63 100644 --- a/extensions/vscode/scripts/utils.js +++ b/extensions/vscode/scripts/utils.js @@ -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( From 51610a360cd97c6f130d55a72da60460be140ae0 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 28 Oct 2024 13:37:36 -0700 Subject: [PATCH 02/15] Update config_schema.json --- .../src/main/resources/config_schema.json | 68 +++++++++++++------ 1 file changed, 47 insertions(+), 21 deletions(-) diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 32b59486e..439742dfd 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -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 here 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 openai or azure", "enum": [ "openai", "azure" @@ -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 here." } } }, @@ -963,7 +966,7 @@ "then": { "properties": { "model": { - "markdownDescription": "SageMaker endpoint name" + "description": "SageMaker endpoint name" } } } @@ -1085,7 +1088,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 here." } } } @@ -1106,7 +1110,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 here." } } } @@ -1232,7 +1237,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 here." } } } @@ -1681,7 +1687,11 @@ ] } }, - "required": ["apiBase", "apiKey", "apiVersion"] + "required": [ + "apiBase", + "apiKey", + "apiVersion" + ] } }, { @@ -1714,7 +1724,7 @@ "type": "string" } ], - "markdownDescription": "Select a pre-defined option." + "description": "Select a pre-defined option." } } } @@ -1846,11 +1856,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 true, 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." } } } @@ -1873,7 +1884,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 . 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." } } } @@ -1896,7 +1908,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 includeUnstaged is 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 includeUnstaged is set to true, then unstaged changes are also included in the prompt, otherwise only staged changes are included. Default is false." } } } @@ -1998,7 +2011,8 @@ "type": "string" } ] - }, + } + }, "params": { "title": "Params", "default": {}, @@ -2373,7 +2387,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 apiVersion property." }, "requestOptions": { "title": "Request Options", @@ -2623,13 +2638,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 the docs.", "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 the documentation.", "default": [ { "title": "GPT-4 (trial)", @@ -2678,6 +2695,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 documentation.", "default": [], "type": "array", "items": { @@ -2686,7 +2704,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 / 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 `/` 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 / in the text input, it will act as a shortcut to the prompt. Learn more in the documentation.", "default": [ { "name": "test", @@ -2702,6 +2721,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 the documentation.", "default": [], "type": "array", "items": { @@ -2716,18 +2736,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 true, 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 true, 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).", + "x-intellij-html-description": "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.", "type": "object", "properties": { "provider": { @@ -2827,7 +2850,7 @@ "then": { "properties": { "model": { - "markdownDescription": "SageMaker endpoint name" + "description": "SageMaker endpoint name" } }, "required": [ @@ -2851,10 +2874,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": { @@ -2872,7 +2895,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": { @@ -3022,7 +3045,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": { @@ -3030,7 +3053,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" } }, @@ -3058,6 +3081,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.

IMPORTANT:

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", @@ -3079,6 +3103,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 the docs.", "properties": { "disable": { "type": "boolean", @@ -3165,6 +3190,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 true, a scrollbar will be displayed in the chat window to navigate through messages.", "default": false, "type": "boolean" } From 27205407eee21ce9120684fed6674c472e493d66 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 28 Oct 2024 14:26:42 -0700 Subject: [PATCH 03/15] update continue_rc_schema --- docs/static/schemas/config.json | 752 ++++------------ .../src/main/resources/config_schema.json | 763 ++++------------ extensions/vscode/config_schema.json | 811 +++++------------- extensions/vscode/continue_rc_schema.json | 54 +- 4 files changed, 590 insertions(+), 1790 deletions(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 32b59486e..fbb9053fa 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -88,10 +88,7 @@ "type": "string" } }, - "required": [ - "cert", - "key" - ] + "required": ["cert", "key"] }, "RequestOptions": { "title": "RequestOptions", @@ -401,10 +398,7 @@ "apiType": { "title": "Api Type", "markdownDescription": "OpenAI API type, either `openai` or `azure`", - "enum": [ - "openai", - "azure" - ] + "enum": ["openai", "azure"] }, "apiVersion": { "title": "Api Version", @@ -427,11 +421,7 @@ } } }, - "required": [ - "title", - "provider", - "model" - ], + "required": ["title", "provider", "model"], "allOf": [ { "if": { @@ -441,9 +431,7 @@ } }, "not": { - "required": [ - "provider" - ] + "required": ["provider"] } }, "then": { @@ -471,67 +459,46 @@ ] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "apiKey" - ] + "required": ["apiKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "bedrockimport" - ] + "enum": ["bedrockimport"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "modelArn" - ] + "required": ["modelArn"] } }, { "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": { @@ -551,14 +518,10 @@ "if": { "properties": { "provider": { - "enum": [ - "cloudflare" - ] + "enum": ["cloudflare"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -616,14 +579,10 @@ "if": { "properties": { "provider": { - "enum": [ - "openai" - ] + "enum": ["openai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -655,14 +614,10 @@ "if": { "properties": { "provider": { - "enum": [ - "replicate" - ] + "enum": ["replicate"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -670,16 +625,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" ] }, { @@ -695,14 +650,10 @@ "if": { "properties": { "provider": { - "enum": [ - "free-trial" - ] + "enum": ["free-trial"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -726,9 +677,7 @@ "if": { "properties": { "provider": { - "enum": [ - "openai" - ] + "enum": ["openai"] }, "apiType": { "not": { @@ -736,9 +685,7 @@ } } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -800,14 +747,10 @@ "if": { "properties": { "provider": { - "enum": [ - "anthropic" - ] + "enum": ["anthropic"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -848,14 +791,10 @@ "if": { "properties": { "provider": { - "enum": [ - "anthropic-vertexai" - ] + "enum": ["anthropic-vertexai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -895,22 +834,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"] } } } @@ -919,14 +851,10 @@ "if": { "properties": { "provider": { - "enum": [ - "bedrock" - ] + "enum": ["bedrock"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -951,14 +879,10 @@ "if": { "properties": { "provider": { - "enum": [ - "sagemaker" - ] + "enum": ["sagemaker"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -972,14 +896,10 @@ "if": { "properties": { "provider": { - "enum": [ - "gemini" - ] + "enum": ["gemini"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1009,14 +929,10 @@ "if": { "properties": { "provider": { - "enum": [ - "gemini-vertexai" - ] + "enum": ["gemini-vertexai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1031,30 +947,21 @@ "gemini-1.5-flash" ] }, - { - "type": "string" - } + { "type": "string" } ] } }, - "required": [ - "projectId", - "region" - ] + "required": ["projectId", "region"] } }, { "if": { "properties": { "provider": { - "enum": [ - "together" - ] + "enum": ["together"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1071,9 +978,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", @@ -1094,14 +998,10 @@ "if": { "properties": { "provider": { - "enum": [ - "deepinfra" - ] + "enum": ["deepinfra"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1124,9 +1024,7 @@ ] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1147,10 +1045,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", @@ -1179,14 +1073,10 @@ "if": { "properties": { "provider": { - "enum": [ - "ollama" - ] + "enum": ["ollama"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1206,10 +1096,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", @@ -1241,14 +1127,10 @@ "if": { "properties": { "provider": { - "enum": [ - "mistral" - ] + "enum": ["mistral"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1270,50 +1152,33 @@ "if": { "properties": { "provider": { - "enum": [ - "mistral-vertexai" - ] + "enum": ["mistral-vertexai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { "anyOf": [ { - "enum": [ - "codestral", - "mistral-nemo", - "mistral-large" - ] + "enum": ["codestral", "mistral-nemo", "mistral-large"] }, - { - "type": "string" - } + { "type": "string" } ] } }, - "required": [ - "projectId", - "region" - ] + "required": ["projectId", "region"] } }, { "if": { "properties": { "provider": { - "enum": [ - "deepseek" - ] + "enum": ["deepseek"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1330,10 +1195,7 @@ } }, "model": { - "enum": [ - "deepseek-chat", - "deepseek-coder" - ] + "enum": ["deepseek-chat", "deepseek-coder"] } } } @@ -1342,14 +1204,10 @@ "if": { "properties": { "provider": { - "enum": [ - "groq" - ] + "enum": ["groq"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1364,10 +1222,6 @@ "llama3.1-8b", "llama3.1-70b", "llama3.1-405b", - "llama3.2-1b", - "llama3.2-3b", - "llama3.2-11b", - "llama3.2-90b", "AUTODETECT" ] } @@ -1378,21 +1232,15 @@ "if": { "properties": { "provider": { - "enum": [ - "fireworks" - ] + "enum": ["fireworks"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "enum": [ - "starcoder-7b" - ] + "enum": ["starcoder-7b"] } } } @@ -1404,30 +1252,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": { @@ -1444,9 +1282,7 @@ "const": "llamafile" } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1460,22 +1296,15 @@ "if": { "properties": { "provider": { - "enum": [ - "cerebras" - ] + "enum": ["cerebras"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "enum": [ - "llama3.1-8b", - "llama3.1-70b" - ] + "enum": ["llama3.1-8b", "llama3.1-70b"] } } } @@ -1484,14 +1313,10 @@ "if": { "properties": { "provider": { - "enum": [ - "text-gen-webui" - ] + "enum": ["text-gen-webui"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1505,14 +1330,10 @@ "if": { "properties": { "provider": { - "enum": [ - "flowise" - ] + "enum": ["flowise"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1539,10 +1360,7 @@ "type": "string" } }, - "required": [ - "key", - "value" - ] + "required": ["key", "value"] } }, "additionalFlowiseConfiguration": { @@ -1561,10 +1379,7 @@ "description": "Configuration Property value" } }, - "required": [ - "key", - "value" - ] + "required": ["key", "value"] } }, "model": { @@ -1593,10 +1408,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", @@ -1642,73 +1453,59 @@ "if": { "properties": { "provider": { - "enum": [ - "watsonx" - ] + "enum": ["watsonx"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "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" ] } }, - "required": ["apiBase", "apiKey", "apiVersion"] + "required": ["watsonxUrl", "watsonxProjectId"] } }, { "if": { "properties": { "provider": { - "enum": [ - "sambanova" - ] + "enum": ["sambanova"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { "anyOf": [ { - "enum": [ - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "llama3.2-1b", - "llama3.2-3b" - ] + "enum": ["llama3.1-8b", "llama3.1-70b", "llama3.1-405b"] }, { "type": "string" @@ -1746,9 +1543,7 @@ "type": "string" } }, - "required": [ - "default" - ] + "required": ["default"] }, "SlashCommand": { "title": "SlashCommand", @@ -1805,9 +1600,7 @@ "if": { "properties": { "name": { - "enum": [ - "issue" - ] + "enum": ["issue"] } } }, @@ -1820,23 +1613,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"] } } }, @@ -1861,9 +1648,7 @@ "if": { "properties": { "name": { - "enum": [ - "share" - ] + "enum": ["share"] } } }, @@ -1884,9 +1669,7 @@ "if": { "properties": { "name": { - "enum": [ - "commit" - ] + "enum": ["commit"] } } }, @@ -1904,10 +1687,7 @@ } } ], - "required": [ - "name", - "description" - ] + "required": ["name", "description"] }, "CustomCommand": { "title": "CustomCommand", @@ -1926,11 +1706,7 @@ "type": "string" } }, - "required": [ - "name", - "prompt", - "description" - ] + "required": ["name", "prompt", "description"] }, "ContextProviderWithParams": { "title": "ContextProviderWithParams", @@ -2010,9 +1786,7 @@ "if": { "properties": { "name": { - "enum": [ - "discord" - ] + "enum": ["discord"] } } }, @@ -2045,15 +1819,11 @@ "description": "The name of the channel" } }, - "required": [ - "id" - ] + "required": ["id"] } } }, - "required": [ - "discordKey" - ] + "required": ["discordKey"] } } }, @@ -2062,18 +1832,14 @@ { "properties": { "params": { - "required": [ - "guildId" - ] + "required": ["guildId"] } } }, { "properties": { "params": { - "required": [ - "channels" - ] + "required": ["channels"] } } } @@ -2086,9 +1852,7 @@ "if": { "properties": { "name": { - "enum": [ - "google" - ] + "enum": ["google"] } } }, @@ -2101,26 +1865,14 @@ "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": [ - "web" - ] - } - } - }, + "if": { "properties": { "name": { "enum": ["web"] } } }, "then": { "properties": { "params": { @@ -2134,18 +1886,14 @@ } } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "open" - ] + "enum": ["open"] } } }, @@ -2167,9 +1915,7 @@ "if": { "properties": { "name": { - "enum": [ - "issue" - ] + "enum": ["issue"] } } }, @@ -2198,37 +1944,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"] } } }, @@ -2249,11 +1982,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", @@ -2286,31 +2015,21 @@ "required": [] } }, - "required": [ - "name", - "connection_type", - "connection" - ] + "required": ["name", "connection_type", "connection"] } } }, - "required": [ - "connections" - ] + "required": ["connections"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "gitlab-mr" - ] + "enum": ["gitlab-mr"] } } }, @@ -2331,23 +2050,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"] } } }, @@ -2393,24 +2106,17 @@ ] } }, - "required": [ - "domain", - "token" - ] + "required": ["domain", "token"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "http" - ] + "enum": ["http"] } } }, @@ -2428,24 +2134,17 @@ "type": "object" } }, - "required": [ - "url" - ] + "required": ["url"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "codebase", - "folder" - ] + "enum": ["codebase", "folder"] } } }, @@ -2480,9 +2179,7 @@ "if": { "properties": { "name": { - "enum": [ - "postgres" - ] + "enum": ["postgres"] } } }, @@ -2534,22 +2231,14 @@ } } }, - "required": [ - "host", - "port", - "user", - "password", - "database" - ] + "required": ["host", "port", "user", "password", "database"] } }, { "if": { "properties": { "name": { - "enum": [ - "greptile" - ] + "enum": ["greptile"] } } }, @@ -2572,16 +2261,11 @@ } } }, - "required": [ - "GreptileToken", - "GithubToken" - ] + "required": ["GreptileToken", "GithubToken"] } } ], - "required": [ - "name" - ] + "required": ["name"] }, "SerializedContinueConfig": { "title": "config.json", @@ -2615,10 +2299,7 @@ "description": "The URL path to a favicon for the site - by default, it will be `/favicon.ico` path from the Start URL" } }, - "required": [ - "title", - "startUrl" - ] + "required": ["title", "startUrl"] } }, "allowAnonymousTelemetry": { @@ -2785,44 +2466,29 @@ "type": "string" } }, - "required": [ - "provider" - ], + "required": ["provider"], "allOf": [ { "if": { "properties": { "provider": { - "enum": [ - "cohere", - "voyage", - "nvidia", - "gemini" - ] + "enum": ["cohere", "voyage", "nvidia", "gemini"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "apiKey" - ] + "required": ["apiKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "sagemaker" - ] + "enum": ["sagemaker"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -2830,23 +2496,17 @@ "markdownDescription": "SageMaker endpoint name" } }, - "required": [ - "model" - ] + "required": ["model"] } }, { "if": { "properties": { "provider": { - "enum": [ - "vertex" - ] + "enum": ["vertex"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -2861,11 +2521,7 @@ "default": "text-embedding-004" } }, - "required": [ - "projectId", - "model", - "region" - ] + "required": ["projectId", "model", "region"] } } ] @@ -2888,22 +2544,16 @@ "type": "object" } }, - "required": [ - "name" - ], + "required": ["name"], "allOf": [ { "if": { "properties": { "name": { - "enum": [ - "cohere" - ] + "enum": ["cohere"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2925,9 +2575,7 @@ "type": "string" } }, - "required": [ - "apiKey" - ] + "required": ["apiKey"] } } } @@ -2936,14 +2584,10 @@ "if": { "properties": { "name": { - "enum": [ - "llm" - ] + "enum": ["llm"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2954,9 +2598,7 @@ "type": "string" } }, - "required": [ - "modelTitle" - ] + "required": ["modelTitle"] } } } @@ -2965,14 +2607,10 @@ "if": { "properties": { "name": { - "enum": [ - "voyage" - ] + "enum": ["voyage"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2991,9 +2629,7 @@ ] } }, - "required": [ - "apiKey" - ] + "required": ["apiKey"] } } } @@ -3002,14 +2638,10 @@ "if": { "properties": { "name": { - "enum": [ - "huggingface-tei" - ] + "enum": ["huggingface-tei"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -3026,17 +2658,12 @@ "default": false }, "truncation_direction": { - "enum": [ - "Right", - "Left" - ], + "enum": ["Right", "Left"], "markdownDescription": "Wether to truncate sequences from the `left` or `right`.", "default": "Right" } }, - "required": [ - "apiBase" - ] + "required": ["apiBase"] } }, "if": { @@ -3047,9 +2674,7 @@ } }, "then": { - "required": [ - "truncation_direction" - ] + "required": ["truncation_direction"] } } } @@ -3114,11 +2739,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": { @@ -3147,10 +2768,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." }, @@ -3175,10 +2793,7 @@ "properties": { "provider": { "type": "string", - "enum": [ - "posthog", - "logstash" - ], + "enum": ["posthog", "logstash"], "description": "The 3rd party analytics provider to use.", "default": "posthog", "markdownEnumDescriptions": [ @@ -3195,40 +2810,30 @@ "description": "The client key to use for analytics" } }, - "required": [ - "provider" - ], + "required": ["provider"], "allOf": [ { "if": { "properties": { "provider": { - "enum": [ - "posthog" - ] + "enum": ["posthog"] } } }, "then": { - "required": [ - "clientKey" - ] + "required": ["clientKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "logstash" - ] + "enum": ["logstash"] } } }, "then": { - "required": [ - "url" - ] + "required": ["url"] } } ] @@ -3300,10 +2905,7 @@ "default": false } }, - "required": [ - "prompt", - "title" - ] + "required": ["prompt", "title"] }, "description": "Quick actions are a way to add custom commands to the Code Lens of function and class declarations." }, @@ -3337,4 +2939,4 @@ } } } -} \ No newline at end of file +} diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 439742dfd..a439eb1e3 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -88,10 +88,7 @@ "type": "string" } }, - "required": [ - "cert", - "key" - ] + "required": ["cert", "key"] }, "RequestOptions": { "title": "RequestOptions", @@ -403,10 +400,7 @@ "title": "Api Type", "markdownDescription": "OpenAI API type, either `openai` or `azure`", "x-intellij-html-description": "OpenAI API type, either openai or azure", - "enum": [ - "openai", - "azure" - ] + "enum": ["openai", "azure"] }, "apiVersion": { "title": "Api Version", @@ -429,11 +423,7 @@ } } }, - "required": [ - "title", - "provider", - "model" - ], + "required": ["title", "provider", "model"], "allOf": [ { "if": { @@ -443,9 +433,7 @@ } }, "not": { - "required": [ - "provider" - ] + "required": ["provider"] } }, "then": { @@ -473,67 +461,46 @@ ] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "apiKey" - ] + "required": ["apiKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "bedrockimport" - ] + "enum": ["bedrockimport"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "modelArn" - ] + "required": ["modelArn"] } }, { "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": { @@ -553,14 +520,10 @@ "if": { "properties": { "provider": { - "enum": [ - "cloudflare" - ] + "enum": ["cloudflare"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -618,14 +581,10 @@ "if": { "properties": { "provider": { - "enum": [ - "openai" - ] + "enum": ["openai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -657,14 +616,10 @@ "if": { "properties": { "provider": { - "enum": [ - "replicate" - ] + "enum": ["replicate"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -672,16 +627,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" ] }, { @@ -698,14 +653,10 @@ "if": { "properties": { "provider": { - "enum": [ - "free-trial" - ] + "enum": ["free-trial"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -729,9 +680,7 @@ "if": { "properties": { "provider": { - "enum": [ - "openai" - ] + "enum": ["openai"] }, "apiType": { "not": { @@ -739,9 +688,7 @@ } } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -803,14 +750,10 @@ "if": { "properties": { "provider": { - "enum": [ - "anthropic" - ] + "enum": ["anthropic"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -851,14 +794,10 @@ "if": { "properties": { "provider": { - "enum": [ - "anthropic-vertexai" - ] + "enum": ["anthropic-vertexai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -898,22 +837,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"] } } } @@ -922,14 +854,10 @@ "if": { "properties": { "provider": { - "enum": [ - "bedrock" - ] + "enum": ["bedrock"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -954,14 +882,10 @@ "if": { "properties": { "provider": { - "enum": [ - "sagemaker" - ] + "enum": ["sagemaker"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -975,14 +899,10 @@ "if": { "properties": { "provider": { - "enum": [ - "gemini" - ] + "enum": ["gemini"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1012,14 +932,10 @@ "if": { "properties": { "provider": { - "enum": [ - "gemini-vertexai" - ] + "enum": ["gemini-vertexai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1034,30 +950,21 @@ "gemini-1.5-flash" ] }, - { - "type": "string" - } + { "type": "string" } ] } }, - "required": [ - "projectId", - "region" - ] + "required": ["projectId", "region"] } }, { "if": { "properties": { "provider": { - "enum": [ - "together" - ] + "enum": ["together"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1074,9 +981,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", @@ -1098,14 +1002,10 @@ "if": { "properties": { "provider": { - "enum": [ - "deepinfra" - ] + "enum": ["deepinfra"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1129,9 +1029,7 @@ ] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1152,10 +1050,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", @@ -1184,14 +1078,10 @@ "if": { "properties": { "provider": { - "enum": [ - "ollama" - ] + "enum": ["ollama"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1211,10 +1101,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", @@ -1247,14 +1133,10 @@ "if": { "properties": { "provider": { - "enum": [ - "mistral" - ] + "enum": ["mistral"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1276,50 +1158,33 @@ "if": { "properties": { "provider": { - "enum": [ - "mistral-vertexai" - ] + "enum": ["mistral-vertexai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { "anyOf": [ { - "enum": [ - "codestral", - "mistral-nemo", - "mistral-large" - ] + "enum": ["codestral", "mistral-nemo", "mistral-large"] }, - { - "type": "string" - } + { "type": "string" } ] } }, - "required": [ - "projectId", - "region" - ] + "required": ["projectId", "region"] } }, { "if": { "properties": { "provider": { - "enum": [ - "deepseek" - ] + "enum": ["deepseek"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1336,10 +1201,7 @@ } }, "model": { - "enum": [ - "deepseek-chat", - "deepseek-coder" - ] + "enum": ["deepseek-chat", "deepseek-coder"] } } } @@ -1348,14 +1210,10 @@ "if": { "properties": { "provider": { - "enum": [ - "groq" - ] + "enum": ["groq"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1370,10 +1228,6 @@ "llama3.1-8b", "llama3.1-70b", "llama3.1-405b", - "llama3.2-1b", - "llama3.2-3b", - "llama3.2-11b", - "llama3.2-90b", "AUTODETECT" ] } @@ -1384,21 +1238,15 @@ "if": { "properties": { "provider": { - "enum": [ - "fireworks" - ] + "enum": ["fireworks"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "enum": [ - "starcoder-7b" - ] + "enum": ["starcoder-7b"] } } } @@ -1410,30 +1258,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": { @@ -1450,9 +1288,7 @@ "const": "llamafile" } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1466,22 +1302,15 @@ "if": { "properties": { "provider": { - "enum": [ - "cerebras" - ] + "enum": ["cerebras"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "enum": [ - "llama3.1-8b", - "llama3.1-70b" - ] + "enum": ["llama3.1-8b", "llama3.1-70b"] } } } @@ -1490,14 +1319,10 @@ "if": { "properties": { "provider": { - "enum": [ - "text-gen-webui" - ] + "enum": ["text-gen-webui"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1511,14 +1336,10 @@ "if": { "properties": { "provider": { - "enum": [ - "flowise" - ] + "enum": ["flowise"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1545,10 +1366,7 @@ "type": "string" } }, - "required": [ - "key", - "value" - ] + "required": ["key", "value"] } }, "additionalFlowiseConfiguration": { @@ -1567,10 +1385,7 @@ "description": "Configuration Property value" } }, - "required": [ - "key", - "value" - ] + "required": ["key", "value"] } }, "model": { @@ -1599,10 +1414,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", @@ -1648,77 +1459,59 @@ "if": { "properties": { "provider": { - "enum": [ - "watsonx" - ] + "enum": ["watsonx"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "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" ] } }, - "required": [ - "apiBase", - "apiKey", - "apiVersion" - ] + "required": ["watsonxUrl", "watsonxProjectId"] } }, { "if": { "properties": { "provider": { - "enum": [ - "sambanova" - ] + "enum": ["sambanova"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { "anyOf": [ { - "enum": [ - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "llama3.2-1b", - "llama3.2-3b" - ] + "enum": ["llama3.1-8b", "llama3.1-70b", "llama3.1-405b"] }, { "type": "string" @@ -1756,9 +1549,7 @@ "type": "string" } }, - "required": [ - "default" - ] + "required": ["default"] }, "SlashCommand": { "title": "SlashCommand", @@ -1815,9 +1606,7 @@ "if": { "properties": { "name": { - "enum": [ - "issue" - ] + "enum": ["issue"] } } }, @@ -1830,23 +1619,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"] } } }, @@ -1872,9 +1655,7 @@ "if": { "properties": { "name": { - "enum": [ - "share" - ] + "enum": ["share"] } } }, @@ -1896,9 +1677,7 @@ "if": { "properties": { "name": { - "enum": [ - "commit" - ] + "enum": ["commit"] } } }, @@ -1908,8 +1687,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`.", - "x-intellij-html-description": "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 true, then unstaged changes are also included in the prompt, otherwise only staged changes are included. Default is false." } } } @@ -1917,10 +1696,7 @@ } } ], - "required": [ - "name", - "description" - ] + "required": ["name", "description"] }, "CustomCommand": { "title": "CustomCommand", @@ -1939,11 +1715,7 @@ "type": "string" } }, - "required": [ - "name", - "prompt", - "description" - ] + "required": ["name", "prompt", "description"] }, "ContextProviderWithParams": { "title": "ContextProviderWithParams", @@ -2011,8 +1783,7 @@ "type": "string" } ] - } - }, + }, "params": { "title": "Params", "default": {}, @@ -2024,9 +1795,7 @@ "if": { "properties": { "name": { - "enum": [ - "discord" - ] + "enum": ["discord"] } } }, @@ -2059,15 +1828,11 @@ "description": "The name of the channel" } }, - "required": [ - "id" - ] + "required": ["id"] } } }, - "required": [ - "discordKey" - ] + "required": ["discordKey"] } } }, @@ -2076,18 +1841,14 @@ { "properties": { "params": { - "required": [ - "guildId" - ] + "required": ["guildId"] } } }, { "properties": { "params": { - "required": [ - "channels" - ] + "required": ["channels"] } } } @@ -2100,9 +1861,7 @@ "if": { "properties": { "name": { - "enum": [ - "google" - ] + "enum": ["google"] } } }, @@ -2115,26 +1874,14 @@ "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": [ - "web" - ] - } - } - }, + "if": { "properties": { "name": { "enum": ["web"] } } }, "then": { "properties": { "params": { @@ -2148,18 +1895,14 @@ } } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "open" - ] + "enum": ["open"] } } }, @@ -2181,9 +1924,7 @@ "if": { "properties": { "name": { - "enum": [ - "issue" - ] + "enum": ["issue"] } } }, @@ -2212,37 +1953,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"] } } }, @@ -2263,11 +1991,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", @@ -2300,31 +2024,21 @@ "required": [] } }, - "required": [ - "name", - "connection_type", - "connection" - ] + "required": ["name", "connection_type", "connection"] } } }, - "required": [ - "connections" - ] + "required": ["connections"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "gitlab-mr" - ] + "enum": ["gitlab-mr"] } } }, @@ -2345,23 +2059,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"] } } }, @@ -2408,24 +2116,17 @@ ] } }, - "required": [ - "domain", - "token" - ] + "required": ["domain", "token"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "http" - ] + "enum": ["http"] } } }, @@ -2443,24 +2144,17 @@ "type": "object" } }, - "required": [ - "url" - ] + "required": ["url"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "codebase", - "folder" - ] + "enum": ["codebase", "folder"] } } }, @@ -2495,9 +2189,7 @@ "if": { "properties": { "name": { - "enum": [ - "postgres" - ] + "enum": ["postgres"] } } }, @@ -2549,22 +2241,14 @@ } } }, - "required": [ - "host", - "port", - "user", - "password", - "database" - ] + "required": ["host", "port", "user", "password", "database"] } }, { "if": { "properties": { "name": { - "enum": [ - "greptile" - ] + "enum": ["greptile"] } } }, @@ -2587,16 +2271,11 @@ } } }, - "required": [ - "GreptileToken", - "GithubToken" - ] + "required": ["GreptileToken", "GithubToken"] } } ], - "required": [ - "name" - ] + "required": ["name"] }, "SerializedContinueConfig": { "title": "config.json", @@ -2630,10 +2309,7 @@ "description": "The URL path to a favicon for the site - by default, it will be `/favicon.ico` path from the Start URL" } }, - "required": [ - "title", - "startUrl" - ] + "required": ["title", "startUrl"] } }, "allowAnonymousTelemetry": { @@ -2808,44 +2484,29 @@ "type": "string" } }, - "required": [ - "provider" - ], + "required": ["provider"], "allOf": [ { "if": { "properties": { "provider": { - "enum": [ - "cohere", - "voyage", - "nvidia", - "gemini" - ] + "enum": ["cohere", "voyage", "nvidia", "gemini"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "apiKey" - ] + "required": ["apiKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "sagemaker" - ] + "enum": ["sagemaker"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -2853,23 +2514,17 @@ "description": "SageMaker endpoint name" } }, - "required": [ - "model" - ] + "required": ["model"] } }, { "if": { "properties": { "provider": { - "enum": [ - "vertex" - ] + "enum": ["vertex"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -2884,11 +2539,7 @@ "default": "text-embedding-004" } }, - "required": [ - "projectId", - "model", - "region" - ] + "required": ["projectId", "model", "region"] } } ] @@ -2911,22 +2562,16 @@ "type": "object" } }, - "required": [ - "name" - ], + "required": ["name"], "allOf": [ { "if": { "properties": { "name": { - "enum": [ - "cohere" - ] + "enum": ["cohere"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2948,9 +2593,7 @@ "type": "string" } }, - "required": [ - "apiKey" - ] + "required": ["apiKey"] } } } @@ -2959,14 +2602,10 @@ "if": { "properties": { "name": { - "enum": [ - "llm" - ] + "enum": ["llm"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2977,9 +2616,7 @@ "type": "string" } }, - "required": [ - "modelTitle" - ] + "required": ["modelTitle"] } } } @@ -2988,14 +2625,10 @@ "if": { "properties": { "name": { - "enum": [ - "voyage" - ] + "enum": ["voyage"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -3014,9 +2647,7 @@ ] } }, - "required": [ - "apiKey" - ] + "required": ["apiKey"] } } } @@ -3025,14 +2656,10 @@ "if": { "properties": { "name": { - "enum": [ - "huggingface-tei" - ] + "enum": ["huggingface-tei"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -3049,17 +2676,12 @@ "default": false }, "truncation_direction": { - "enum": [ - "Right", - "Left" - ], + "enum": ["Right", "Left"], "description": "Whether to truncate sequences from the left or right.", "default": "Right" } }, - "required": [ - "apiBase" - ] + "required": ["apiBase"] } }, "if": { @@ -3070,9 +2692,7 @@ } }, "then": { - "required": [ - "truncation_direction" - ] + "required": ["truncation_direction"] } } } @@ -3139,11 +2759,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": { @@ -3172,10 +2788,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." }, @@ -3201,10 +2814,7 @@ "properties": { "provider": { "type": "string", - "enum": [ - "posthog", - "logstash" - ], + "enum": ["posthog", "logstash"], "description": "The 3rd party analytics provider to use.", "default": "posthog", "markdownEnumDescriptions": [ @@ -3221,40 +2831,30 @@ "description": "The client key to use for analytics" } }, - "required": [ - "provider" - ], + "required": ["provider"], "allOf": [ { "if": { "properties": { "provider": { - "enum": [ - "posthog" - ] + "enum": ["posthog"] } } }, "then": { - "required": [ - "clientKey" - ] + "required": ["clientKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "logstash" - ] + "enum": ["logstash"] } } }, "then": { - "required": [ - "url" - ] + "required": ["url"] } } ] @@ -3326,10 +2926,7 @@ "default": false } }, - "required": [ - "prompt", - "title" - ] + "required": ["prompt", "title"] }, "description": "Quick actions are a way to add custom commands to the Code Lens of function and class declarations." }, @@ -3363,4 +2960,4 @@ } } } -} \ No newline at end of file +} diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 32b59486e..a439eb1e3 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -88,10 +88,7 @@ "type": "string" } }, - "required": [ - "cert", - "key" - ] + "required": ["cert", "key"] }, "RequestOptions": { "title": "RequestOptions", @@ -353,6 +350,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 here for an example.", "type": "object", "additionalProperties": { "type": "string" @@ -401,10 +399,8 @@ "apiType": { "title": "Api Type", "markdownDescription": "OpenAI API type, either `openai` or `azure`", - "enum": [ - "openai", - "azure" - ] + "x-intellij-html-description": "OpenAI API type, either openai or azure", + "enum": ["openai", "azure"] }, "apiVersion": { "title": "Api Version", @@ -427,11 +423,7 @@ } } }, - "required": [ - "title", - "provider", - "model" - ], + "required": ["title", "provider", "model"], "allOf": [ { "if": { @@ -441,9 +433,7 @@ } }, "not": { - "required": [ - "provider" - ] + "required": ["provider"] } }, "then": { @@ -471,67 +461,46 @@ ] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "apiKey" - ] + "required": ["apiKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "bedrockimport" - ] + "enum": ["bedrockimport"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "modelArn" - ] + "required": ["modelArn"] } }, { "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": { @@ -551,14 +520,10 @@ "if": { "properties": { "provider": { - "enum": [ - "cloudflare" - ] + "enum": ["cloudflare"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -616,14 +581,10 @@ "if": { "properties": { "provider": { - "enum": [ - "openai" - ] + "enum": ["openai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -655,14 +616,10 @@ "if": { "properties": { "provider": { - "enum": [ - "replicate" - ] + "enum": ["replicate"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -670,16 +627,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 +644,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 here." } } }, @@ -695,14 +653,10 @@ "if": { "properties": { "provider": { - "enum": [ - "free-trial" - ] + "enum": ["free-trial"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -726,9 +680,7 @@ "if": { "properties": { "provider": { - "enum": [ - "openai" - ] + "enum": ["openai"] }, "apiType": { "not": { @@ -736,9 +688,7 @@ } } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -800,14 +750,10 @@ "if": { "properties": { "provider": { - "enum": [ - "anthropic" - ] + "enum": ["anthropic"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -848,14 +794,10 @@ "if": { "properties": { "provider": { - "enum": [ - "anthropic-vertexai" - ] + "enum": ["anthropic-vertexai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -895,22 +837,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"] } } } @@ -919,14 +854,10 @@ "if": { "properties": { "provider": { - "enum": [ - "bedrock" - ] + "enum": ["bedrock"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -951,19 +882,15 @@ "if": { "properties": { "provider": { - "enum": [ - "sagemaker" - ] + "enum": ["sagemaker"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "markdownDescription": "SageMaker endpoint name" + "description": "SageMaker endpoint name" } } } @@ -972,14 +899,10 @@ "if": { "properties": { "provider": { - "enum": [ - "gemini" - ] + "enum": ["gemini"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1009,14 +932,10 @@ "if": { "properties": { "provider": { - "enum": [ - "gemini-vertexai" - ] + "enum": ["gemini-vertexai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1031,30 +950,21 @@ "gemini-1.5-flash" ] }, - { - "type": "string" - } + { "type": "string" } ] } }, - "required": [ - "projectId", - "region" - ] + "required": ["projectId", "region"] } }, { "if": { "properties": { "provider": { - "enum": [ - "together" - ] + "enum": ["together"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1071,9 +981,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 +992,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 here." } } } @@ -1094,19 +1002,16 @@ "if": { "properties": { "provider": { - "enum": [ - "deepinfra" - ] + "enum": ["deepinfra"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "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 here." } } } @@ -1124,9 +1029,7 @@ ] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1147,10 +1050,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", @@ -1179,14 +1078,10 @@ "if": { "properties": { "provider": { - "enum": [ - "ollama" - ] + "enum": ["ollama"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1206,10 +1101,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 +1123,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 here." } } } @@ -1241,14 +1133,10 @@ "if": { "properties": { "provider": { - "enum": [ - "mistral" - ] + "enum": ["mistral"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1270,50 +1158,33 @@ "if": { "properties": { "provider": { - "enum": [ - "mistral-vertexai" - ] + "enum": ["mistral-vertexai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { "anyOf": [ { - "enum": [ - "codestral", - "mistral-nemo", - "mistral-large" - ] + "enum": ["codestral", "mistral-nemo", "mistral-large"] }, - { - "type": "string" - } + { "type": "string" } ] } }, - "required": [ - "projectId", - "region" - ] + "required": ["projectId", "region"] } }, { "if": { "properties": { "provider": { - "enum": [ - "deepseek" - ] + "enum": ["deepseek"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1330,10 +1201,7 @@ } }, "model": { - "enum": [ - "deepseek-chat", - "deepseek-coder" - ] + "enum": ["deepseek-chat", "deepseek-coder"] } } } @@ -1342,14 +1210,10 @@ "if": { "properties": { "provider": { - "enum": [ - "groq" - ] + "enum": ["groq"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1364,10 +1228,6 @@ "llama3.1-8b", "llama3.1-70b", "llama3.1-405b", - "llama3.2-1b", - "llama3.2-3b", - "llama3.2-11b", - "llama3.2-90b", "AUTODETECT" ] } @@ -1378,21 +1238,15 @@ "if": { "properties": { "provider": { - "enum": [ - "fireworks" - ] + "enum": ["fireworks"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "enum": [ - "starcoder-7b" - ] + "enum": ["starcoder-7b"] } } } @@ -1404,30 +1258,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": { @@ -1444,9 +1288,7 @@ "const": "llamafile" } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1460,22 +1302,15 @@ "if": { "properties": { "provider": { - "enum": [ - "cerebras" - ] + "enum": ["cerebras"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "enum": [ - "llama3.1-8b", - "llama3.1-70b" - ] + "enum": ["llama3.1-8b", "llama3.1-70b"] } } } @@ -1484,14 +1319,10 @@ "if": { "properties": { "provider": { - "enum": [ - "text-gen-webui" - ] + "enum": ["text-gen-webui"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1505,14 +1336,10 @@ "if": { "properties": { "provider": { - "enum": [ - "flowise" - ] + "enum": ["flowise"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1539,10 +1366,7 @@ "type": "string" } }, - "required": [ - "key", - "value" - ] + "required": ["key", "value"] } }, "additionalFlowiseConfiguration": { @@ -1561,10 +1385,7 @@ "description": "Configuration Property value" } }, - "required": [ - "key", - "value" - ] + "required": ["key", "value"] } }, "model": { @@ -1593,10 +1414,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", @@ -1642,79 +1459,65 @@ "if": { "properties": { "provider": { - "enum": [ - "watsonx" - ] + "enum": ["watsonx"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "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" ] } }, - "required": ["apiBase", "apiKey", "apiVersion"] + "required": ["watsonxUrl", "watsonxProjectId"] } }, { "if": { "properties": { "provider": { - "enum": [ - "sambanova" - ] + "enum": ["sambanova"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { "anyOf": [ { - "enum": [ - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "llama3.2-1b", - "llama3.2-3b" - ] + "enum": ["llama3.1-8b", "llama3.1-70b", "llama3.1-405b"] }, { "type": "string" } ], - "markdownDescription": "Select a pre-defined option." + "description": "Select a pre-defined option." } } } @@ -1746,9 +1549,7 @@ "type": "string" } }, - "required": [ - "default" - ] + "required": ["default"] }, "SlashCommand": { "title": "SlashCommand", @@ -1805,9 +1606,7 @@ "if": { "properties": { "name": { - "enum": [ - "issue" - ] + "enum": ["issue"] } } }, @@ -1820,23 +1619,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"] } } }, @@ -1846,11 +1639,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 true, 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." } } } @@ -1861,9 +1655,7 @@ "if": { "properties": { "name": { - "enum": [ - "share" - ] + "enum": ["share"] } } }, @@ -1873,7 +1665,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 . 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." } } } @@ -1884,9 +1677,7 @@ "if": { "properties": { "name": { - "enum": [ - "commit" - ] + "enum": ["commit"] } } }, @@ -1896,7 +1687,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 true, then unstaged changes are also included in the prompt, otherwise only staged changes are included. Default is false." } } } @@ -1904,10 +1696,7 @@ } } ], - "required": [ - "name", - "description" - ] + "required": ["name", "description"] }, "CustomCommand": { "title": "CustomCommand", @@ -1926,11 +1715,7 @@ "type": "string" } }, - "required": [ - "name", - "prompt", - "description" - ] + "required": ["name", "prompt", "description"] }, "ContextProviderWithParams": { "title": "ContextProviderWithParams", @@ -2010,9 +1795,7 @@ "if": { "properties": { "name": { - "enum": [ - "discord" - ] + "enum": ["discord"] } } }, @@ -2045,15 +1828,11 @@ "description": "The name of the channel" } }, - "required": [ - "id" - ] + "required": ["id"] } } }, - "required": [ - "discordKey" - ] + "required": ["discordKey"] } } }, @@ -2062,18 +1841,14 @@ { "properties": { "params": { - "required": [ - "guildId" - ] + "required": ["guildId"] } } }, { "properties": { "params": { - "required": [ - "channels" - ] + "required": ["channels"] } } } @@ -2086,9 +1861,7 @@ "if": { "properties": { "name": { - "enum": [ - "google" - ] + "enum": ["google"] } } }, @@ -2101,26 +1874,14 @@ "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": [ - "web" - ] - } - } - }, + "if": { "properties": { "name": { "enum": ["web"] } } }, "then": { "properties": { "params": { @@ -2134,18 +1895,14 @@ } } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "open" - ] + "enum": ["open"] } } }, @@ -2167,9 +1924,7 @@ "if": { "properties": { "name": { - "enum": [ - "issue" - ] + "enum": ["issue"] } } }, @@ -2198,37 +1953,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"] } } }, @@ -2249,11 +1991,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", @@ -2286,31 +2024,21 @@ "required": [] } }, - "required": [ - "name", - "connection_type", - "connection" - ] + "required": ["name", "connection_type", "connection"] } } }, - "required": [ - "connections" - ] + "required": ["connections"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "gitlab-mr" - ] + "enum": ["gitlab-mr"] } } }, @@ -2331,23 +2059,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"] } } }, @@ -2373,7 +2095,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 apiVersion property." }, "requestOptions": { "title": "Request Options", @@ -2393,24 +2116,17 @@ ] } }, - "required": [ - "domain", - "token" - ] + "required": ["domain", "token"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "http" - ] + "enum": ["http"] } } }, @@ -2428,24 +2144,17 @@ "type": "object" } }, - "required": [ - "url" - ] + "required": ["url"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "codebase", - "folder" - ] + "enum": ["codebase", "folder"] } } }, @@ -2480,9 +2189,7 @@ "if": { "properties": { "name": { - "enum": [ - "postgres" - ] + "enum": ["postgres"] } } }, @@ -2534,22 +2241,14 @@ } } }, - "required": [ - "host", - "port", - "user", - "password", - "database" - ] + "required": ["host", "port", "user", "password", "database"] } }, { "if": { "properties": { "name": { - "enum": [ - "greptile" - ] + "enum": ["greptile"] } } }, @@ -2572,16 +2271,11 @@ } } }, - "required": [ - "GreptileToken", - "GithubToken" - ] + "required": ["GreptileToken", "GithubToken"] } } ], - "required": [ - "name" - ] + "required": ["name"] }, "SerializedContinueConfig": { "title": "config.json", @@ -2615,21 +2309,20 @@ "description": "The URL path to a favicon for the site - by default, it will be `/favicon.ico` path from the Start URL" } }, - "required": [ - "title", - "startUrl" - ] + "required": ["title", "startUrl"] } }, "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 the docs.", "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 the documentation.", "default": [ { "title": "GPT-4 (trial)", @@ -2678,6 +2371,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 documentation.", "default": [], "type": "array", "items": { @@ -2686,7 +2380,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 / 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 `/` 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 / in the text input, it will act as a shortcut to the prompt. Learn more in the documentation.", "default": [ { "name": "test", @@ -2702,6 +2397,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 the documentation.", "default": [], "type": "array", "items": { @@ -2716,18 +2412,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 true, 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 true, 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).", + "x-intellij-html-description": "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.", "type": "object", "properties": { "provider": { @@ -2785,94 +2484,69 @@ "type": "string" } }, - "required": [ - "provider" - ], + "required": ["provider"], "allOf": [ { "if": { "properties": { "provider": { - "enum": [ - "cohere", - "voyage", - "nvidia", - "gemini" - ] + "enum": ["cohere", "voyage", "nvidia", "gemini"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "apiKey" - ] + "required": ["apiKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "sagemaker" - ] + "enum": ["sagemaker"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "markdownDescription": "SageMaker endpoint name" + "description": "SageMaker endpoint name" } }, - "required": [ - "model" - ] + "required": ["model"] } }, { "if": { "properties": { "provider": { - "enum": [ - "vertex" - ] + "enum": ["vertex"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "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": { "default": "text-embedding-004" } }, - "required": [ - "projectId", - "model", - "region" - ] + "required": ["projectId", "model", "region"] } } ] }, "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": { @@ -2888,22 +2562,16 @@ "type": "object" } }, - "required": [ - "name" - ], + "required": ["name"], "allOf": [ { "if": { "properties": { "name": { - "enum": [ - "cohere" - ] + "enum": ["cohere"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2925,9 +2593,7 @@ "type": "string" } }, - "required": [ - "apiKey" - ] + "required": ["apiKey"] } } } @@ -2936,14 +2602,10 @@ "if": { "properties": { "name": { - "enum": [ - "llm" - ] + "enum": ["llm"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2954,9 +2616,7 @@ "type": "string" } }, - "required": [ - "modelTitle" - ] + "required": ["modelTitle"] } } } @@ -2965,14 +2625,10 @@ "if": { "properties": { "name": { - "enum": [ - "voyage" - ] + "enum": ["voyage"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2991,9 +2647,7 @@ ] } }, - "required": [ - "apiKey" - ] + "required": ["apiKey"] } } } @@ -3002,14 +2656,10 @@ "if": { "properties": { "name": { - "enum": [ - "huggingface-tei" - ] + "enum": ["huggingface-tei"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -3022,21 +2672,16 @@ }, "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": { - "enum": [ - "Right", - "Left" - ], - "markdownDescription": "Wether to truncate sequences from the `left` or `right`.", + "enum": ["Right", "Left"], + "description": "Whether to truncate sequences from the left or right.", "default": "Right" } }, - "required": [ - "apiBase" - ] + "required": ["apiBase"] } }, "if": { @@ -3047,9 +2692,7 @@ } }, "then": { - "required": [ - "truncation_direction" - ] + "required": ["truncation_direction"] } } } @@ -3058,6 +2701,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.

IMPORTANT:

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", @@ -3079,6 +2723,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 the docs.", "properties": { "disable": { "type": "boolean", @@ -3114,11 +2759,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": { @@ -3147,10 +2788,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." }, @@ -3165,6 +2803,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 true, a scrollbar will be displayed in the chat window to navigate through messages.", "default": false, "type": "boolean" } @@ -3175,10 +2814,7 @@ "properties": { "provider": { "type": "string", - "enum": [ - "posthog", - "logstash" - ], + "enum": ["posthog", "logstash"], "description": "The 3rd party analytics provider to use.", "default": "posthog", "markdownEnumDescriptions": [ @@ -3195,40 +2831,30 @@ "description": "The client key to use for analytics" } }, - "required": [ - "provider" - ], + "required": ["provider"], "allOf": [ { "if": { "properties": { "provider": { - "enum": [ - "posthog" - ] + "enum": ["posthog"] } } }, "then": { - "required": [ - "clientKey" - ] + "required": ["clientKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "logstash" - ] + "enum": ["logstash"] } } }, "then": { - "required": [ - "url" - ] + "required": ["url"] } } ] @@ -3300,10 +2926,7 @@ "default": false } }, - "required": [ - "prompt", - "title" - ] + "required": ["prompt", "title"] }, "description": "Quick actions are a way to add custom commands to the Code Lens of function and class declarations." }, @@ -3337,4 +2960,4 @@ } } } -} \ No newline at end of file +} diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 6110c084a..86304fa6e 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -670,16 +670,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" ] }, { @@ -1071,9 +1071,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", @@ -1147,10 +1144,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 +1199,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", @@ -1364,10 +1353,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 +1578,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 +1634,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 +1663,8 @@ } }, "required": [ - "apiBase", - "apiKey", - "apiVersion" + "watsonxUrl", + "watsonxProjectId" ] } }, @@ -1709,9 +1689,7 @@ "enum": [ "llama3.1-8b", "llama3.1-70b", - "llama3.1-405b", - "llama3.2-1b", - "llama3.2-3b" + "llama3.1-405b" ] }, { From 2f0a7ad1cea6f178f0585874f7881b5e684d96c5 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 28 Oct 2024 14:38:55 -0700 Subject: [PATCH 04/15] Delete config.json --- docs/static/schemas/config.json | 2942 ------------------------------- 1 file changed, 2942 deletions(-) delete mode 100644 docs/static/schemas/config.json diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json deleted file mode 100644 index fbb9053fa..000000000 --- a/docs/static/schemas/config.json +++ /dev/null @@ -1,2942 +0,0 @@ -{ - "title": "config.json", - "$ref": "#/definitions/SerializedContinueConfig", - "definitions": { - "BaseCompletionOptions": { - "title": "BaseCompletionOptions", - "type": "object", - "properties": { - "stream": { - "title": "Stream", - "description": "Whether to stream the LLM response. Currently only respected by the 'anthropic' provider. Otherwise will always stream.", - "type": "boolean", - "default": true - }, - "temperature": { - "title": "Temperature", - "description": "The temperature of the completion.", - "type": "number" - }, - "topP": { - "title": "Top P", - "description": "The topP of the completion.", - "type": "number" - }, - "topK": { - "title": "Top K", - "description": "The topK of the completion.", - "type": "integer" - }, - "presencePenalty": { - "title": "Presence Penalty", - "description": "The presence penalty Aof the completion.", - "type": "number" - }, - "frequencePenalty": { - "title": "Frequency Penalty", - "description": "The frequency penalty of the completion.", - "type": "number" - }, - "mirostat": { - "title": "Mirostat", - "description": "Enable Mirostat sampling, controlling perplexity during text generation (default: 0, 0 = disabled, 1 = Mirostat, 2 = Mirostat 2.0). Only available for Ollama, LM Studio, and llama.cpp providers", - "type": "number" - }, - "stop": { - "title": "Stop", - "description": "The stop tokens of the completion.", - "type": "array", - "items": { - "type": "string" - } - }, - "maxTokens": { - "title": "Max Tokens", - "description": "The maximum number of tokens to generate.", - "default": 600, - "type": "integer" - }, - "numThreads": { - "title": "Number of threads", - "description": "The number of threads used in the generation process. Only available for Ollama (this is the num_thread parameter)", - "type": "integer" - }, - "keepAlive": { - "title": "Ollama keep_alive", - "description": "The number of seconds after no requests are made to unload the model from memory. Defaults to 60*30 = 30min", - "type": "integer" - } - } - }, - "ClientCertificateOptions": { - "title": "ClientCertificateOptions", - "type": "object", - "properties": { - "cert": { - "title": "Cert Path", - "description": "Path to the client certificate file", - "type": "string" - }, - "key": { - "title": "Key Path", - "description": "Path to the client certificate key file", - "type": "string" - }, - "passphrase": { - "title": "Passphrase", - "description": "Passphrase for the client certificate key file", - "type": "string" - } - }, - "required": ["cert", "key"] - }, - "RequestOptions": { - "title": "RequestOptions", - "type": "object", - "properties": { - "timeout": { - "title": "Timeout", - "description": "Set the timeout for each request to the LLM. If you are running a local LLM that takes a while to respond, you might want to set this to avoid timeouts.", - "default": 7200, - "type": "integer" - }, - "verifySsl": { - "title": "Verify Ssl", - "description": "Whether to verify SSL certificates for requests.", - "type": "boolean" - }, - "caBundlePath": { - "title": "Ca Bundle Path", - "description": "Path to a custom CA bundle to use when making the HTTP request", - "anyOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - }, - "proxy": { - "title": "Proxy", - "description": "Proxy URL to use when making the HTTP request", - "type": "string" - }, - "headers": { - "title": "Headers", - "description": "Headers to use when making the HTTP request", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "extraBodyProperties": { - "title": "Extra Body Properties", - "description": "This object will be merged with the body when making the HTTP requests", - "type": "object" - }, - "noProxy": { - "title": "No Proxy", - "description": "A list of hostnames for which Continue should not use the proxy specified in requestOptions.proxy", - "type": "array", - "items": { - "type": "string" - } - }, - "clientCertificate": { - "title": "Client Certificate", - "description": "Client certificate to use when making the HTTP request", - "$ref": "#/definitions/ClientCertificateOptions" - } - } - }, - "ModelDescription": { - "title": "ModelDescription", - "type": "object", - "properties": { - "title": { - "title": "Title", - "description": "The title you wish to give your model.", - "type": "string" - }, - "provider": { - "title": "Provider", - "description": "The provider of the model. This is used to determine the type of model, and how to interact with it.", - "enum": [ - "openai", - "free-trial", - "anthropic", - "anthropic-vertexai", - "cohere", - "bedrock", - "bedrockimport", - "sagemaker", - "together", - "ollama", - "huggingface-tgi", - "huggingface-inference-api", - "llama.cpp", - "replicate", - "gemini", - "gemini-vertexai", - "lmstudio", - "llamafile", - "mistral", - "mistral-vertexai", - "deepinfra", - "groq", - "fireworks", - "cloudflare", - "deepseek", - "azure", - "msty", - "watsonx", - "openrouter", - "sambanova", - "nvidia", - "vllm", - "cerebras" - ], - "markdownEnumDescriptions": [ - "### OpenAI\nUse gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/openai)", - "### Free Trial\nNew users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.json where it says `apiKey=\"\"` or select another model provider.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/freetrial)", - "### Anthropic\nTo get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/anthropicllm)", - "### Anthropic Vertex AI\nTo get started you need to enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) and set up the [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).", - "### Cohere\nTo use Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/cohere)", - "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", - "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", - "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", - "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", - "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", - "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", - "### Llama.cpp\nllama.cpp comes with a [built-in server](https://github.com/ggerganov/llama.cpp/tree/master/examples/server#llamacppexampleserver) that can be run from source. To do this:\n\n1. Clone the repository with `git clone https://github.com/ggerganov/llama.cpp`.\n2. `cd llama.cpp`\n3. Run `make` to build the server.\n4. Download the model you'd like to use and place it in the `llama.cpp/models` directory (the best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke))\n5. Run the llama.cpp server with the command below (replacing with the model you downloaded):\n\n```shell\n.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf\n```\n\nAfter it's up and running, you can start using Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/llamacpp)", - "### Replicate\nReplicate is a hosted service that makes it easy to run ML models. To get started with Replicate:\n1. Obtain an API key from [here](https://replicate.com)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/replicatellm)", - "### Gemini API\nTo get started with Google Makersuite, obtain your API key from [here](https://makersuite.google.com) and paste it below.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/geminiapi)", - "### Gemini API on Vertex AI\nTo get started you need to enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) and set up the [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).", - "### LMStudio\nLMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started:\n1. Download from [lmstudio.ai](https://lmstudio.ai/) and open the application\n2. Search for and download the desired model from the home screen of LMStudio.\n3. In the left-bar, click the '<->' icon to open the Local Inference Server and press 'Start Server'.\n4. Once your model is loaded and the server has started, you can begin using Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/lmstudio)", - "### Llamafile\nTo get started with llamafiles, find and download a binary on their [GitHub repo](https://github.com/Mozilla-Ocho/llamafile#binary-instructions). Then run it with the following command:\n\n```shell\nchmod +x ./llamafile\n./llamafile\n```\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/llamafile)", - "### Mistral API\n\nTo get access to the Mistral API, obtain your API key from the [Mistral platform](https://docs.mistral.ai/)", - "### Mistral API on Vertex AI\nTo get started you need to enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) and set up the [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).", - "### DeepInfra\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/deepinfra)", - "### Groq\nGroq provides extremely fast inference of open-source language models. To get started, obtain an API key from [their console](https://console.groq.com/keys).", - "### Fireworks\nFireworks is a fast inference engine for open-source language models. To get started, obtain an API key from [their console](https://fireworks.ai/api-keys).", - "### Cloudflare Workers AI\n\n[Reference](https://developers.cloudflare.com/workers-ai/)", - "### Deepseek\n Deepseek's API provides the best pricing for their state-of-the-art Deepseek Coder models. To get started, obtain an API key from [their console](https://platform.deepseek.com/api_keys)", - "### Azure OpenAI\n Azure OpenAI lets you securely run OpenAI's models on Azure. To get started, follow the steps [here](https://docs.continue.dev/reference/Model%20Providers/azure)", - "### Msty\nMsty is the simplest way to get started with online or local LLMs on all desktop platforms - Windows, Mac, and Linux. No fussing around, one-click and you are up and running. To get started, follow these steps:\n1. Download from [Msty.app](https://msty.app/), open the application, and click 'Setup Local AI'.\n2. Go to the Local AI Module page and download a model of your choice.\n3. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://continue.dev/docs/reference/Model%20Providers/Msty)", - "### IBM watsonx\nwatsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks.", - "### OpenRouter\nOpenRouter offers a single API to access almost any language model. To get started, obtain an API key from [their console](https://openrouter.ai/settings/keys).", - "### NVIDIA NIMs\nNVIDIA offers a single API to access almost any language model. To find out more, visit the [LLM APIs Documentation](https://docs.api.nvidia.com/nim/reference/llm-apis).\nFor information specific to getting a key, please check out the [docs here](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog)", - "### vLLM\nvLLM is a highly performant way of hosting LLMs for a team. To get started, follow their [quickstart](https://docs.vllm.ai/en/latest/getting_started/quickstart.html) to set up your server.", - "### Cerebras\nCerebras Inference uses specialized silicon to provides superfast inference. To get started, get your API keys from [their console](https://cloud.cerebras.ai/)." - ], - "type": "string" - }, - "model": { - "title": "Model", - "description": "The name of the model. Used to autodetect prompt template.", - "type": "string" - }, - "apiKey": { - "title": "Api Key", - "description": "OpenAI, Anthropic, Cohere, Together, or other API key", - "type": "string" - }, - "apiBase": { - "title": "Api Base", - "description": "The base URL of the LLM API.", - "type": "string" - }, - "region": { - "title": "Region", - "description": "The region where the model is hosted", - "anyOf": [ - { - "enum": [ - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - "eu-west-1", - "eu-central-1", - "ap-southeast-1", - "ap-northeast-1", - "ap-south-1", - "us-central1", - "us-east1", - "us-east4", - "us-east5", - "us-west1", - "us-west4", - "us-south1", - "northamerica-northeast1", - "southamerica-east1", - "europe-central2", - "europe-north1", - "europe-west1", - "europe-west2", - "europe-west3", - "europe-west4", - "europe-west6", - "europe-west8", - "europe-west9", - "europe-southwest1", - "asia-east1", - "asia-east2", - "asia-south1", - "asia-northeast1", - "asia-northeast3", - "asia-southeast1", - "australia-southeast1", - "me-central1", - "me-central2", - "me-west1" - ], - "type": "string" - }, - { - "type": "string" - } - ] - }, - "profile": { - "title": "Profile", - "description": "The AWS security profile to use", - "type": "string" - }, - "modelArn": { - "title": "Profile", - "description": "The AWS arn for the imported model", - "type": "string" - }, - "contextLength": { - "title": "Context Length", - "description": "The maximum context length of the LLM in tokens, as counted by countTokens.", - "default": 2048, - "type": "integer" - }, - "maxStopWords": { - "title": "Max Stop Words", - "description": "The maximum number of stop words that the API will accept. You can set this if you are receiving an error about the number of stop words, but otherwise should leave it undefined.", - "type": "integer" - }, - "template": { - "title": "Template", - "description": "The chat template used to format messages. This is auto-detected for most models, but can be overridden here. Choose none if you are using vLLM or another server that automatically handles prompting.", - "enum": [ - "llama2", - "alpaca", - "zephyr", - "phi2", - "phind", - "anthropic", - "chatml", - "none", - "deepseek", - "openchat", - "xwin-coder", - "neural-chat", - "codellama-70b", - "llava", - "gemma", - "llama3" - ], - "type": "string" - }, - "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.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "completionOptions": { - "title": "Completion Options", - "description": "Options for the completion endpoint. Read more about the completion options in the documentation.", - "default": { - "temperature": null, - "topP": null, - "topK": null, - "presencePenalty": null, - "frequencyPenalty": null, - "stop": null, - "maxTokens": 600 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "systemMessage": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "requestOptions": { - "title": "Request Options", - "description": "Options for the HTTP request to the LLM.", - "default": { - "timeout": 7200, - "verifySsl": null, - "caBundlePath": null, - "proxy": null, - "headers": null, - "extraBodyProperties": null - }, - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - }, - "apiType": { - "title": "Api Type", - "markdownDescription": "OpenAI API type, either `openai` or `azure`", - "enum": ["openai", "azure"] - }, - "apiVersion": { - "title": "Api Version", - "description": "Azure OpenAI API version (e.g. 2023-07-01-preview)", - "type": "string" - }, - "engine": { - "title": "Engine", - "description": "Azure OpenAI engine", - "type": "string" - }, - "capabilities": { - "type": "object", - "description": "We will attempt to automatically detect the capabilities of the model based on its title and provider, but this may not always be accurate. You can override the model's capabilities here.", - "properties": { - "uploadImage": { - "type": "boolean", - "description": "Indicates whether the model can upload images." - } - } - } - }, - "required": ["title", "provider", "model"], - "allOf": [ - { - "if": { - "properties": { - "provider": { - "type": "str" - } - }, - "not": { - "required": ["provider"] - } - }, - "then": { - "properties": { - "model": { - "description": "Choose a provider first, then model options will be shown here." - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "openai", - "anthropic", - "cohere", - "gemini", - "huggingface-inference-api", - "replicate", - "together", - "cloudflare", - "sambanova" - ] - } - }, - "required": ["provider"] - }, - "then": { - "required": ["apiKey"] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["bedrockimport"] - } - }, - "required": ["provider"] - }, - "then": { - "required": ["modelArn"] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["huggingface-tgi", "huggingface-inference-api"] - } - } - }, - "then": { - "required": ["apiBase"] - }, - "required": ["provider"] - }, - { - "if": { - "properties": { - "provider": { - "enum": ["openai"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "engine": { - "type": "string" - }, - "apiType": { - "type": "string" - }, - "apiVersion": { - "type": "string" - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["cloudflare"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "accountId": { - "type": "string" - }, - "aiGatewaySlug": { - "type": "string" - }, - "model": { - "anyOf": [ - { - "enum": [ - "@cf/meta/llama-3-8b-instruct", - "@hf/thebloke/deepseek-coder-6.7b-instruct-awq", - "@cf/deepseek-ai/deepseek-math-7b-instruct", - "@cf/thebloke/discolm-german-7b-v1-awq", - "@cf/tiiuae/falcon-7b-instruct", - "@cf/google/gemma-2b-it-lora", - "@hf/google/gemma-7b-it", - "@cf/google/gemma-7b-it-lora", - "@hf/nousresearch/hermes-2-pro-mistral-7b", - "@cf/meta/llama-2-7b-chat-fp16", - "@cf/meta/llama-2-7b-chat-int8", - "@cf/meta-llama/llama-2-7b-chat-hf-lora", - "@hf/thebloke/llama-2-13b-chat-awq", - "@hf/thebloke/llamaguard-7b-awq", - "@cf/mistral/mistral-7b-instruct-v0.1", - "@hf/mistral/mistral-7b-instruct-v0.2", - "@cf/mistral/mistral-7b-instruct-v0.2-lora", - "@hf/thebloke/neural-chat-7b-v3-1-awq", - "@cf/openchat/openchat-3.5-0106", - "@hf/thebloke/openhermes-2.5-mistral-7b-awq", - "@cf/microsoft/phi-2", - "@cf/qwen/qwen1.5-0.5b-chat", - "@cf/qwen/qwen1.5-1.8b-chat", - "@cf/qwen/qwen1.5-7b-chat-awq", - "@cf/qwen/qwen1.5-14b-chat-awq", - "@cf/defog/sqlcoder-7b-2", - "@hf/nexusflow/starling-lm-7b-beta", - "@cf/tinyllama/tinyllama-1.1b-chat-v1.0", - "@hf/thebloke/zephyr-7b-beta-awq", - "@hf/thebloke/deepseek-coder-6.7b-base-awq" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["openai"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k", - "gpt-4o", - "gpt-4o-mini", - "gpt-4", - "gpt-3.5-turbo-0613", - "gpt-4-32k", - "gpt-4-0125-preview", - "gpt-4-turbo", - "AUTODETECT" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["replicate"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "llama3-8b", - "llama3-70b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "llama2-7b", - "llama2-13b" - ] - }, - { - "type": "string" - } - ] - }, - "markdownDescription": "Select a pre-defined option, or find an exact model ID from Replicate [here](https://replicate.com/collections/streaming-language-models)." - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["free-trial"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "enum": [ - "gpt-4o", - "codestral-latest", - "llama3.1-70b", - "llama3.1-405b", - "gpt-3.5-turbo", - "gemini-pro", - "claude-3-5-sonnet-20240620", - "claude-3-haiku-20240307", - "AUTODETECT" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["openai"] - }, - "apiType": { - "not": { - "const": "azure" - } - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k", - "gpt-4o", - "gpt-4o-mini", - "gpt-4", - "gpt-3.5-turbo-0613", - "gpt-4-32k", - "gpt-4-turbo", - "gpt-4-vision-preview", - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "neural-chat-7b", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b", - "mistral-tiny", - "mistral-small", - "mistral-medium", - "AUTODETECT" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["anthropic"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "cacheBehavior": { - "title": "Caching Behavior", - "description": "Options for the prompt caching", - "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" - } - } - }, - "model": { - "anyOf": [ - { - "enum": [ - "claude-2", - "claude-instant-1", - "claude-3-5-sonnet-20240620", - "claude-3-opus-20240229", - "claude-3-sonnet-20240229", - "claude-3-haiku-20240307", - "claude-2.1" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["anthropic-vertexai"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "cacheBehavior": { - "title": "Caching Behavior", - "description": "Options for the prompt caching", - "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" - } - } - }, - "model": { - "anyOf": [ - { - "enum": [ - "claude-3-5-opus", - "claude-3-5-sonnet", - "claude-3-5-haiku", - "claude-3-opus", - "claude-3-sonnet", - "claude-3-haiku" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["cohere"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "enum": ["command-r", "command-r-plus"] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["bedrock"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "claude-3-sonnet-20240229", - "claude-3-haiku-20240307", - "claude-2" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["sagemaker"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "markdownDescription": "SageMaker endpoint name" - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["gemini"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "cacheBehavior": { - "title": "Caching Behavior", - "description": "Options for the prompt caching", - "properties": { - "cacheSystemMessage": { - "type": "boolean" - } - } - }, - "model": { - "enum": [ - "chat-bison-001", - "gemini-pro", - "gemini-1.5-pro-latest", - "gemini-1.5-pro", - "gemini-1.5-flash-latest", - "gemini-1.5-flash" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["gemini-vertexai"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "gemini-pro", - "gemini-1.5-pro-latest", - "gemini-1.5-pro", - "gemini-1.5-flash-latest", - "gemini-1.5-flash" - ] - }, - { "type": "string" } - ] - } - }, - "required": ["projectId", "region"] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["together"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "phind-codellama-34b" - ] - }, - { - "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)." - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["deepinfra"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "markdownDescription": "Find the model name you want to use from DeepInfra [here](https://deepinfra.com/models?type=text-generation)." - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": [ - "huggingface-tgi", - "huggingface-inference-api", - "llama.cpp", - "text-gen-webui", - "llamafile" - ] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "neural-chat-7b", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["ollama"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": [ - "mistral-7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "phi-2", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "neural-chat-7b", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b", - "AUTODETECT" - ] - }, - { - "type": "string" - } - ], - "markdownDescription": "Select a pre-defined option, or find the exact model tag for an Ollama model [here](https://ollama.ai/library)." - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["mistral"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "enum": [ - "codestral-latest", - "codestral-mamba-latest", - "open-mistral-7b", - "open-mixtral-8x7b", - "open-mixtral-8x22b", - "mistral-small-latest", - "mistral-large-latest" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["mistral-vertexai"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": ["codestral", "mistral-nemo", "mistral-large"] - }, - { "type": "string" } - ] - } - }, - "required": ["projectId", "region"] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["deepseek"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "cacheBehavior": { - "title": "Caching Behavior", - "description": "Options for the prompt caching", - "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" - } - } - }, - "model": { - "enum": ["deepseek-chat", "deepseek-coder"] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["groq"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "enum": [ - "llama2-70b", - "mistral-8x7b", - "gemma", - "gemma2", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "AUTODETECT" - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["fireworks"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "enum": ["starcoder-7b"] - } - } - } - }, - { - "if": { - "properties": { - "apiType": { - "const": "azure" - } - }, - "required": ["apiType"] - }, - "then": { - "required": ["engine", "apiVersion", "apiBase"] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["openai"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "useLegacyCompletionsEndpoint": { - "type": "boolean" - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "const": "llamafile" - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "llamafileCommand": { - "type": "string" - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["cerebras"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "enum": ["llama3.1-8b", "llama3.1-70b"] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["text-gen-webui"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "streamingUrl": { - "type": "string" - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["flowise"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "timeout": { - "title": "Timeout", - "description": "Set the timeout for each request to Flowise. If you are running a local version of Flowise it might takes a while to respond, you might want to set this to avoid timeouts.", - "default": 5000, - "type": "integer" - }, - "additionalHeaders": { - "description": "A list of additional headers", - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "title": "Key", - "description": "Header key", - "type": "string" - }, - "value": { - "title": "Value", - "description": "Header value", - "type": "string" - } - }, - "required": ["key", "value"] - } - }, - "additionalFlowiseConfiguration": { - "description": "A list of additional properties to be sent along `overrideConfig`", - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "title": "Key", - "description": "Configuration Property key", - "type": "string" - }, - "value": { - "title": "Value", - "description": "Configuration Property value" - } - }, - "required": ["key", "value"] - } - }, - "model": { - "anyOf": [ - { - "enum": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k", - "gpt-4o", - "gpt-4o-mini", - "gpt-4", - "gpt-3.5-turbo-0613", - "gpt-4-32k", - "gpt-4-turbo", - "gpt-4-vision-preview", - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "claude-2", - "claude-instant-1", - "claude-3-5-sonnet-20240620", - "claude-3-opus-20240229", - "claude-3-sonnet-20240229", - "claude-3-haiku-20240307", - "claude-2.1", - "command-r", - "command-r-plus", - "chat-bison-001", - "gemini-pro", - "gemini-1.5-pro-latest", - "gemini-1.5-pro", - "gemini-1.5-flash-latest", - "gemini-1.5-flash", - "mistral-tiny", - "mistral-small", - "mistral-medium", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b" - ] - }, - { - "type": "string" - } - ] - } - } - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["watsonx"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "watsonxUrl": { - "type": "string" - }, - "watsonxApiKey": { - "type": "string" - }, - "watsonxApiVersion": { - "type": "string" - }, - "watsonxProjectId": { - "type": "string" - }, - "watsonxStopToken": { - "type": "string" - }, - "watsonxFullUrl": { - "type": "string" - }, - "model": { - "enum": [ - "ibm/granite-13b-chat-v2", - "ibm/granite-20b-code-instruct", - "mistralai/mistral-large", - "meta-llama/llama-3-8b-instruct", - "meta-llama/llama-3-70b-instruct" - ] - } - }, - "required": ["watsonxUrl", "watsonxProjectId"] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["sambanova"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "anyOf": [ - { - "enum": ["llama3.1-8b", "llama3.1-70b", "llama3.1-405b"] - }, - { - "type": "string" - } - ], - "markdownDescription": "Select a pre-defined option." - } - } - } - } - ] - }, - "ModelRoles": { - "title": "ModelRoles", - "type": "object", - "properties": { - "default": { - "title": "Default", - "description": "The default model. If other model roles are not set, they will fall back to default.", - "type": "string" - }, - "chat": { - "title": "Chat", - "description": "The model to use for chat. If not set, will fall back to default.", - "type": "string" - }, - "edit": { - "title": "Edit", - "description": "The model to use for editing. If not set, will fall back to default.", - "type": "string" - }, - "summarize": { - "title": "Summarize", - "description": "The model to use for summarization. If not set, will fall back to default.", - "type": "string" - } - }, - "required": ["default"] - }, - "SlashCommand": { - "title": "SlashCommand", - "type": "object", - "properties": { - "name": { - "title": "Name", - "anyOf": [ - { - "enum": [ - "issue", - "share", - "cmd", - "edit", - "comment", - "http", - "commit", - "review" - ], - "type": "string", - "markdownEnumDescriptions": [ - "Generate a link to a drafted GitHub issue", - "Export the current chat session to markdown", - "Generate a terminal command and paste it into the terminal", - "Edit the highlighted code with given instructions", - "Add comments to the highlighted code", - "Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup.", - "Generate a commit message for the current changes", - "Review code and give feedback" - ] - }, - { - "type": "string" - } - ] - }, - "description": { - "title": "Description", - "type": "string" - }, - "step": { - "title": "Step", - "description": "This property is no longer required and has no effect. To use a built-in slash command, instead set the 'name' property to one of the pre-configured options.", - "type": "string" - }, - "params": { - "title": "Params", - "default": {}, - "type": "object" - } - }, - "allOf": [ - { - "if": { - "properties": { - "name": { - "enum": ["issue"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "repositoryUrl": { - "type": "string", - "description": "Enter the URL of the GitHub repository for which you want to generate the issue." - } - }, - "required": ["repositoryUrl"] - } - }, - "required": ["params"] - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["edit"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "recap": { - "type": "boolean", - "markdownDescription": "If recap is set to `true`, 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." - } - } - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["share"] - } - } - }, - "then": { - "properties": { - "params": { - "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." - } - } - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["commit"] - } - } - }, - "then": { - "properties": { - "params": { - "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." - } - } - } - } - } - } - ], - "required": ["name", "description"] - }, - "CustomCommand": { - "title": "CustomCommand", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "prompt": { - "title": "Prompt", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - } - }, - "required": ["name", "prompt", "description"] - }, - "ContextProviderWithParams": { - "title": "ContextProviderWithParams", - "type": "object", - "properties": { - "name": { - "title": "Name", - "anyOf": [ - { - "enum": [ - "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" - ], - "markdownEnumDescriptions": [ - "Reference the contents of the current changes as given by `git diff`", - "Reference the last terminal command", - "Reference the contents of the local variables in the debugger with top n level (defaulting to 3) of call stack for that thread", - "Reference the contents of all open or pinned files.", - "Enter a search phrase and include the Google search results as context", - "Reference the results of a ripgrep search in your codebase", - "Write a custom context provider at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup.", - "Use embeddings to automatically find relevant files from throughout the codebase", - "Reference all linting errors and warnings in the currently open file", - "Include important files from a folder in the prompt, as determined by similarity search", - "Reference GitHub issues from a repository", - "Retrieve important pages from a documentation website, as determined by similarity search", - "Display a file tree of the current workspace", - "Include important highlighted sections from your code", - "Include a repo map showing important code objects", - "References Postgres table schema and sample rows", - "Reference specific functions and classes from throughout your codebase", - "Reference the contents of the currently active file", - "Reference the contents of a page at a URL", - "Reference table schemas", - "Operating system and CPU Information", - "Map of files in the repository with important code highlights", - "Query your greptile index of the current repo", - "Search the web for sources related to your question" - ], - "type": "string" - }, - { - "type": "string" - } - ] - }, - "params": { - "title": "Params", - "default": {}, - "type": "object" - } - }, - "allOf": [ - { - "if": { - "properties": { - "name": { - "enum": ["discord"] - } - } - }, - "then": { - "allOf": [ - { - "properties": { - "params": { - "properties": { - "discordKey": { - "type": "string", - "description": "Your Discord bot token to access the Discord API. Required to fetch messages from servers." - }, - "guildId": { - "type": "string", - "description": "The ID of the guild (server) from which to fetch channels and messages." - }, - "channels": { - "type": "array", - "description": "A list of channel objects to search for messages", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The unique ID of the channel" - }, - "name": { - "type": "string", - "description": "The name of the channel" - } - }, - "required": ["id"] - } - } - }, - "required": ["discordKey"] - } - } - }, - { - "oneOf": [ - { - "properties": { - "params": { - "required": ["guildId"] - } - } - }, - { - "properties": { - "params": { - "required": ["channels"] - } - } - } - ] - } - ] - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["google"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "serperApiKey": { - "type": "string", - "description": "Your API key for https://serper.dev in order to get Google search results" - } - }, - "required": ["serperApiKey"] - } - }, - "required": ["params"] - } - }, - { - "if": { "properties": { "name": { "enum": ["web"] } } }, - "then": { - "properties": { - "params": { - "properties": { - "n": { - "title": "N", - "description": "The number of results to return", - "default": 6, - "type": "integer" - } - } - } - }, - "required": ["params"] - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["open"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "onlyPinned": { - "type": "boolean", - "description": "If set to true, only 'pinned' files will be included.", - "default": false - } - } - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["issue"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "githubToken": { - "type": "string", - "description": "Your GitHub token to access the GitHub API. Required for private repositories." - }, - "repos": { - "type": "array", - "description": "A list of repositories to search for issues", - "items": { - "type": "object", - "properties": { - "owner": { - "type": "string", - "description": "The owner of the repository" - }, - "repo": { - "type": "string", - "description": "The name of the repository" - }, - "type": { - "type": "string", - "description": "The type of issues to search for", - "enum": ["open", "closed", "all"] - } - }, - "required": ["owner", "repo"] - } - } - }, - "required": ["repos"] - } - }, - "required": ["params"] - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["database"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "connections": { - "type": "array", - "description": "A list of database connections", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name for this database connection" - }, - "connection_type": { - "type": "string", - "description": "The type of database (e.g., 'postgres', 'mysql')", - "enum": ["postgres", "mysql", "sqlite"] - }, - "connection": { - "type": "object", - "properties": { - "user": { - "type": "string", - "description": "The database user name" - }, - "host": { - "type": "string", - "description": "The host address of the database server" - }, - "database": { - "type": "string", - "description": "The name of the database to connect to" - }, - "password": { - "type": "string", - "description": "The password for the database user" - }, - "port": { - "type": "integer", - "description": "The port number to connect to at the host" - }, - "filename": { - "type": "string", - "description": "File location for simple file DB's" - } - }, - "required": [] - } - }, - "required": ["name", "connection_type", "connection"] - } - } - }, - "required": ["connections"] - } - }, - "required": ["params"] - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["gitlab-mr"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "domain": { - "type": "string", - "description": "Your GitLab domain, will default to gitlab.com" - }, - "token": { - "type": "string", - "description": "Your private access token." - }, - "filterComments": { - "type": "boolean", - "description": "If you have code selected, filters out comments that aren't related to the selection." - } - }, - "required": ["token"] - } - }, - "required": ["params"] - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["jira"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "domain": { - "type": "string", - "description": "Your Jira domain, for example company.atlassian.net." - }, - "email": { - "type": "string", - "description": "The email that you log into Jira with" - }, - "token": { - "type": "string", - "description": "Your atlassian API token from https://id.atlassian.com/manage-profile/security/api-tokens" - }, - "issueQuery": { - "type": "string", - "description": "Customize the query used to find Jira issues" - }, - "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." - }, - "requestOptions": { - "title": "Request Options", - "description": "Options for the HTTPS request to Jira.", - "default": { - "timeout": 7200, - "verifySsl": null, - "caBundlePath": null, - "proxy": null, - "headers": null, - "extraBodyProperties": null - }, - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - } - }, - "required": ["domain", "token"] - } - }, - "required": ["params"] - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["http"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "url": { - "type": "string", - "description": "The HTTP endpoint of your context provider server." - }, - "options": { - "title": "Custom Options", - "description": "Additional options to pass to your custom HTTP server.", - "type": "object" - } - }, - "required": ["url"] - } - }, - "required": ["params"] - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["codebase", "folder"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "nRetrieve": { - "title": "N Retrieve", - "description": "Number of results to initially retrieve from vector database", - "default": 50, - "type": "integer" - }, - "nFinal": { - "title": "N Final", - "description": "Final number of results to use after re-ranking", - "default": 10, - "type": "integer" - }, - "useReranking": { - "title": "Use Reranking", - "description": "Whether to use re-ranking, which will allow initial selection of nRetrieve results, then will use an LLM to select the top nFinal results. Disabling re-ranking will give faster, but less accurate, results.", - "default": true, - "type": "boolean" - } - } - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["postgres"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "host": { - "title": "Host", - "description": "Database host", - "default": "localhost", - "type": "string" - }, - "port": { - "title": "Port", - "description": "Database port", - "default": 5432, - "type": "integer" - }, - "user": { - "title": "User", - "description": "Database user", - "default": "postgres", - "type": "string" - }, - "password": { - "title": "Password", - "description": "Database password", - "type": "string" - }, - "database": { - "title": "Database", - "description": "Database name", - "default": "postgres", - "type": "string" - }, - "schema": { - "title": "Schema", - "description": "Database schema", - "default": "public", - "type": "string" - }, - "sampleRows": { - "title": "Sample Rows", - "description": "Number of rows to sample from the database", - "default": 3, - "type": "integer" - } - } - } - }, - "required": ["host", "port", "user", "password", "database"] - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["greptile"] - } - } - }, - "then": { - "properties": { - "params": { - "properties": { - "GithubToken": { - "title": "GithubToken", - "description": "Your github access token", - "default": "", - "type": "string" - }, - "GreptileToken": { - "title": "GreptileToken", - "description": "Your greptile access token", - "default": "", - "type": "string" - } - } - } - }, - "required": ["GreptileToken", "GithubToken"] - } - } - ], - "required": ["name"] - }, - "SerializedContinueConfig": { - "title": "config.json", - "type": "object", - "properties": { - "docs": { - "title": "Docs", - "description": "A list of documentation sites to be indexed", - "type": "array", - "items": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "The title of the documentation site" - }, - "startUrl": { - "type": "string", - "description": "The starting URL for indexing the documentation" - }, - "rootUrl": { - "type": "string", - "description": "The root URL of the documentation site" - }, - "maxDepth": { - "type": "integer", - "description": "The maximum depth to crawl the documentation site" - }, - "favicon": { - "type": "string", - "description": "The URL path to a favicon for the site - by default, it will be `/favicon.ico` path from the Start URL" - } - }, - "required": ["title", "startUrl"] - } - }, - "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).", - "default": true, - "type": "boolean" - }, - "models": { - "title": "Models", - "markdownDescription": "Learn about setting up models in [the documentation](https://docs.continue.dev/model-setup/overview).", - "default": [ - { - "title": "GPT-4 (trial)", - "provider": "free-trial", - "model": "gpt-4", - "apiKey": "" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/ModelDescription" - } - }, - "systemMessage": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "completionOptions": { - "title": "Completion Options", - "description": "Default options for completion. These will be overriden by any options set for a specific model.", - "default": { - "temperature": null, - "topP": null, - "topK": null, - "presencePenalty": null, - "frequencyPenalty": null, - "stop": null, - "maxTokens": 600 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "requestOptions": { - "title": "Request Options", - "description": "Default request options for all fetch requests from models and context providers. These will be overriden by any model-specific request options.", - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - }, - "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).", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/SlashCommand" - } - }, - "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 / 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).", - "default": [ - { - "name": "test", - "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", - "description": "This is an example custom command. Open config.json to edit it and create more" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/CustomCommand" - } - }, - "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).", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ContextProviderWithParams" - } - }, - "userToken": { - "title": "User Token", - "description": "An optional token to identify the user.", - "type": "string" - }, - "disableIndexing": { - "title": "Disable Indexing", - "markdownDescription": "If set to `true`, 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.", - "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).", - "type": "object", - "properties": { - "provider": { - "enum": [ - "huggingface-tei", - "transformers.js", - "ollama", - "openai", - "cohere", - "free-trial", - "gemini", - "voyage", - "nvidia", - "bedrock", - "sagemaker", - "vertex" - ] - }, - "model": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "apiBase": { - "type": "string" - }, - "requestOptions": { - "title": "Request Options", - "description": "Request options to be used in any fetch requests made by the embeddings provider", - "$ref": "#/definitions/RequestOptions" - }, - "maxChunkSize": { - "title": "Maximum Chunk Size", - "description": "The maximum number of tokens that each chunk of a document is allowed to have", - "type": "integer", - "minimum": 128, - "exclusiveMaximum": 2147483647 - }, - "maxBatchSize": { - "title": "Maximum Batch Size", - "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", - "type": "integer", - "minimum": 1, - "exclusiveMaximum": 2147483647 - }, - "region": { - "title": "Region", - "description": "The region where the model is hosted", - "$ref": "#/definitions/ModelDescription/properties/region" - }, - "profile": { - "title": "Profile", - "description": "The AWS security profile to use", - "type": "string" - } - }, - "required": ["provider"], - "allOf": [ - { - "if": { - "properties": { - "provider": { - "enum": ["cohere", "voyage", "nvidia", "gemini"] - } - }, - "required": ["provider"] - }, - "then": { - "required": ["apiKey"] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["sagemaker"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "model": { - "markdownDescription": "SageMaker endpoint name" - } - }, - "required": ["model"] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["vertex"] - } - }, - "required": ["provider"] - }, - "then": { - "properties": { - "projectId": { - "markdownDescription": "The name of your vertexAI project" - }, - "region": { - "markdownDescription": "The region your vertexAI model is hosted in - typically central1", - "default": "central1" - }, - "model": { - "default": "text-embedding-004" - } - }, - "required": ["projectId", "model", "region"] - } - } - ] - }, - "reranker": { - "title": "Reranker", - "markdownDescription": "The reranker is responsible for selecting the final results when retrieving snippets from your codebase.", - "type": "object", - "properties": { - "name": { - "enum": [ - "cohere", - "voyage", - "llm", - "free-trial", - "huggingface-tei" - ] - }, - "params": { - "type": "object" - } - }, - "required": ["name"], - "allOf": [ - { - "if": { - "properties": { - "name": { - "enum": ["cohere"] - } - }, - "required": ["name"] - }, - "then": { - "properties": { - "params": { - "type": "object", - "properties": { - "model": { - "enum": [ - "rerank-english-v3.0", - "rerank-multilingual-v3.0", - "rerank-english-v2.0", - "rerank-multilingual-v2.0" - ] - }, - "apiBase": { - "type": "string" - }, - "apiKey": { - "type": "string" - } - }, - "required": ["apiKey"] - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["llm"] - } - }, - "required": ["name"] - }, - "then": { - "properties": { - "params": { - "type": "object", - "properties": { - "modelTitle": { - "type": "string" - } - }, - "required": ["modelTitle"] - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["voyage"] - } - }, - "required": ["name"] - }, - "then": { - "properties": { - "params": { - "type": "object", - "properties": { - "apiKey": { - "type": "string" - }, - "model": { - "enum": [ - "rerank-lite-1", - "rerank-1", - "rerank-2", - "rerank-2-lite" - ] - } - }, - "required": ["apiKey"] - } - } - } - }, - { - "if": { - "properties": { - "name": { - "enum": ["huggingface-tei"] - } - }, - "required": ["name"] - }, - "then": { - "properties": { - "params": { - "type": "object", - "properties": { - "apiBase": { - "type": "string", - "default": "http://localhost:8080" - }, - "truncate": { - "type": "boolean", - "description": "Wether to truncate long sequences to the maximum allowed context length.", - "default": false - }, - "truncation_direction": { - "enum": ["Right", "Left"], - "markdownDescription": "Wether to truncate sequences from the `left` or `right`.", - "default": "Right" - } - }, - "required": ["apiBase"] - } - }, - "if": { - "properties": { - "truncate": { - "const": true - } - } - }, - "then": { - "required": ["truncation_direction"] - } - } - } - ] - }, - "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.", - "default": { - "title": "Tab Autocomplete Model", - "provider": "ollama", - "model": "deepseek-coder:1.3b-base" - }, - "oneOf": [ - { - "$ref": "#/definitions/ModelDescription" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/ModelDescription" - } - } - ] - }, - "tabAutocompleteOptions": { - "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).", - "properties": { - "disable": { - "type": "boolean", - "description": "Disable tab autocomplete. This can also be done from the IDE settings.", - "default": false - }, - "useCopyBuffer": { - "type": "boolean", - "description": "Determines whether the copy buffer will be considered when contructing the prompt." - }, - "useFileSuffix": { - "type": "boolean", - "description": "Determines whether to use the file suffix in the prompt." - }, - "maxPromptTokens": { - "type": "number", - "description": "The maximum number of prompt tokens to use. A smaller number will yield faster completions, but less context." - }, - "debounceDelay": { - "type": "number", - "description": "The delay in milliseconds before triggering autocomplete after a keystroke." - }, - "maxSuffixPercentage": { - "type": "number", - "description": "The maximum percentage of the prompt that can be dedicated to the suffix." - }, - "prefixPercentage": { - "type": "number", - "description": "The percentage of the input that should be dedicated to the prefix." - }, - "template": { - "type": "string", - "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"], - "description": "If set to true, Continue will only complete a single line at a time." - }, - "useCache": { - "type": "boolean", - "description": "Whether to cache completions" - }, - "onlyMyCode": { - "type": "boolean", - "description": "If set to true, Continue will not include any snippets from go to definition unless they are within your repository" - }, - "useOtherFiles": { - "type": "boolean", - "description": "Defaults to true. If set to false, Continue will not attempt to include snippets from other files." - }, - "disableInFiles": { - "description": "A list of files / glob patterns in which to disable tab autocomplete. For example, *.csv if you'd like to disable autocomplete in .csv files.", - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [] - }, - "ui": { - "type": "object", - "properties": { - "codeBlockToolbarPosition": { - "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." - }, - "fontSize": { - "type": "number" - }, - "displayRawMarkdown": { - "type": "boolean", - "description": "If set to true, we will display the model output as raw markdown.", - "default": false - }, - "showChatScrollbar": { - "title": "Show Chat Scrollbar", - "markdownDescription": "If set to `true`, a scrollbar will be displayed in the chat window to navigate through messages.", - "default": false, - "type": "boolean" - } - } - }, - "analytics": { - "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": ["posthog", "logstash"], - "description": "The 3rd party analytics provider to use.", - "default": "posthog", - "markdownEnumDescriptions": [ - "### Posthog\nTo use Posthog, set up an account, obtain your client key, and enter it in the client key field.", - "### Logstash\nContinue's Logstash integration uses the TCP input at the specified URL" - ] - }, - "url": { - "type": "string", - "description": "The URL to which analytics will be sent" - }, - "clientKey": { - "type": "string", - "description": "The client key to use for analytics" - } - }, - "required": ["provider"], - "allOf": [ - { - "if": { - "properties": { - "provider": { - "enum": ["posthog"] - } - } - }, - "then": { - "required": ["clientKey"] - } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["logstash"] - } - } - }, - "then": { - "required": ["url"] - } - } - ] - }, - "experimental": { - "type": "object", - "title": "Experimental", - "description": "Experimental properties are subject to change.", - "properties": { - "defaultContext": { - "type": "array", - "items": { - "allOf": [ - { - "$ref": "#/definitions/ContextProviderWithParams" - }, - { - "properties": { - "query": { - "type": "string", - "description": "Required for certain context providers, like 'url' in order to specify the input, or which of the dropdown items to select." - } - } - } - ] - } - }, - "modelRoles": { - "type": "object", - "properties": { - "inlineEdit": { - "description": "The 'title' property of the model you wish to use for inline edits", - "type": "string" - }, - "applyCodeBlock": { - "description": "The 'title' property of the model you wish to use for applying code blocks", - "type": "string" - }, - "repoMapFileSelection": { - "description": "The 'title' property of the model you wish to use for repo map file selections", - "type": "string" - } - } - }, - "readResponseTTS": { - "type": "boolean", - "default": true, - "description": "Automatically read LLM chat responses aloud using system TTS models" - }, - "promptPath": { - "type": "string" - }, - "quickActions": { - "type": "array", - "items": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "The title of the quick action that will display in the Code Lens." - }, - "prompt": { - "type": "string", - "description": "The prompt that will be sent to the model when the quick action is invoked, with the function or class body concatenated." - }, - "sendToChat": { - "type": "boolean", - "description": "If true, the result of the quick action will be sent to the chat panel. If false, the streamed result will be inserted into the document.", - "default": false - } - }, - "required": ["prompt", "title"] - }, - "description": "Quick actions are a way to add custom commands to the Code Lens of function and class declarations." - }, - "contextMenuPrompts": { - "type": "object", - "properties": { - "comment": { - "type": "string", - "default": "Write comments for this code. Do not change anything about the code itself." - }, - "docstring": { - "type": "string", - "default": "Write a docstring for this code. Do not change anything about the code itself." - }, - "fix": { - "type": "string", - "default": "Fix this code" - }, - "optimize": { - "type": "string", - "default": "Optimize this code" - }, - "fixGrammar": { - "type": "string", - "default": "If there are any grammar or spelling mistakes in this writing, fix them. Do not make other large changes to the writing." - } - } - } - } - } - } - } - } -} From 3ec4e4bb419219a1462344a78658a331392a22a3 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 28 Oct 2024 14:52:44 -0700 Subject: [PATCH 05/15] Update ContinuePluginStartupActivity.kt --- .../activities/ContinuePluginStartupActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt index 422fe7460..135d13c8d 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt @@ -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) } From a81c927037017281ac7f30e6d756fa8ce133cc48 Mon Sep 17 00:00:00 2001 From: Martin Mois Date: Mon, 28 Oct 2024 23:04:44 +0100 Subject: [PATCH 06/15] #2714 the models array can be empty --- core/config/validation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/config/validation.ts b/core/config/validation.ts index 5a5f44eaf..ebcbb623d 100644 --- a/core/config/validation.ts +++ b/core/config/validation.ts @@ -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) => { From 6294ec8335481dfb9d90fa05d6fc9396abb6d020 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 28 Oct 2024 16:02:01 -0700 Subject: [PATCH 07/15] lint vscode and cache core modules --- .github/workflows/dev_pr.yaml | 7 +++++++ extensions/vscode/package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev_pr.yaml b/.github/workflows/dev_pr.yaml index d909a279a..dafa51a87 100644 --- a/.github/workflows/dev_pr.yaml +++ b/.github/workflows/dev_pr.yaml @@ -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: @@ -71,6 +77,7 @@ jobs: run: | cd extensions/vscode npx tsc --noEmit + npm run lint - name: core checks run: | diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 8a228e9d0..8856dd61e 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -606,4 +606,4 @@ "ws": "^8.13.0", "yarn": "^1.22.21" } -} +} \ No newline at end of file From 2383016724a6818932c9d09bdf02abb37286c333 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 28 Oct 2024 16:02:52 -0700 Subject: [PATCH 08/15] linttttttt --- .github/workflows/dev_pr.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dev_pr.yaml b/.github/workflows/dev_pr.yaml index dafa51a87..0ff4c9806 100644 --- a/.github/workflows/dev_pr.yaml +++ b/.github/workflows/dev_pr.yaml @@ -4,6 +4,7 @@ on: pull_request: branches: - dev + - dallin/lint-modules jobs: tsc-check: From ae056fba39bd8e51ac6cd0595cb33bad6d880d8b Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 28 Oct 2024 16:05:17 -0700 Subject: [PATCH 09/15] remove specific branch pr test --- .github/workflows/dev_pr.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dev_pr.yaml b/.github/workflows/dev_pr.yaml index 0ff4c9806..dafa51a87 100644 --- a/.github/workflows/dev_pr.yaml +++ b/.github/workflows/dev_pr.yaml @@ -4,7 +4,6 @@ on: pull_request: branches: - dev - - dallin/lint-modules jobs: tsc-check: From fdb07f650f846af8d015f240f082a765c235b149 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 28 Oct 2024 16:20:50 -0700 Subject: [PATCH 10/15] add npm install step --- .github/workflows/dev_pr.yaml | 5 +++++ .github/workflows/jetbrains-release.yaml | 1 - .github/workflows/ts-check.yaml | 12 ++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev_pr.yaml b/.github/workflows/dev_pr.yaml index dafa51a87..ed57df584 100644 --- a/.github/workflows/dev_pr.yaml +++ b/.github/workflows/dev_pr.yaml @@ -4,6 +4,7 @@ on: pull_request: branches: - dev + - dallin/lint-modules jobs: tsc-check: @@ -50,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: extensions/vscode install run: | cd extensions/vscode diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index 9fc410b38..b28e29c0c 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -97,7 +97,6 @@ jobs: with: node-version-file: ".nvmrc" - # Cache node_modules - name: Cache core node_modules uses: actions/cache@v3 with: diff --git a/.github/workflows/ts-check.yaml b/.github/workflows/ts-check.yaml index f73016fa5..97bc39d7c 100644 --- a/.github/workflows/ts-check.yaml +++ b/.github/workflows/ts-check.yaml @@ -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: | From 1645978dea90de4a3f45bc1b9a6f8674330a64dd Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 28 Oct 2024 16:37:26 -0700 Subject: [PATCH 11/15] remove specific branch test --- .github/workflows/dev_pr.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dev_pr.yaml b/.github/workflows/dev_pr.yaml index ed57df584..2d9e823b7 100644 --- a/.github/workflows/dev_pr.yaml +++ b/.github/workflows/dev_pr.yaml @@ -4,7 +4,6 @@ on: pull_request: branches: - dev - - dallin/lint-modules jobs: tsc-check: From 1f775abb8b8d609aaf0d6e98d39a6db1a7c9ddd3 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 28 Oct 2024 16:38:13 -0700 Subject: [PATCH 12/15] remove specific branch test --- .github/workflows/dev_pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev_pr.yaml b/.github/workflows/dev_pr.yaml index 2d9e823b7..12607a0b9 100644 --- a/.github/workflows/dev_pr.yaml +++ b/.github/workflows/dev_pr.yaml @@ -50,7 +50,7 @@ jobs: path: binary/node_modules key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }} - - name: Install Root Dependencies + - name: root install run: | npm ci From 154343c86c63ee06a8d7ec6a0d3dfeb384f8080c Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 28 Oct 2024 17:25:53 -0700 Subject: [PATCH 13/15] bugfix(jb): no embeddings w/ transformers.js --- .gitignore | 2 + .vscode/settings.json | 3 +- .../pipelines/BaseRetrievalPipeline.ts | 3 +- .../pipelines/NoRerankerRetrievalPipeline.ts | 9 ++- .../pipelines/RerankerRetrievalPipeline.ts | 7 ++- core/context/retrieval/retrieval.ts | 15 +++-- docs/docs/customize/deep-dives/codebase.md | 6 +- docs/docs/customize/model-types/embeddings.md | 8 ++- .../src/main/resources/config_schema.json | 4 +- extensions/vscode/config_schema.json | 4 +- extensions/vscode/continue_rc_schema.json | 61 +++++++++++++------ 11 files changed, 81 insertions(+), 41 deletions(-) diff --git a/.gitignore b/.gitignore index bc9856690..2e8665fe9 100644 --- a/.gitignore +++ b/.gitignore @@ -166,3 +166,5 @@ extensions/intellij/.idea/** **/.idea/workspace.xml **/.idea/usage.statistics.xml **/.idea/shelf/ + +extensions/intellij/bin diff --git a/.vscode/settings.json b/.vscode/settings.json index eaf1da238..b302a1157 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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"] } diff --git a/core/context/retrieval/pipelines/BaseRetrievalPipeline.ts b/core/context/retrieval/pipelines/BaseRetrievalPipeline.ts index 8be43ce0f..9495f1608 100644 --- a/core/context/retrieval/pipelines/BaseRetrievalPipeline.ts +++ b/core/context/retrieval/pipelines/BaseRetrievalPipeline.ts @@ -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, diff --git a/core/context/retrieval/pipelines/NoRerankerRetrievalPipeline.ts b/core/context/retrieval/pipelines/NoRerankerRetrievalPipeline.ts index f6f83a4f2..6caef72dd 100644 --- a/core/context/retrieval/pipelines/NoRerankerRetrievalPipeline.ts +++ b/core/context/retrieval/pipelines/NoRerankerRetrievalPipeline.ts @@ -5,7 +5,7 @@ import BaseRetrievalPipeline from "./BaseRetrievalPipeline.js"; export default class NoRerankerRetrievalPipeline extends BaseRetrievalPipeline { async run(): Promise { - 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); diff --git a/core/context/retrieval/pipelines/RerankerRetrievalPipeline.ts b/core/context/retrieval/pipelines/RerankerRetrievalPipeline.ts index faac97957..375f1b17b 100644 --- a/core/context/retrieval/pipelines/RerankerRetrievalPipeline.ts +++ b/core/context/retrieval/pipelines/RerankerRetrievalPipeline.ts @@ -6,12 +6,15 @@ import BaseRetrievalPipeline from "./BaseRetrievalPipeline.js"; export default class RerankerRetrievalPipeline extends BaseRetrievalPipeline { private async _retrieveInitial(): Promise { - 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); diff --git a/core/context/retrieval/retrieval.ts b/core/context/retrieval/retrieval.ts index 2652bfa0f..2fb5723ae 100644 --- a/core/context/retrieval/retrieval.ts +++ b/core/context/retrieval/retrieval.ts @@ -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' " + + 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, or use our 'free-trial' " + "embeddings provider. See here to learn more: " + - "https://docs.continue.dev/walkthroughs/codebase-embeddings#embeddings-providers", + "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); diff --git a/docs/docs/customize/deep-dives/codebase.md b/docs/docs/customize/deep-dives/codebase.md index 0a582b774..f106fea14 100644 --- a/docs/docs/customize/deep-dives/codebase.md +++ b/docs/docs/customize/deep-dives/codebase.md @@ -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. diff --git a/docs/docs/customize/model-types/embeddings.md b/docs/docs/customize/model-types/embeddings.md index a84346fa0..621c96af1 100644 --- a/docs/docs/customize/model-types/embeddings.md +++ b/docs/docs/customize/model-types/embeddings.md @@ -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. \ No newline at end of file +See [here](../model-providers/more/vertex.md#embeddings-model) for instructions on how to use Vertex for embeddings. diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index a439eb1e3..90a0623a8 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -2425,8 +2425,8 @@ }, "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).", - "x-intellij-html-description": "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.", + "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 transformers.js, which will run locally in the browser. Learn about the other options here.

Note: transformers.js currently cannot be used in JetBrains.", "type": "object", "properties": { "provider": { diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index a439eb1e3..470cae9bc 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -2425,8 +2425,8 @@ }, "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).", - "x-intellij-html-description": "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.", + "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).", + "x-intellij-html-description": "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.

Note: transformers.js currently cannot be used in JetBrains.", "type": "object", "properties": { "provider": { diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 86304fa6e..ed4f2f0d9 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -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 here 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 openai or azure", "enum": [ "openai", "azure" @@ -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 here." } } }, @@ -963,7 +966,7 @@ "then": { "properties": { "model": { - "markdownDescription": "SageMaker endpoint name" + "description": "SageMaker endpoint name" } } } @@ -1082,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 here." } } } @@ -1103,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 here." } } } @@ -1221,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 here." } } } @@ -1696,7 +1702,7 @@ "type": "string" } ], - "markdownDescription": "Select a pre-defined option." + "description": "Select a pre-defined option." } } } @@ -1828,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 true, 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." } } } @@ -1855,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 . 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." } } } @@ -1878,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 true, then unstaged changes are also included in the prompt, otherwise only staged changes are included. Default is false." } } } @@ -2355,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 apiVersion property." }, "requestOptions": { "title": "Request Options", @@ -2605,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 the docs.", "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 the documentation.", "default": [ { "title": "GPT-4 (trial)", @@ -2660,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 documentation.", "default": [], "type": "array", "items": { @@ -2668,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 / 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 `/` 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 / in the text input, it will act as a shortcut to the prompt. Learn more in the documentation.", "default": [ { "name": "test", @@ -2684,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 the documentation.", "default": [], "type": "array", "items": { @@ -2698,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 true, 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 true, 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 transformers.js, which will run locally in the browser. Learn about the other options here.

Note: transformers.js currently cannot be used in JetBrains.", "type": "object", "properties": { "provider": { @@ -2809,7 +2827,7 @@ "then": { "properties": { "model": { - "markdownDescription": "SageMaker endpoint name" + "description": "SageMaker endpoint name" } }, "required": [ @@ -2833,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": { @@ -2854,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": { @@ -3004,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": { @@ -3012,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" } }, @@ -3040,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.

IMPORTANT:

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", @@ -3061,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 the docs.", "properties": { "disable": { "type": "boolean", @@ -3147,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 true, a scrollbar will be displayed in the chat window to navigate through messages.", "default": false, "type": "boolean" } From 501848b920bebaabc63ba71e4197bfdf79334ba1 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 28 Oct 2024 17:27:12 -0700 Subject: [PATCH 14/15] Update retrieval.ts --- core/context/retrieval/retrieval.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/context/retrieval/retrieval.ts b/core/context/retrieval/retrieval.ts index 2fb5723ae..a40e163a0 100644 --- a/core/context/retrieval/retrieval.ts +++ b/core/context/retrieval/retrieval.ts @@ -31,8 +31,8 @@ export async function retrieveContextItemsFromEmbeddings( 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, or use our 'free-trial' " + - "embeddings provider. See here to learn more: " + + "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", ); } From 06751bcaee0526bdb6da222e7a99728f19dbb939 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 28 Oct 2024 17:54:28 -0700 Subject: [PATCH 15/15] Update gradle.properties --- extensions/intellij/gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 5e79c0f95..114ebb83b 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -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