Unify Chat Provider
Integrate multiple LLM API providers into VS Code's GitHub Copilot Chat using the Language Model API.
English |
简体中文
Features
- 🐑 Free Tier Access: Aggregates the latest free mainstream model channel configurations!
- 📦 Out of the Box: One-click configuration, automatic syncing of official model lists, and migration from other tools.
- 🔌 Perfect Compatibility: Supports all major LLM API formats (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Ollama Chat, Gemini).
- 🎯 Deep Adaptation: Adapts to special API features and best practices of 45+ mainstream providers.
- 🚀 Best Performance: Built-in recommended parameters for 200+ mainstream models, allowing you to maximize model potential without tuning.
- 💻 Code Completion: Provides high-performance FIM, NES, and Next Edit Prediction code completion with full-context integration and fully customizable models and algorithms.
- 💬 Commit Message Generation: Provides better commit message generation than VS Code through the same UI entry point.
- 💾 Import and Export: Complete import/export support; import configs via Base64, JSON, URL, or URI.
- 💎 Great UX: Visual interface configuration, fully customizable model parameters, supports unlimited provider and model configurations, and supports coexistence of multiple configuration variants for the same provider and model.
- ✨ One More Thing: One-click use of your Claude Code, Gemini CLI, Antigravity, Github Copilot, OpenAI Codex (ChatGPT Plus/Pro), xAI Grok (SuperGrok / X Premium+), and Zed account quotas.
Installation
- Requires VS Code 1.115.0 or later.
- Search for Unify Chat Provider in the VS Code Extension Marketplace and install it.
- Download the latest
.vsix file from GitHub Releases, then install it in VS Code via Install from VSIX... or by dragging it into the Extensions view.
 |
