* 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
Gemini and VertexAI can return rate-limit errors where the HTTP status
is not 429 but the error code is embedded in the response body JSON
(e.g., "code":429). Add regex-based detection of these embedded errors
in both retry paths so they trigger exponential backoff correctly.
The comment described Claude Opus 4.5 as 'most intelligent model' but
this is now outdated since Claude Opus 4.6 was added as the new most
intelligent model. Updated to 'previous generation' for consistency.
Generated with [Continue](https://continue.dev)
Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: dallin <dallin+staging@continue.dev>
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").
Broadens the Windows-with-remote check from WSL-only to all non-local
remotes (Dev Container, SSH, Codespaces, etc.) so that terminal commands
fall back to ide.runCommand() instead of trying to spawn powershell.exe.
Fixes#10007
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract isExcluded helper that tests a given name against each exclusion
pattern in both its original and hyphen-stripped forms. Call it with
both the raw lowercased model name and the normalized (hyphen-stripped)
form so that e.g. "mistral-lite" is correctly caught by the
"mistrallite" exclusion regardless of which path is evaluated.
The exclusion check only tested the lowercased model name, missing cases
where hyphenated names like "Mistral-Lite" normalize to "mistrallite"
which should match the exclusion pattern.
Check exclusions on both raw and normalized (hyphen-stripped) model
names before delegating to Ollama's heuristic. This ensures:
1. Hyphenated exclusions like "mistral-openorca" are caught on the raw name
2. Non-hyphenated variants like "MistralOpenOrca" are caught on the
normalized name before the "mistral" support pattern matches
3. Hyphenated LM Studio IDs like "Meta-Llama-3.1-8B" still get detected
via the normalized fallback to Ollama
The LM Studio handler was checking Ollama's full heuristic (which
doesn't match hyphenated names) before trying the normalized version.
This caused hyphenated LM Studio model IDs like
"Meta-Llama-3.1-8B-Instruct-GGUF" to be incorrectly rejected.
Now checks exclusions separately first, then falls back to the
normalized (hyphen-removed) name for Ollama's support check.
Improve the LM Studio tool support check to first verify exclusions on the
original model ID before normalizing hyphens. This ensures that models like
'Mistral-Openorca-GGUF' are correctly excluded from tool support, while
allowing hyphenated variants of supported models like 'Meta-Llama-3.1-8B-Instruct-GGUF'.
The previous implementation would remove all hyphens before checking Ollama's
heuristics, which could bypass exclusion rules for models like mistral-openorca.
LM Studio uses hyphenated model identifiers (e.g., "Meta-Llama-3.1-8B-Instruct-GGUF"),
but the Ollama heuristic checks for non-hyphenated patterns like "llama3.1".
This fix normalizes hyphenated model names by removing hyphens before delegating to
Ollama's tool support logic, enabling agent mode for LM Studio models with hyphenated IDs.
Added comprehensive tests for hyphenated model names including:
- Meta-Llama-3.1-8B-Instruct-GGUF
- Qwen2-7B-Instruct
- Mixtral-8x7B-Instruct-v0.1
- Case insensitivity checks
- Negative tests for unsupported models like "Llama-Vision-Free"
Addresses feedback from Cubic AI bot review.
Add LM Studio to PROVIDER_TOOL_SUPPORT by referencing Ollama's
tool support implementation. LM Studio uses an OpenAI-compatible
API similar to Ollama, so the same model compatibility logic applies.
Fixes#5182
* feat: add tool prompt overrides support in YAML model config
Adds per-model tool prompt overrides under chatOptions in YAML config:
```yaml
models:
- name: my-model
chatOptions:
toolPromptOverrides:
run_terminal_command:
description: "Custom description"
view_diff:
disabled: true
```
This replaces the JSON-only implementation with YAML-only support as
requested by maintainers. The JSON implementation is preserved on the
`feature/tool-prompt-overrides-json` branch for reference.
Changes:
- Add toolOverrideSchema to chatOptionsSchema (packages/config-yaml)
- Add ToolOverride interface and toolPromptOverrides to LLMOptions (core)
- Store and apply overrides in BaseLLM.streamChat()
- Add applyToolOverrides utility with comprehensive tests
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat(cli): add tool prompt overrides support for CLI parity
Apply toolPromptOverrides from YAML model config in CLI,
ensuring feature parity with VS Code extension.
- Add applyChatCompletionToolOverrides helper for CLI tool format
- Apply overrides in streamChatResponse before LLM calls
- Support description changes and disabling tools
- Add unit tests for override logic
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore: package lock update
* ci: retrigger after hub 502
* refactor: rename toolPromptOverrides to toolOverrides
- Rename property across core, config-yaml, and CLI
- Consolidate ToolOverride type to extend ToolOverrideConfig from
config-yaml instead of duplicating 7 fields
- Inline record-to-array conversion to match file patterns
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore: retrigger CI (clean run)
* chore: revert gui package-lock to main
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.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
When Windows host connects to WSL remote, getEnvPathFromUserShell() was
returning undefined because it checked only process.platform === "win32".
Add remoteName parameter to getEnvPathFromUserShell() and use the
isWindowsHostWithWslRemote pattern (consistent with resolveCommandForPlatform)
to allow shell PATH detection for WSL remotes.
Fixes#9737
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Fixes#6242, #7810
When Windows VS Code connects to WSL, workspace files are accessed via
vscode-remote:// URIs. Previously, getAllDotContinueDefinitionFiles()
correctly read content via ide.readFile(), but loadYaml.ts discarded
the content and passed only the URI path to RegistryClient, which then
tried to re-read using fs.readFileSync() - failing for remote URIs.
Changes:
- Add optional content field to FileIdentifier (non-breaking)
- RegistryClient.getContent() returns pre-read content when present
- loadYaml.ts passes content along with file identifiers
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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>