Register mercury-2 (128k context, tool-calling) and mercury-edit-2 in
llm-info, add Inception Labs provider to the GUI Add Chat Model form,
and flag mercury-2 as tool-capable in PROVIDER_TOOL_SUPPORT.
* fix: resolve critical and high security vulnerabilities across packages
Bump vulnerable dependencies and remove unused `request` package to
address ~351 of ~394 npm audit vulnerabilities reported by GitHub.
* fix: handle nullable textContent from @mozilla/readability v0.6.0
readability.textContent can be undefined in v0.6.0, add nullish
coalescing to satisfy ArticleComponent.body type constraint.
* fix: show actionable error when Ollama fails to parse tool calls
When Ollama models (e.g. gpt-oss:20b) produce malformed tool call
output, Ollama returns "error parsing tool call" which previously
surfaced as an opaque "Unknown error".
Add pattern matching in analyzeError() to detect this specific error
and show a helpful message explaining the issue is transient, that the
user can resubmit, and that enabling "Only use system message tools"
in Settings > Experimental avoids Ollama's native tool call parser.
Fixes#11783, #11063, #10954, #10897, #10711, #10221, #9433
* fix: refine Ollama tool call error copy and matching
Tighten string match to "error parsing ollama response: error: error
parsing tool call" to avoid false positives. Soften settings suggestion
to "Enabling ... may reduce these errors".
* fix: match on Ollama's error string directly
fix: hide thinking indicator when thinking content is empty
Check that resolved thinking content has non-whitespace characters
before rendering the ThinkingBlockPeek component, preventing empty
or whitespace-only thinking blocks from showing in the chat UI.
* feat: add `useResponsesApi` option to allow opting out of OpenAI Responses API
Add a `useResponsesApi` config option that, when set to false, forces
o-series and gpt-5 models to use /chat/completions instead of /responses.
This helps users whose organizations are not verified avoid "organization
must be verified" errors related to reasoning summaries and streaming.
The option gates both code paths where the Responses API is selected:
- `canUseOpenAIResponses()` in BaseLLM (native path)
- `shouldUseResponsesEndpoint()` in the OpenAI adapter
Closes#11772
Related: #8209, #7129
* feat: suggest `useResponsesApi: false` in org verification error messages
Update error detection to also catch "organization must be verified to
stream" errors (in addition to reasoning summaries), and update the
error message to suggest adding `useResponsesApi: false` to model config
as a workaround.
* fix: improve org verification error message copy
* fix: add useResponsesApi to LLMOptions in index.d.ts
The actual type definitions used by tsc are in core/index.d.ts, not in
the string template in config/types.ts.
* fix: also check provider name when detecting org verification errors
The error message from OpenAI's API doesn't always contain the word
"openai" — check the provider name from the model config as well.
* feat: detect missing authentication header error and suggest adding apiKey
* fix: handle missing auth error directly in 401 dialog block
The 401 status code handler in StreamError.tsx renders before the
customErrorMessage check, so detect the missing authentication error
inline within the 401 block.
* Revert "fix: handle missing auth error directly in 401 dialog block"
This reverts commit 0053957d2df7c64ddea2279982f5e07e2cee1020.
* style: fix prettier formatting in index.d.ts
* style: revert unrelated prettier reformatting in index.d.ts
* fix: handle undefined providerName in error analysis
* fix: use YAML-style formatting in useResponsesApi suggestion
* fix: respect contextLength from YAML model config
Three fixes for contextLength not being respected:
1. Add contextLength to YAML model schema at the model level (not just
inside defaultCompletionOptions), matching JSON config behavior
2. Read contextLength from both model-level and defaultCompletionOptions,
with model-level taking precedence
3. Fix GUI selector fallback using DEFAULT_MAX_TOKENS (4096) instead of
DEFAULT_CONTEXT_LENGTH (32768)
Closes#4638Closes#4304
* fix: reduce complexity in modelConfigToBaseLLM
Replace find callbacks with includes() to offset complexity from
contextLength nullish coalescing.
* docs: document contextLength at model level in config.yaml reference
* docs: consistently show contextLength in defaultCompletionOptions for YAML
YAML examples use defaultCompletionOptions.contextLength, JSON examples
use model-level contextLength. Also fixes ollama guide using the wrong
key name (completionOptions -> defaultCompletionOptions).
* refactor: extract env options into helper to reduce complexity
Extract the repetitive env-to-options mapping from modelConfigToBaseLLM
into a separate applyEnvOptions function, bringing complexity well under
the limit of 36.
* fix: remove Llama 3.1 405B from Groq provider
The model `llama3.1-405b` is no longer available on Groq, causing 404
errors. Remove it from the Groq provider packages and provider options.
Closes#10832
* Remove llama3.1-405b from Groq model list in config_schema.json
---------
Co-authored-by: continue[bot] <230936708+continue[bot]@users.noreply.github.com>
* fix(gemini): update model catalog for retired/new Gemini models
Gemini 1.x models are fully retired (returning 404), gemini-3-pro-preview
was shut down March 9 2026, and new 3.1 series models were missing.
- Add gemini-3.1-pro-preview, gemini-3.1-flash-lite-preview, gemini-3.1-flash-image-preview
- Replace gemini-3-pro-preview with gemini-3.1-pro-preview everywhere
- Remove retired Gemini 1.x models (gemini-1.0-pro, gemini-1.5-pro, gemini-1.5-flash, gemini-1.5-flash-8b)
- Remove retired experimental 2.0 image gen models
- Fix default model from retired gemini-pro to gemini-2.5-flash
- Update docs, onboarding config, VSCode schema, GUI model picker, VertexAI provider
- Update isRecommendedAgentModel regex and tests
Fixes#10996, #10998
* fix: address review comments
- Add missing gemini-3.1-flash-image-preview to VS Code schema enum
- Tighten isRecommendedAgentModel regex to match 3-flash-preview (not bare 3-flash)
- Update case-insensitivity tests for new model names
* fix: fix misleading test description and inconsistent doc heading
- Rename test to "Gemini 3.1 Pro and 3 Flash Preview models" to match assertions
- Update chat.mdx heading from "Gemini 3 Pro" to "Gemini 3.1 Pro"
chore: remove Gemini 2.0 Flash from defaults/UI/docs and update Claude defaults to 4.6
Gemini 2.0 Flash is no longer supported for new Gemini users. Remove it
from the add model form, onboarding defaults, config schema, docs, and
CometAPI supported models list. Replace with Gemini 2.5 Flash where
appropriate. Gemini 2.0 Flash remains in llm-info for existing users.
Update Claude model defaults to 4.6 series (Sonnet 4.6 and Opus 4.6) in
onboarding config, workspace block templates, and documentation examples.
* feat: add MiniMax as a new LLM provider
Add MiniMax (https://platform.minimax.io) as a new LLM provider with
OpenAI-compatible API support.
Changes:
- Add MiniMax LLM provider class extending OpenAI with temperature
clamping (must be in (0, 1]) and response_format removal
- Register provider in LLMClasses, openai-adapters, and config-types
- Add model info for MiniMax-M2.5 and MiniMax-M2.5-highspeed
(204K context, 192K max output)
- Add GUI model selection entries and provider configuration
- Add provider documentation page
* fix: use dedicated MiniMaxApi adapter instead of generic OpenAIApi
The minimax provider was wired to the generic OpenAIApi via
openAICompatible(), which skips MiniMax-specific request fixes.
This creates a dedicated MiniMaxApi adapter class that overrides
modifyChatBody to apply temperature clamping (MiniMax requires
temperature in (0.0, 1.0]) and response_format removal, matching
the adaptations already present in core/llm/llms/MiniMax.ts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: upgrade MiniMax default model to M2.7
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list
- Set MiniMax-M2.7 as default model
- Keep all previous models (M2.5, M2.5-highspeed) as alternatives
- Update docs and GUI model selection
* fix: add minimax to PROVIDER_HANDLES_TEMPLATING and PARALLEL_PROVIDERS
MiniMax uses an OpenAI-compatible chat completions API, so it handles
templating natively. MiniMax also supports parallel tool calls.
Not added to PROVIDER_SUPPORTS_IMAGES since MiniMax M2.7 is text-only.
* style: fix prettier formatting in MiniMax provider files
---------
Co-authored-by: PR Bot <pr-bot@minimaxi.com>
Co-authored-by: octo-patch <octo-patch@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
* fix: resolve "No chat model selected" error and GUI/core model mismatch
Three fixes for the model selection bugs reported in #11656 and 12+ related issues:
1. Fix loadConfig() init ordering: await isInitialized before checking
currentProfile, consistent with getSerializedConfig(). Prevents
returning config: undefined during initialization race.
2. Avoid full config reload on model selection: The config/updateSelectedModel
handler now updates the model in the cached config in-place instead of
doing a full reloadConfig(). This eliminates the window where
selectedModelByRole.chat is null during reload, and prevents the
configUpdate from core overwriting the GUI's optimistic selection.
3. Guard against undefined config in GUI: handleConfigUpdate now also
checks !configResult.config alongside configLoadInterrupted, preventing
EMPTY_CONFIG (with chat: null) from being applied.
* fix: resolve "No chat model selected" error on startup
Two fixes for the "No chat model selected" error reported in #11656 and
12+ related issues across all providers:
1. Fix loadConfig() init ordering (ConfigHandler.ts): Move
`await this.isInitialized` before the `!this.currentProfile` check,
matching the pattern already used in getSerializedConfig(). Without
this, loadConfig() called during initialization returns
config: undefined because currentProfile hasn't been set yet.
2. Guard against undefined config in GUI (ParallelListeners.tsx):
handleConfigUpdate now also checks `!configResult.config` alongside
configLoadInterrupted, preventing EMPTY_CONFIG (with
selectedModelByRole.chat: null) from being applied.
* fix: provide valid mock config to fix GUI test failures
The added `!configResult.config` guard in ParallelListeners caused tests
to bail early since MockIdeMessenger returned `config: undefined`.
* Improve error handling UX and move stream retry to BaseLLM
- Remove issue reporting buttons (GitHub/Discussions) from stream error dialog
- Add error detection for invalid API keys, OpenAI org verification,
insufficient balance (402), and failed secret templating
- Update out-of-credits copy to match current messaging
- Add sk- prefix validation for OpenAI/Anthropic keys in add model form
- Update OpenRouter API key URL to workspaces/default/keys
- Move overloaded/malformed JSON retry from GUI streamThunkWrapper to
BaseLLM _retryableStream to avoid glitchy UI from GUI-level retries
- Add overloaded/malformed JSON detection to core retry infrastructure
* fix: simplify retry architecture and make sk- validation a warning
- Remove _retryableStream from BaseLLM; overloaded/malformed JSON retry
belongs in withExponentialBackoff at the HTTP fetch level
- Revert defaultShouldRetry/calculateDelay exports (no longer needed externally)
- Keep OpenRouter API key URL unchanged
- Make sk- prefix validation a warning instead of blocking error
* Fix stale comment referencing removed retry decorator
* Improve 402 Insufficient Balance error message clarity
* fix: improve copy - rename "View key" to "Check API key", use warning styles, simplify secret error message
* fix: use ternary for className to avoid space stripping by prettier
* style: fix prettier formatting in OutOfCreditsDialog
---------
Co-authored-by: continue[bot] <230936708+continue[bot]@users.noreply.github.com>
Node.js v20 entered Maintenance LTS six months ago. Update the version
from v20.19.0 (released over a year ago) to v20.20.1, the latest LTS
release this month.
This ensures the project leverages recent Node.js improvements,
including security updates, and stays on a supported LTS track.
* feat: add Tensorix as an LLM provider
Adds Tensorix (https://tensorix.ai) as a new OpenAI-compatible
provider, giving users access to DeepSeek, Llama 4, Qwen, GLM,
and other models through a single API key.
Changes:
- New LLM class (core/llm/llms/Tensorix.ts)
- Registered in LLM index and config schema
- Added to VS Code extension config schema
- Added to GUI provider selection with AUTODETECT
* Fix missing commas in config_schema.json for tensorix entries
Co-authored-by: openhands <openhands@all-hands.dev>
* feat: address reviewer feedback for Tensorix provider
- Add tensorix to openai-adapters (types.ts + index.ts)
- Add tensorix to PROVIDER_HANDLES_TEMPLATING, PROVIDER_SUPPORTS_IMAGES,
and PARALLEL_PROVIDERS in autodetect.ts
- Add docs page for Tensorix under more providers
- Add tensorix to docs.json navigation
Co-authored-by: openhands <openhands@all-hands.dev>
---------
Co-authored-by: openhands <openhands@all-hands.dev>
The terminal command display hardcoded a `$ ` before every command.
This is a Unix shell convention with no meaning on Windows (PowerShell,
cmd) and doesn't reflect the user's actual shell. Since the command is
already visually distinct inside a labeled Terminal block, the prefix
adds no information and is misleading cross-platform.
Closes#11428
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* fix: terminal URL link detection now captures port numbers in IP addresses
The link regex was designed for domain names and broke on IP:port URLs like
http://192.168.137.1:8081, only linkifying up to the IP without the port.
Simplified the http/https branch to match everything after the protocol
until whitespace.
Closes#11368
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* test: validate link href attributes in terminal URL test
The text-only assertion wouldn't catch a regression where the URL
appears in output but the <a> href is truncated (e.g. missing port).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* style: fix prettier formatting on link regex
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
fix: harden system message tools instructions and wire toolOverrides to system message path
The system message tools path (used when models don't support native tool
calling) had two issues:
1. Weak format instructions - the prefix/suffix used vague prose that local
models often ignored, reverting to XML or JSON tool call formats from
their training priors. Replaced with explicit numbered rules that
prohibit alternative formats.
2. toolOverrides silently ignored - applyToolOverrides() existed and ran on
the native tools path (in BaseLLM.streamChat), but was never called on
the system message path. Config YAML toolOverrides for disabled and
description had no effect when tools were injected via system message.
Fixed by:
- Strengthening systemMessagePrefix/Suffix in toolCodeblocks framework
- Adding toolOverrides to ModelDescription interface and serialization
- Calling applyToolOverrides() in streamNormalInput before both paths
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
fix: silently hide MCP UI on errors instead of showing broken content
When an MCP UI app can't handle a tool's data (e.g. server tags
non-UI tools with ui/resourceUri), hide the UI rather than showing
confusing error messages. Changes:
- Return null on error instead of rendering red error box
- Wrap sendToolInput/sendToolResult in try/catch
- Hide UI when MCP app reports error/critical via bridge logging
* Add latest model definitions across providers
Add new models for OpenAI (gpt-4.1, gpt-5.2, codex-mini, o1/o3/o4-mini),
Gemini (2.5 stable, 2.5-flash-lite, 3-flash-preview), Mistral (devstral,
magistral, ministral, mistral-nemo), xAI (grok-4-fast, grok-4-1-fast,
grok-3-fast), and Bedrock (Claude 4.5/4.6, Nova, Llama 4, DeepSeek).
Update tool support and reasoning detection for the new model families.
* Add Z.ai (GLM) provider, Kimi K2/K2.5 models, and fix OpenRouter tool support bug
- Add Z.ai as a new provider with GLM-5, GLM-4.7, GLM-4-plus, GLM-4.5 models
- Add Kimi K2 and K2.5 model packages to Moonshot provider
- Fix variable shadowing bug in OpenRouter tool support where loop
variables shadowed the outer model parameter, causing specificModels
and supportedContains checks to always return true
- Add moonshotai/kimi and zai-org/glm to OpenRouter supported prefixes
- Add Z.ai and Moonshot to docs navigation
* Clean up unnecessary import aliases for zAI
* Add Z.ai Coding Plan endpoint note to docs
* Replace placeholder zai.png icon with proper zAI.svg
* Add zAI provider to openai-adapters
* Fix Z.ai API key URL
Add claude-sonnet-4-6 and claude-opus-4-6 as the new default Sonnet and
Opus models across providers, GUI configs, schemas, cost calculation,
and CLI defaults. Update display names for all >= 4.5 models to use
name-first format (e.g. "Claude Sonnet 4.5" not "Claude 4.5 Sonnet").
* Add OpenRouter provider configuration to Add Model Form
* feat: add search functionality to model selection listbox
* Update gui/src/components/modelSelection/ModelSelectionListbox.tsx
ai suggestion
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* fix: update isOpenSource determination based on hugging_face_id
* Trigger CI/CD
* refactor: propery cleanup openrouter
* feat: add initialization function for OpenRouter models
- Replaced the import of openRouterModelsList with getOpenRouterModelsList.
- Added a new function `initializeOpenRouterModels` to fetch and initialize OpenRouter models from the API.
- Updated the providers object with the fetched models upon successful retrieval.
- Added error handling to reset the models list in case of a fetch failure.
* feat: enhance OpenRouter model initialization with loading placeholder and effect hook
* fix: openrouter model fetching cleanup
* fix: open router model fetching cleanup
* lint: cli
---------
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
When GPT-5 makes parallel tool calls, each function_call has a unique
call_id (fc_*). These IDs were being overwritten instead of accumulated,
causing the error: "No tool call found for function call output with call_id"
Changes:
- sessionSlice.ts: Accumulate IDs in responsesOutputItemIds[] array
- openaiTypeConverters.ts: Emit function_call for EACH toolCall with matching ID
Ref: https://platform.openai.com/docs/guides/function-calling
- Change empty slash command dropdown to create invokable markdown prompt file instead of opening hub
- Use config/addLocalWorkspaceBlock with 'prompts' blockType to create markdown-based prompt
- Remove Continue Hub link from Help section as it's no longer actively maintained
- This creates .md prompt files that are invokable via slash commands
Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)
Co-Authored-By: Continue <noreply@continue.dev>
Discord links across docs, READMEs, GUI components, and issue templates
now point to https://github.com/continuedev/continue/discussions.
The Discord context provider (product feature) is left untouched.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>