Placeholder text. |
To become a sponsor of the project, please contact [email protected].
Quick Start
If the provider you want to add is in the Provider Support Table, use One-Click Configuration.
Otherwise, you can also manually configure any provider and model.
You might also be looking for:
⚠️ Avoid VS Code background tasks consuming Copilot quota
VS Code currently uses utility models for some background tasks by default. If you use a free Copilot account, this may consume your Copilot quota.
You need to set these to other models in settings.json yourself to avoid consuming Copilot quota, or use the quick settings interface provided by this extension. See Quick Set VS Code Default Model for details.
⚠️ Allow the extension to enable Proposed APIs
This extension uses some experimental VS Code extension APIs. After installation, you may be prompted to enable these APIs, which requires administrator privileges. Allow them for the best experience.
The extension will still work without them, but with the following limitations:
- Some models will be less effective.
- Commit message generation will be significantly less effective.
- The native commit message generation button will be unavailable.
- Code completion will be unavailable.
- Preset templates will be unavailable.
Basic Operations
The UI is integrated into the VS Code Command Palette for a more native experience. Here’s the basic workflow:
- Open the Command Palette:
- From the menu:
View -> Command Palette...
- Or with the shortcut:
Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)
- Search commands:
- Type
Unify Chat Provider: or ucp: to find all commands.
- Run a command:
- Select a command with mouse or arrow keys, then press Enter.
One-Click Configuration
See the Provider Support Table for providers supported by one-click configuration.
If your provider is not in the list, you can add it via Manual Configuration.
Steps:
-
Open the VS Code Command Palette and search for Unify Chat Provider: Add Provider From Well-Known Provider List.
-
Select the provider you want to add.
-
Follow the prompts to configure authentication (usually an API key, or it may require logging in via the browser), then you’ll be taken to the config import screen.
- This screen lets you review and edit the config that will be imported.
- For details, see the Provider Settings section.
-
Click Save to complete the import and start using the models in Copilot Chat.
Code Completion
Open the VS Code Command Palette and search for Unify Chat Provider: Code Completion Settings.
Code completion is enabled by default, but it takes effect only after you add at least one valid completion algorithm.
Conflict Notice
Once this extension’s code completion becomes active, it automatically disables VS Code’s built-in code completion.
To allow both to coexist, which is not recommended, change Code Completion Settings -> Completion Strategy Settings -> Disable VS Code Built-in Completion.
When multiple extensions provide code completion, VS Code returns results only from the one that responds fastest. We therefore recommend enabling code completion in only one extension.
Supported Algorithms
| Name |
ID |
Description |
| Simple |
simple |
The simplest FIM implementation; sends only the current document’s prefix and suffix and works with any model. |
| Copilot (Replica) |
copilot-replica |
A complete replica of VS Code Copilot’s core FIM/NES implementation that works with any model. |
| Zed |
zed |
A complete replica of Zed Edit Prediction that supports Zeta models only. |
| Inception |
inception |
Implements the documented best practices and supports Mercury Edit 2 only. |
| Mistral |
mistral |
Implements the documented best practices and supports Codestral only. |
We recommend the Zed and Inception algorithms for better results.
Simple
This algorithm supports any model. A model designed specifically for FIM code completion, such as Qwen Coder, is recommended.
Models such as DeepSeek V4 may support FIM but perform poorly in practice, so they are not recommended.
Steps:
- First add a model configuration, then adjust its completion capabilities based on whether the model supports FIM:
- Supports FIM: set
completion.template to fim.
- Supports chat only: set
completion.template to fim and completion.transport to compatible.
- Add a Simple algorithm through
Code Completion Settings -> Add From Current Provider List -> Simple, then select the model to use.
- Click
Save.
Qwen2.5-Coder Base models served through vLLM can use completion.templates: ["qwen2.5-coder"] with native transport. Prefix and suffix are encoded in the prompt with Qwen FIM tokens; no separate API suffix field is sent. Both Simple and Copilot (Replica) FIM can use this template.
Zed
This algorithm provides the same code completion experience as the Zed editor.
Zed uses its own Zeta model family. We recommend adding it in one of two ways:
- Add the
Zed provider through One-Click Configuration and use your Zed account quota.
- Deploy a Zeta model locally and add it.
- Add a Zed algorithm through
Code Completion Settings -> Add From Current Provider List -> Zed, then select the model that was just added.
- Click
Save.
Inception
- Add the
Inception provider through One-Click Configuration.
- Add an Inception algorithm through
Code Completion Settings -> Add From Current Provider List -> Inception, then select the Mercury Edit 2 model.
- Click
Save.
Mistral
- Add the
Mistral provider through One-Click Configuration.
- Add a Mistral algorithm through
Code Completion Settings -> Add From Current Provider List -> Mistral, then select the Codestral model.
- Click
Save.
Manual Configuration
This section uses DeepSeek as an example, adding the provider and two models.
DeepSeek supports One-Click Configuration. This section shows the manual setup for demonstration purposes.
-
Preparation: get the API information from the provider docs, at least the following:
API Format: The API format (e.g., OpenAI Chat Completions, Anthropic Messages).
API Base URL: The base URL of the API.
Authentication: Usually an API key; obtained from the user center or console after registration.
-
Open the VS Code Command Palette and search for Unify Chat Provider: Add Provider.
- This screen is similar to the [Provider Settings](#provider-settings) screen, and includes in-place documentation for each field.
-
Fill in the provider name: Name.
- The name must be unique and is shown in the model list. Here we use
DeepSeek.
- You can create multiple configs for the same provider with different names, e.g.,
DeepSeek-Person, DeepSeek-Team.
-
Choose the API format: API Format.
- DeepSeek uses the
OpenAI Responses format by default, so select that.
- To see all supported formats, refer to the API Format Support Table.
-
Set the base URL: API Base URL.
- DeepSeek’s base URL is
https://api.deepseek.com.
-
Configure authentication: Authentication.
- DeepSeek uses API Key for authentication, so select
API Key.
- Enter the API key generated from the DeepSeek console.
-
Click Models to go to the model management screen.
-
Enable Auto-Fetch Official Models.
-
Click Save to finish. You can now use the models in Copilot Chat.
One-Click Migration
See the Application Migration Support Table to learn which apps and extensions are supported.
If your app/extension is not in the list, you can configure it via One-Click Configuration or Manual Configuration.
Steps:
- Open the VS Code Command Palette and search for
Unify Chat Provider: Import Config From Other Applications.
- The UI lists all supported apps/extensions and the detected config file paths.
- Use the button group on the far right of each item for additional actions:
Custom Path: Import from a custom config file path.
Import From Config Content: Paste the config content directly.
- Choose the app/extension you want to import, then you’ll be taken to the config import screen.
- This screen lets you review and edit the config that will be imported.
- For details, see the Provider Settings section.
- Click
Save to complete the import and start using the imported models in Copilot Chat.
Manage Providers
- You can create unlimited provider configurations, and multiple configs can coexist for the same provider.
- Provider names must be unique.
Provider List
Open the VS Code Command Palette and search for Unify Chat Provider: Manage Providers.
The UI also shows all existing providers. Click a provider item to enter the Model List screen.
The button group on the right of each provider item provides additional actions:
Export: Export this provider config. See Import and Export.
Duplicate: Clone this provider config to create a new one.
Delete: Delete this provider config.
Provider Settings
Models: This button only appears while adding or importing a config; click it to enter the Model List screen.
This screen shows all configuration fields for the provider. For field details, see Provider Parameters.
Manage Models
- Each provider can have unlimited model configurations.
- The same model ID can exist under different providers.
- Within a single provider config, you cannot have multiple identical model IDs directly, but you can create multiple configs by adding a
#xxx suffix.
- For example, you can add both
glm4.7 and glm4.7#thinking to quickly switch thinking on/off.
- The
#xxx suffix is automatically removed when sending requests.
- Model names can be duplicated, but using distinct names is recommended to avoid confusion.
Model List
Add Model Manually
This screen is similar to the Model Settings screen; you can read the in-place documentation to understand each field.
One-Click Add Models
This screen lists all models that can be added with one click. You can import multiple selected models at once.
See the Model Support Table for the full list of supported models.
Auto-Fetch Official Models
This feature periodically fetches the latest official model list from the provider’s API and automatically configures recommended parameters, greatly simplifying model setup.
Tip
A provider’s API may not return recommended parameters. In that case, recommended parameters are looked up from an internal database by model ID. See the Model Support Table for models that have built-in recommendations.
- Auto-fetched models show an
internet icon before the model name.
- If an auto-fetched model ID conflicts with a manually configured one, only the manually configured model is shown.
- Auto-fetched models are refreshed periodically; you can also click
(click to fetch) to refresh manually.
- Run the VS Code command
Unify Chat Provider: Refresh All Provider's Official Models to trigger refresh for all providers.
Model Settings
Export: Export this model config. See Import and Export.
Duplicate: Clone this model config to create a new one.
Delete: Delete this model config.
This screen shows all configuration fields for the model. For field details, see Model Parameters.
Sync Built-in Parameters to All Configs
Run Unify Chat Provider: Sync Built-in Parameters to All Configs to sync local model parameters with the built-in model parameters.
This is typically used after a new version updates or optimizes built-in model parameters, allowing you to sync existing configs in one click.
Commit Message Generation
You can generate commit messages via the following commands:
Unify Chat Provider: Generate Commit Message
Unify Chat Provider: Generate Commit Message(All Changes)
Unify Chat Provider: Generate Commit Message(Staged Changes)
Unify Chat Provider: Generate Commit Message(Unstaged Changes)
You can also click the sparkle button on the right side of the commit message input box in the Source Control view to generate a commit message (on first use, you need to click the dropdown arrow next to the button and select Unify Chat Provider: Generate Commit Message from the dropdown menu).
Balance Monitoring
Use this feature to monitor provider balances in Provider Settings.
- Run the VS Code command
Unify Chat Provider: Provider Balance Monitoring to open the balance monitoring panel.
- Configure it from the
Balance Monitor field.
- Built-in methods:
Moonshot AI Balance: no extra config required; uses provider baseUrl and API key.
Kimi Code Usage: no extra config required; uses provider baseUrl and API key.
New API Balance: always shows API key balance; user balance is optional and requires userId + systemToken (sensitive data).
Sub2API Balance: no extra config required; uses provider baseUrl and API key to show key quotas, subscription limits, or wallet balance.
DeepSeek Balance: no extra config required; uses provider baseUrl and API key.
OpenRouter Balance: no extra config required; uses provider baseUrl and API key.
SiliconFlow Balance: no extra config required; uses provider baseUrl and API key.
AIHubMix Balance: no extra balance config required; uses provider baseUrl, API key, and optional APP-Code from provider extraHeaders.
Claude Relay Service Balance: no extra config required; uses provider baseUrl and API key.
Antigravity Usage: no extra config required; uses the provider OAuth credential and project settings.
Gemini CLI Usage: no extra config required; uses the provider OAuth credential and optional project settings.
Codex Usage: no extra config required; uses provider credential (API key or Codex auth token).
- Run the VS Code command
Unify Chat Provider: Refresh All Providers' Balance Information to force refresh balances for all configured providers.
Adjust Parameters
Global Settings
- Most
unifyChatProvider.* settings are application-scoped and shared across profiles on the same device.
- Code completion and commit message generation settings are window-scoped and can be configured per workspace.
| Name |
ID |
Description |
| Enable Detailed Logging |
verbose |
Enables detailed request and response logs. Default: false. |
| Model Display Name Template |
modelDisplayNameTemplate |
Template for chat model names. Default: {modelName}{{ ({providerName})}}. |
| Store API Key in Settings |
storeApiKeyInSettings |
Whether to store syncable sensitive data in settings.json. Default: false; see Cloud Sync Compatibility. |
| Newest Providers First |
providerList.newestFirst |
Whether to show the most recently added or modified providers first in management views. Default: true. |
| Balance Refresh Interval |
balanceRefreshIntervalMs |
Periodic provider balance refresh interval in milliseconds. Default: 60000; minimum: 1000. |
| Balance Throttle Window |
balanceThrottleWindowMs |
Throttle window for refreshing balances after a request, in milliseconds. Default: 10000; minimum: 0. |
| Balance Status Bar Icon |
balanceStatusBarIcon |
Theme icon text used for provider balances in the status bar. Default: $(credit-card); use an empty string to hide it. |
| Display Balance in Configuration |
displayBalanceInConfiguration |
Whether to show refreshed balance information in the model configuration button area. Default: false. |
| Enable Balance Warnings |
balanceWarning.enabled |
Whether to show a warning icon beside a model name when its balance approaches a threshold. Default: true. |
| Expiration Warning Threshold |
balanceWarning.timeThresholdDays |
Expiration warning threshold in days; decimals are supported. Default: 1; minimum: 0. |
| Amount Warning Threshold |
balanceWarning.amountThreshold |
Balance warning threshold, regardless of currency. Default: 1; minimum: 0. |
| Token Warning Threshold |
balanceWarning.tokenThresholdMillions |
Remaining-token warning threshold in millions of tokens. Default: 1; minimum: 0. |
| Global Network Settings |
networkSettings |
Global network settings. Timeout and retry affect chat requests; proxy affects provider HTTP requests. |
| Global Timeout Settings |
networkSettings.timeout |
Global chat request timeout settings in milliseconds. |
| Global Connection Timeout |
networkSettings.timeout.connection |
Maximum time to wait for a TCP connection. Default: 60000 (60 seconds); must be a positive integer. |
| Global Response Interval Timeout |
networkSettings.timeout.response |
Maximum time between SSE stream chunks. Default: 300000 (5 minutes); must be a positive integer. |
| Global Retry Settings |
networkSettings.retry |
Global retry settings for chat requests. |
| Global Max Retries |
networkSettings.retry.maxRetries |
Default: 10; must be a non-negative integer. |
| Global Initial Retry Delay |
networkSettings.retry.initialDelayMs |
Delay before the first retry in milliseconds. Default: 1000; must be a non-negative integer. |
| Global Max Retry Delay |
networkSettings.retry.maxDelayMs |
Upper limit for retry delays in milliseconds. Default: 60000; must be a positive integer. |
| Global Backoff Multiplier |
networkSettings.retry.backoffMultiplier |
Exponential backoff multiplier. Default: 2; minimum: 1. |
| Global Jitter Factor |
networkSettings.retry.jitterFactor |
Jitter factor used to randomize delays. Default: 0.1; range: 0-1. |
| Global Retryable Status Codes |
networkSettings.retry.statusCodes |
HTTP status codes that trigger retries. When set, this fully replaces the default rules: 408, 409, 429, and all status codes >=500. |
| Global Proxy Settings |
networkSettings.proxy |
Global proxy settings for provider requests. See Proxy Configuration for fields. |
| Ignore API TLS Errors |
networkSettings.ignoreSSLErrors |
Global only, default false. Disables API TLS certificate verification for HTTP/SSE and Responses WebSocket requests, including direct and proxy connections. |
| Enable Code Completion |
completion.enabled |
Whether to enable this extension’s code completion. Default: true; see Completion Algorithm Parameters. |
| Completion Providers |
completion.providers |
Array of completion algorithm configurations. Default: []; see Completion Algorithm Parameters. |
| Completion Scheduling Strategy |
completion.strategy |
Scheduling and stopping conditions for completion algorithms; see Completion Scheduling Strategy Parameters. |
| Commit Message Generation Buttons |
commitMessageGeneration.enableButtons |
Whether to show commit message generation buttons in the Source Control view. Default: true. |
| Commit Message Generation Model |
commitMessageGeneration.model |
Model reference used for commit message generation. Default: { "vendor": "", "id": "" }. |
| Commit Message Model Vendor |
commitMessageGeneration.model.vendor |
Language model vendor identifier. |
| Commit Message Model ID |
commitMessageGeneration.model.id |
Language model ID. |
| Commit Message Generation Format |
commitMessageGeneration.format |
auto (default) / conventional / angular / google / atom / plain / custom. |
| Custom Commit Message Instructions |
commitMessageGeneration.customInstructions |
Additional instructions appended to the system prompt. Default: empty string. |
| Commit Message Excluded Files |
commitMessageGeneration.excludeFiles |
Array of VS Code globs whose diffs are omitted from the prompt. Default: []. |
| Provider Endpoints |
endpoints |
Array of provider configurations. Default: []; see Provider Parameters for fields. |
Proxy Configuration
Proxy settings can be configured globally through unifyChatProvider.networkSettings.proxy or per provider through unifyChatProvider.endpoints[].proxy. The effective order is:
- Provider
proxy
- Global
networkSettings.proxy
- VS Code HTTP proxy settings
proxy.type supports:
vscode (default): Use VS Code http.proxy, http.proxyAuthorization, http.proxyStrictSSL, and http.noProxy.
direct: Connect directly and bypass VS Code/global proxy settings.
custom: Use proxy.url; optional fields are authorization, strictSSL, and noProxy.
Supported custom proxy URL protocols are http, https, socks, socks4, socks4a, socks5, and socks5h. Proxy settings apply to provider HTTP requests, including chat requests, balance refreshes, and official model fetching.
Example global proxy:
{
"unifyChatProvider.networkSettings": {
"proxy": {
"type": "custom",
"url": "http://127.0.0.1:7890",
"noProxy": ["localhost", "127.0.0.1", ".example.com"]
}
}
}
Example provider override:
{
"unifyChatProvider.endpoints": [
{
"type": "openai-chat-completion",
"name": "OpenAI Direct",
"baseUrl": "https://api.openai.com",
"proxy": {
"type": "direct"
},
"models": ["gpt-5"]
}
]
}
Provider Parameters
The following fields correspond to ProviderConfig (field names used in import/export JSON).
| Name |
ID |
Description |
| API Format |
type |
Required. Provider type, which determines the API format and compatibility logic; see API Format Support Table for supported values. |
| Provider Name |
name |
Required. Unique name for this provider configuration, used in lists and references. |
| API Base URL |
baseUrl |
Required. API base URL, for example https://api.anthropic.com. |
| Disable URL Normalization |
useRawBaseUrl |
Whether to disable provider-specific URL handling such as appending /v1 or removing suffixes. Default: false. |
| Chat Transport Mode |
transport |
auto / sse / websocket; leave unset to use the provider’s default behavior. |
| Service Tier |
serviceTier |
Provider-level default processing tier: auto / standard / flex / scale / priority. |
| Context Cache |
contextCache |
Context cache configuration, used only by providers that support prompt caching. |
| Context Cache Type |
contextCache.type |
only-free (default): use caching only when free; allow-paid: use it even when it may incur a charge. |
| Context Cache TTL (seconds) |
contextCache.ttl |
Positive integer. Default: 300. Some providers map this to supported TTL tiers; tiers that may incur a charge can require allow-paid. |
| Authentication |
auth |
Authentication configuration, usually managed through the provider settings UI. |
| Authentication Method |
auth.method |
none / api-key / oauth2 / antigravity-oauth / google-gemini-oauth / google-vertex-ai-auth / claude-code / openai-codex / xai-grok-oauth / github-copilot / zed. |
| Legacy API Key |
apiKey |
Deprecated and used only to migrate legacy configurations. New configurations should use auth; this field is not persisted again. |
| Balance Monitor |
balanceProvider |
Provider-level balance monitoring configuration. |
| Completion Capabilities |
completion |
Default code completion capabilities for this provider. |
| Completion Transport |
completion.transport |
auto (the default if still unset after inheritance) / native / compatible. |
| Native Completion Base URL |
completion.baseUrl |
Used only for native completion requests; may be an absolute URL or a path relative to the provider’s baseUrl. |
| Completion Templates |
completion.templates |
all or an array of template IDs. Supports fim, codegemma, qwen2.5-coder, copilot-replica-nes, zeta1, zeta2, zeta2.1, zeta3-internal, mercury-edit-2, and codestral. An empty array disables completion; if neither provider nor model sets it, the default is an empty array. |
| Models |
models |
Required. Array of model ID strings or ModelConfig objects. |
| Extra Headers |
extraHeaders |
HTTP headers appended to every request (Record<string, string>); values may reference provider credentials with ${APIKEY}. |
| Extra Body Fields |
extraBody |
Fields appended to the request body (Record<string, unknown>) for provider-specific parameters. |
| Proxy |
proxy |
Provider-level proxy override; see Proxy Configuration for fields. |
| Timeout |
timeout |
Provider-level timeout override for chat requests, in milliseconds. |
| Connection Timeout |
timeout.connection |
Must be a positive integer. Inherits the global value when unset; built-in default: 60000 (60 seconds). |
| Response Interval Timeout |
timeout.response |
Must be a positive integer. Inherits the global value when unset; built-in default: 300000 (5 minutes). |
| Retry |
retry |
Provider-level retry override for chat requests. Retryable HTTP status codes can be configured only through global networkSettings.retry.statusCodes. |
| Max Retries |
retry.maxRetries |
Must be a non-negative integer. Inherits the global value when unset; built-in default: 10. |
| Initial Delay |
retry.initialDelayMs |
Must be a non-negative integer in milliseconds. Inherits the global value when unset; built-in default: 1000. |
| Max Delay |
retry.maxDelayMs |
Must be a positive integer in milliseconds. Inherits the global value when unset; built-in default: 60000. |
| Backoff Multiplier |
retry.backoffMultiplier |
Minimum: 1. Inherits the global value when unset; built-in default: 2. |
| Jitter Factor |
retry.jitterFactor |
Range: 0-1. Inherits the global value when unset; built-in default: 0.1. |
| Auto-Fetch Official Models |
autoFetchOfficialModels |
Whether to fetch and synchronize official models from the provider API. Default: false. |
Model Parameters
The following fields correspond to ModelConfig (field names used in import/export JSON).
| Name |
ID |
Description |
| Model ID |
id |
Required. Model identifier. Use a #xxx suffix to create multiple configurations for the same model; the suffix is removed automatically when requests are sent. |
| Display Name |
name |
Name shown in the UI; falls back to id when unset. |
| Model Family |
family |
Model identifier used for grouping and matching, such as gpt-4 or claude-3. When unset, uses id after removing its #xxx suffix. |
| Max Input Tokens |
maxInputTokens |
Maximum input or context token count. Some providers interpret this as the combined input and output context. Extension runtime default: 128000. |
| Max Output Tokens |
maxOutputTokens |
Maximum generated token count; required by some providers. Extension runtime default: 64000. |
| Tokenizer |
tokenizer |
default (an alias for char4, and the default) / conservative / char4 / openai / deepseek. |
| Token Count Multiplier |
tokenCountMultiplier |
Positive multiplier applied to the token count before it is returned to VS Code. Default: 1.0. |
| Capabilities |
capabilities |
Capability declarations used by the UI, routing, and some request construction. |
| Tool Calling |
capabilities.toolCalling |
A boolean indicates whether tool calling is supported; an integer indicates the maximum number of tools. |
| Image Input |
capabilities.imageInput |
Whether image input is supported. |
| Edit Tool Hint |
capabilities.editTools |
find-replace / multi-find-replace / apply-patch / code-rewrite. |
| Streaming |
stream |
Whether to enable streaming responses; uses the provider’s default behavior when unset. |
| Temperature |
temperature |
Sampling temperature. |
| Top-K |
topK |
Integer for top-k sampling. |
| Top-P |
topP |
Top-p (nucleus) sampling. |
| Frequency Penalty |
frequencyPenalty |
Frequency penalty. |
| Presence Penalty |
presencePenalty |
Presence penalty. |
| Parallel Tool Calling |
parallelToolCalling |
true to enable, false to disable; uses the provider’s default behavior when unset. |
| Service Tier |
serviceTier |
auto / standard / flex / scale / priority; inherits the provider value when unset, and omits the field if the provider value is also unset. |
| Verbosity |
verbosity |
low / medium / high; not supported by all providers. |
| Thinking |
thinking |
Thinking or reasoning configuration; support varies by provider. |
| Thinking Type |
thinking.type |
Required when thinking is present: enabled / disabled / auto. |
| Thinking Budget Tokens |
thinking.budgetTokens |
Token budget for thinking. |
| Thinking Effort |
thinking.effort |
none / minimal / low / medium / high / xhigh / max. |
| Reasoning Summary |
thinking.summary |
none / auto / concise / detailed. |
| Reasoning Mode |
thinking.mode |
standard / pro. |
| Reasoning Retention Mode |
thinking.context |
auto / current_turn / all_turns. |
| Native Multi-Agent |
multi-agent |
Native multi-agent execution configuration. |
| Enable Native Multi-Agent |
multi-agent.enabled |
Required when multi-agent is present. |
| Max Concurrent Subagents |
multi-agent.maxConcurrentSubagents |
Optional positive integer that limits the number of concurrently running subagents. |
| Native Web Search |
webSearch |
Native web search tool configuration. |
| Native Memory Tool |
memoryTool |
Whether to enable the native memory tool; applies only to providers that support it. |
| Extra Headers |
extraHeaders |
HTTP headers appended to this model request (Record<string, string>); values may reference provider credentials with ${APIKEY}. |
| Extra Body Fields |
extraBody |
Fields appended to this model request body (Record<string, unknown>). |
| Completion Override |
completion |
Model-level code completion capability override; each unset child field separately inherits the provider configuration. |
| Completion Transport |
completion.transport |
auto / native / compatible. |
| Native Completion Base URL |
completion.baseUrl |
Used only for native completion requests; may be an absolute URL or a path relative to the provider’s baseUrl. |
| Completion Templates |
completion.templates |
all or an array of template IDs. Supports fim, codegemma, qwen2.5-coder, copilot-replica-nes, zeta1, zeta2, zeta2.1, zeta3-internal, mercury-edit-2, and codestral; an empty array explicitly disables completion for this model. |
| Preset Templates |
presetTemplates |
Array of preset templates in the VS Code model submenu. Templates are applied in declaration order, and later templates override same-named fields from earlier templates. |
Service Tier Notes
- Leaving
serviceTier empty means this extension omits the service tier / speed fields and keeps the provider default behavior.
- Mapping for the OpenAI API:
auto -> auto
standard -> default
flex -> flex
scale -> scale
priority -> priority
- Mapping for Anthropic Messages API:
auto -> auto
standard / flex / scale -> standard_only
priority -> speed: "fast" with fast-mode-2026-02-01
Preset Template Notes
You can configure multiple preset templates for a single model. Each template corresponds to one enum option group displayed in the VS Code model selection submenu.
Preset overrides for thinking are shallow-merged by child field, allowing independent reasoning controls to compose. Overrides for other top-level fields continue to replace the complete field value. The GPT-5.6 Sol, Terra, and Luna built-ins use the IDs gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna; each has a 1,050,000-token context window, 128,000-token output limit, OpenAI tokenization, tool and image support, and the apply-patch edit hint. The gpt-5.6 alias resolves to Sol. These models expose reasoningEffort (max, xhigh, high, medium, low, none), reasoningMode (standard, pro), and reasoningContext (auto, current_turn, all_turns) without provider-default options. Their defaults are xhigh, standard, and auto.
You can define custom preset templates to switch model parameters quickly. For example:
{
"presetTemplates": [
{
"name": "Reasoning Effort",
"id": "reasoningEffort",
"presets": [
{
"name": "High",
"description": "Suitable for tasks involving planning, coding, synthesis, or more difficult reasoning.",
"id": "high",
"config": {
"thinking": {
"type": "enabled",
"effort": "high"
},
"temperature": 0.7
}
},
{
"name": "Low",
"description": "A small amount of extra thinking can improve reliability with almost no added latency.",
"id": "low",
"config": {
"thinking": {
"type": "enabled",
"effort": "low"
},
"temperature": 0.4
}
},
{
"name": "Default",
"description": "Use the model's current configuration.",
"id": "default",
"config": {}
}
],
"default": "default"
}
]
}
config overrides fields in the model configuration. In the example above, high and low override thinking and temperature, while default overrides nothing and uses the model’s current configuration.
- If multiple templates override the same field, they are applied in declaration order, and later templates override earlier fields with the same name.
Completion Algorithm Parameters
| Name |
ID |
Description |
| Enable Code Completion |
enabled |
Whether to enable this extension’s code completion. Default: true; takes effect only when at least one valid completion provider exists. |
| Completion Providers |
providers |
Array of completion providers (CompletionAlgorithmEntry[]). Default: []. |
| Provider ID |
providers[].id |
Unique completion provider identifier. |
| Algorithm |
providers[].algorithm |
simple / copilot-replica / zed / inception / mistral. |
| Algorithm Options |
providers[].options |
Algorithm configuration object. |
Every model field under options is a CompletionModelReference in the format { "vendor": string, "id": string }.
Simple (simple)
| Name |
ID |
Description |
| Model |
options.model |
Required. Used to generate FIM completions. |
Copilot (Replica) (copilot-replica)
| Name |
ID |
Description |
| Enable FIM |
options.enableFIM |
Required boolean. Whether to enable FIM completion. |
| Enable NES |
options.enableNES |
Required boolean. Whether to enable Next Edit Suggestion; at least one of enableFIM and enableNES must be true. |
| FIM Model |
options.fimModel |
Required when FIM is enabled in independent-model mode. |
| FIM Candidate Count |
options.n |
Positive integer. Default: 1. Used only for independent FIM mode; falls back to one candidate when the transport does not support multiple candidates. |
| NES Model |
options.nesModel |
Required when NES is enabled in independent-model mode. |
| Model Unification |
options.modelUnification |
Whether FIM and NES share one model. Default: false. May be true only when both FIM and NES are enabled; when enabled, always uses the xtabUnifiedModel protocol and does not invoke the independent FIM transport. |
| Unified Model |
options.unifiedModel |
Required when model unification is enabled; used for both FIM insertions and NES edits. |
| Cursor Prediction Model |
options.cursorPredictionModel |
Optional. Used only to predict the next cursor position for NES; reuses the current NES or unified model when unset. If this model is unavailable, only cursor prediction is disabled and the main NES request is unaffected. |
| NES Prompt Strategy |
options.strategy |
Default in independent-model mode: copilotNesXtab. Options: copilotNesXtab, xtab275, xtabUnifiedModel, xtabAggressiveness, xtab275Aggressiveness, xtab275AggressivenessHighLow, xtab275EditIntent, xtab275EditIntentShort; match this to the model’s prompt and response protocol. |
| Eagerness |
options.eagerness |
NES adaptive request strategy: auto / low / medium / high. Default: auto. Changing this field does not rebuild the stateful Copilot runtime. |
| Completion Languages |
options.enabledLanguages |
Advanced. Map of language IDs to booleans, with * as a fallback, controlling automatic FIM. In unified-model mode, this works with inlineEditsEnabledLanguages to determine the completion channel. Enabled by default except for plaintext, markdown, and scminput; manually triggered independent FIM is not restricted by this setting. |
| Inline Edit Languages |
options.inlineEditsEnabledLanguages |
Advanced. Map of language IDs to booleans, with * as a fallback, controlling NES inline edits. Enabled by default except for plaintext, markdown, and scminput. |
| Respect Selected Completion Info |
options.respectSelectedCompletionInfo |
Advanced. Controls whether FIM treats the selected completion in the suggestion widget as a pending edit. When unset, this is determined automatically from the VS Code version and editor.quickSuggestions state. |
| Include Inline Completions |
options.includeInlineCompletions |
Advanced. Whether NES may return inline completions in the current document. Default: true. |
| Include Inline Edits |
options.includeInlineEdits |
Advanced. Whether NES may return inline or cross-file edits. Default: true. When NES is enabled, this and includeInlineCompletions cannot both be false. |
Zed (zed)
| Name |
ID |
Description |
| Model |
options.model |
Required. Used for Zed Edit Prediction. |
| Max Output Tokens |
options.maxTokens |
Positive integer. Default: 64; Zed Cloud v3/v4 requests use service-defined limits. |
Inception (inception)
| Name |
ID |
Description |
| Model |
options.model |
Required. Used for Mercury Edit 2 Next Edit; the service determines the output limit. |
Mistral (mistral)
| Name |
ID |
Description |
| Model |
options.model |
Required. Used for Codestral FIM. |
| Max Output Tokens |
options.maxTokens |
Positive integer. Default: 150. |
README 内容过长,已截取前 64 KB。完整内容请前往 GitHub 仓库查看。
评论