Commit graph

6211 commits

Author SHA1 Message Date
Dallin Romney
a2c1fe6897
feat: model updates and + z.ai (#10638)
* 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
2026-02-20 00:35:44 -08:00
continue-staging[bot]
ac2a940cd7
fix: update stale comment for Claude Opus 4.5 pricing
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>
2026-02-18 01:23:22 +00:00
Dallin Romney
c006d4b231 feat: add Claude Sonnet 4.6 and Claude Opus 4.6 models
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").
2026-02-17 11:49:21 -08:00
Dallin Romney
ce63eae384
feat: make create/read rule tools disabled by default (#10543)
feat: create/read rule tools disabled by default
2026-02-16 12:15:57 -08:00
Dallin Romney
b81f321f78
Merge pull request #10391 from shanevcantwell/fix/windows-remote-terminal-command
fix: generalize Windows remote detection for terminal commands
2026-02-11 03:12:26 -08:00
shanevcantwell
b7c2b4f074 fix: generalize Windows remote detection for terminal commands
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>
2026-02-10 08:01:35 -07:00
Varun Chawla
cfff26f522 fix: check exclusions against both raw and normalized model IDs for LM Studio
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.
2026-02-08 12:11:01 -08:00
Varun Chawla
dc47a957d1 fix: check exclusions on both raw and normalized model names for LM Studio
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.
2026-02-08 10:09:33 -08:00
Varun Chawla
f83aeed254 fix: correct model ID normalization order for LM Studio
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
2026-02-08 05:20:12 -08:00
Varun Chawla
61471b37f9 fix: check exclusions before early return in LM Studio tool support
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.
2026-02-08 05:05:33 -08:00
Varun Chawla
8b04ae1845 Fix LM Studio model ID tool support with proper hyphen normalization
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.
2026-02-08 01:24:34 -08:00
Varun Chawla
71d355ec44 fix: normalize hyphenated model IDs for LM Studio tool support
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.
2026-02-07 20:12:08 -08:00
Varun Chawla
be5181ef31 feat: enable agent mode support for LM Studio models
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
2026-02-07 15:16:51 -08:00
Dallin Romney
a7a5351b9c
feat: limited MCP App support (#10132)
* feat: MCP apps part 1

* feat: MCP app support part 3

* chore: cleanup PR

* chore: clean up mcp ui app types

* fix: address cubic feedback
2026-02-05 19:07:44 -08:00
dependabot[bot]
5cff904be8
chore(deps): bump @modelcontextprotocol/sdk in /core
Bumps [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk) from 1.25.2 to 1.26.0.
- [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
- [Commits](https://github.com/modelcontextprotocol/typescript-sdk/compare/v1.25.2...v1.26.0)

---
updated-dependencies:
- dependency-name: "@modelcontextprotocol/sdk"
  dependency-version: 1.26.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-04 20:40:42 +00:00
Dallin Romney
f14a2ff90a
Merge pull request #9716 from sarthakNITT/#9548
fix: improve error messages for invalid rule files
2026-02-03 15:46:05 -08:00
Dallin Romney
d3756a1069
Merge pull request #10145 from continuedev/snyk-fix-3d8a043388354fd6ec853aa993084927
[Snyk] Security upgrade @aws-sdk/credential-providers from 3.943.0 to 3.974.0
2026-02-03 13:32:39 -08:00
Dallin Romney
0397a446f3
Merge pull request #9968 from continuedev/move-token-adjustment-to-core
Move getAdjustedTokenCountFromModel from CLI to core
2026-02-03 13:31:58 -08:00
Dallin Romney
645f0d86a1 chore: package lock 2026-02-03 12:29:15 -08:00
snyk-bot
a8fba7ea77
fix: core/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-FASTXMLPARSER-15155603
2026-02-03 09:59:30 +00:00
Dallin Romney
5a5f5f8908 fix: don't crash config loading for one block failure 2026-02-03 00:15:32 -08:00
Dallin Romney
998425438b
Merge pull request #10127 from uinstinct/hub-local
fix: show error for blank inputs when using hub blocks in local config
2026-02-03 00:15:04 -08:00
Dallin Romney
318cb66c5e Merge branch 'main' of https://github.com/continuedev/continue into move-token-adjustment-to-core 2026-02-02 23:47:02 -08:00
Dallin Romney
437ac08acf
Merge pull request #9989 from Aboozle1/main
feat: add Nous Research Hermes models as provider
2026-02-02 22:43:15 -08:00
Dallin Romney
6c56210f1c
fix: add reasoning content field support in chat body (#10027) 2026-02-02 22:35:49 -08:00
Dallin Romney
6c7df3540c fix: mistral model matching 2026-02-02 22:12:07 -08:00
shanevcantwell
d80845c403
feat: add tool prompt override support in .continuerc.json (#9314)
* 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>
2026-02-02 21:55:21 -08:00
Houssem Zaier
dcac6260a7
fix: OpenAI Responses API parallel tool calls losing call_ids (#9659)
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
2026-02-02 21:45:48 -08:00
Aditya Mitra
4c8ab1cad5
Merge pull request #9524 from uinstinct/history-counter
feat: show message counter in history page
2026-02-02 12:13:43 -08:00
uinstinct
1a9ea0a29c change error name to use config.yaml instead of config.json 2026-02-02 21:53:05 +05:30
Dallin Romney
7c32e1e429 fix: mistral model matching 2026-01-31 15:42:13 -08:00
Dallin Romney
895632c0a5
fix: detect WSL remote for shell PATH resolution (#9934)
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>
2026-01-31 15:26:05 -08:00
shanevcantwell
38aae62e56
fix: pass pre-read content to RegistryClient for WSL compatibility (#9739)
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>
2026-01-31 15:19:25 -08:00
Dallin Romney
d762690510 fix: move token adjustment to separate module 2026-01-31 15:17:30 -08:00
Dallin Romney
20adbdcc2f
Merge pull request #10052 from continuedev/snyk-fix-d2da6a31f3e21a39470201b01d93555d
[Snyk] Security upgrade @aws-sdk/client-sagemaker-runtime from 3.777.0 to 3.894.0
2026-01-31 15:06:03 -08:00
Dallin Romney
21ea6a7e4b chore: update package lock 2026-01-31 14:23:03 -08:00
snyk-bot
8ca79b9a5a
fix: core/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-FASTXMLPARSER-15155603
2026-01-31 07:05:33 +00:00
Nate
92c593d1bf Merge remote-tracking branch 'origin/main' into nate/simplify-docs 2026-01-30 18:29:04 -08:00
Nate
f9feab110c Replace community Discord links with GitHub Discussions
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>
2026-01-30 17:19:56 -08:00
Dallin Romney
03e5fc3b92 chore: hub.continue.dev -> continue.dev 2026-01-30 15:47:00 -08:00
uinstinct
ac93dd9381 fix: add reasoning content field support in chat body 2026-01-30 14:25:13 +05:30
Dallin Romney
7b802e6ab0
Merge pull request #9959 from continuedev/dependabot/npm_and_yarn/core/hono-4.11.7
chore(deps): bump hono from 4.11.4 to 4.11.7 in /core
2026-01-28 16:31:20 -08:00
Abhaykhanna3
1ba9a669d6
feat: add Nous Research Hermes models as provider
- Add Nous.ts LLM provider extending OpenAI
- Add Hermes 3 and Hermes 4 model entries (70B, 405B, 36B variants)
- Add Nous to providers list with API base configuration
- Add Hermes detection for ChatML template in autodetect
- Add Nous to PROVIDER_HANDLES_TEMPLATING
- Add documentation page for Nous Research

Amp-Thread-ID: https://ampcode.com/threads/T-019c0611-a43c-764f-83a5-b91821140566
Co-authored-by: Amp <amp@ampcode.com>
2026-01-28 15:48:41 -05:00
dependabot[bot]
3b9063d3a0
chore(deps): bump tar from 7.4.3 to 7.5.7 in /core
Bumps [tar](https://github.com/isaacs/node-tar) from 7.4.3 to 7.5.7.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v7.4.3...v7.5.7)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.7
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-28 17:01:21 +00:00
RomneyDa
8da07defb4 Move getAdjustedTokenCountFromModel from CLI to core
- Moved getAdjustedTokenCountFromModel function from CLI tokenizer to core/llm/countTokens.ts
- Updated core countTokens() to use getAdjustedTokenCountFromModel for all models
- Added comprehensive tests for getAdjustedTokenCountFromModel in core
- Updated CLI tokenizer to import getAdjustedTokenCountFromModel from core
- Removed duplicate implementation and constants from CLI

This consolidates the token adjustment logic in one place and ensures
consistent token counting across CLI and core. The llama tokenizer is
now used for all models with appropriate multipliers for Claude (1.23x),
Gemini (1.18x), and Mistral family (1.26x) models.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: dallin <dallin@continue.dev>
2026-01-28 06:27:16 +00:00
dependabot[bot]
c7e9a92882
chore(deps): bump hono from 4.11.4 to 4.11.7 in /core
Bumps [hono](https://github.com/honojs/hono) from 4.11.4 to 4.11.7.
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.11.4...v4.11.7)

---
updated-dependencies:
- dependency-name: hono
  dependency-version: 4.11.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-27 19:36:05 +00:00
shanevcantwell
939b44b39f fix: detect WSL remote for shell PATH resolution
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>
2026-01-26 18:51:11 -07:00
Dallin Romney
5f370df867
Merge branch 'main' into ovhcloud/update-models-and-tool-calling 2026-01-25 22:16:10 -08:00
Dallin Romney
68a0e4bf85
Merge pull request #9740 from shanevcantwell/fix/wsl-mcp-spawn
fix: skip cmd.exe wrapping for MCP servers when Windows host connects to WSL
2026-01-25 22:08:05 -08:00
Dallin Romney
28adea01b0
Merge pull request #9845 from continuedev/snyk-upgrade-af8c4b0370632aeaecd3bc9a09696db4
[Snyk] Upgrade @huggingface/jinja from 0.1.3 to 0.5.3
2026-01-25 21:55:53 -08:00