Commit graph

173 commits

Author SHA1 Message Date
1bcMax
becda53a17
feat: add ClawRouter as a provider for cost-optimized model routing (#11751)
* feat: add ClawRouter as a provider for cost-optimized model routing

ClawRouter is an open-source LLM router that automatically selects the
cheapest capable model for each request based on prompt complexity,
providing 78-96% cost savings on blended inference costs.

Changes:
- Add ClawRouterApi class extending OpenAI adapter
- Add 'clawrouter' provider to the type system
- Add ClawRouter models (auto, free, eco)
- Add ClawRouter provider config with UI setup
- Add ClawRouter logo
- Add documentation (clawrouter.mdx)

Closes #10843

* docs: enhance ClawRouter documentation

- Add ClawRouter to providers overview
- Expand documentation with:
  - Model capabilities configuration
  - Multiple roles setup
  - Troubleshooting section
  - Cost monitoring
  - Comparison with OpenRouter
  - Complexity dimensions explanation

* feat: add ClawRouter to core/llm/llms

- Add ClawRouter.ts extending OpenAI base class
- Register ClawRouter in llms/index.ts

* feat: add User-Agent headers for ClawRouter integration tracking

- Add 'User-Agent: Continue/IDE' header to identify Continue requests
- Add 'X-Continue-Provider: clawrouter' header for routing analytics
- Enhanced documentation with features list

This helps ClawRouter optimize routing decisions based on integration
source and enables better analytics for the Continue community.

* feat: complete ClawRouter integration with full provider support

- Add clawrouter to PROVIDER_HANDLES_TEMPLATING (autodetect.ts)
- Add clawrouter to PROVIDER_SUPPORTS_IMAGES (autodetect.ts)
- Add clawrouter tool support function (toolSupport.ts)
- Add supportsReasoningField and supportsReasoningDetailsField
- Add promptTemplates with osModelsEditPrompt
- Match OpenRouter implementation patterns

* feat: add ClawRouter to VS Code schema, docs nav, and AI SDK

- Add clawrouter to VS Code config_schema.json provider enum
- Add ClawRouter description in config_schema.json
- Add clawrouter to docs.json navigation (top-level providers)
- Add clawrouter to AI SDK PROVIDER_MAP

* docs: add wallet setup and x402 payment documentation

- Add Wallet & Payment Setup section to clawrouter.mdx
- Document payment tiers (free/eco/auto)
- Add wallet funding instructions (Solana/Base USDC)
- Add spend control configuration
- Update VS Code schema description with wallet info
- Update provider longDescription with payment options

* feat: add premium tier and enhanced ClawRouter features

- Add blockrun/premium routing profile (mission-critical tasks)
- Add dual-chain wallet support docs (Base EVM + Solana)
- Add model exclusion documentation
- Update routing profiles table with savings percentages
- Update comparison table with auth/payment differences
- Total 44+ models, 4 routing tiers

* test: add ClawRouter unit tests

- Add ClawRouter.vitest.ts (core/llm/llms)
  - Provider name verification
  - Default options validation
  - Reasoning field support
  - User-Agent header verification
  - Routing profiles acceptance

- Add ClawRouter.test.ts (openai-adapters)
  - Default apiBase
  - Custom apiBase override
  - Continue headers
  - OpenAI standard headers

- Add clawrouter tests to toolSupport.test.ts
  - blockrun/* routing profiles
  - Tool-supporting model patterns

* docs: add routing profile switching and enhanced error handling docs

- Add 'Switching Between Routing Profiles' section with full examples
- Add /model command tip for quick switching
- Add 'Error Handling' section comparing Continue vs ClawRouter
- Document automatic error recovery (429, 402, 500+, timeout)
- Add response header documentation for diagnostics
- Add AI-powered doctor command for troubleshooting

* fix: address PR review feedback - move docs to /more, resize logo, add provider constants, fix docs example

* fix: replace clawrouter logo with higher-res brand kit version (128x128)
2026-03-26 10:26:12 -07:00
Dallin Romney
5f3a861a59
docs: add troubleshooting for Ollama memory errors (#11864)
* docs: add troubleshooting for "model requires more system memory" in Ollama

Add guidance for users encountering memory errors when using Ollama models
with Continue. Continue's higher default context length can trigger this
error even when models work in other tools. Documents the fix of reducing
contextLength in config, with examples for both YAML and JSON formats.

Ref: https://github.com/continuedev/continue/issues/11715

* docs: make ollama memory troubleshooting more concise

* docs: remove discussion link from ollama troubleshooting

* docs: fix broken link to ollama troubleshooting section
2026-03-25 21:04:27 -07:00
Dallin Romney
15ea93dae0
feat: add useResponsesApi option to opt out of Responses API (#11809)
* 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
2026-03-25 16:09:46 -07:00
Dallin Romney
d6259a7304
fix: respect contextLength from YAML model config (#11807)
* 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 #4638
Closes #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.
2026-03-25 12:26:52 -07:00
Dallin Romney
cf48e74084
feat(bedrock): support Bedrock API key authentication (#11798)
Add bearer token authentication for Bedrock API keys as an alternative
to IAM credentials, enabling users to authenticate without exposing
AWS access keys.

Closes #6645
2026-03-24 20:27:39 -07:00
Dallin Romney
09650d4a4f
fix(gemini): update model catalog for retired/new Gemini models (#11793)
* 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"
2026-03-24 20:22:47 -07:00
Dallin Romney
ceb3bbbd9f
Remove Gemini 2.0 Flash from defaults and update Claude defaults to 4.6 (#11782)
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.
2026-03-24 17:03:52 -07:00
Octopus
4714bae00a
feat: add MiniMax as a new LLM provider with M2.7 default (#11367)
* 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>
2026-03-24 13:06:19 -07:00
shanemort1982
19c3f35831
feat: add Tensorix as an LLM provider (#11184)
* 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>
2026-03-19 16:29:45 -07:00
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
Nate
b694757f47 docs: fix remaining 6 broken links with special char anchors
Remove or redirect anchors that target headings containing special
characters (@, backticks) which generate unpredictable slugs:
- Remove @ anchor from chat/how-to-use-it link
- Point @ context provider links to dedicated context-selection page
- Remove self-referencing anchor links in configuration.mdx
- Remove anchor from deprecated-docs link to deprecated-codebase

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 17:47:58 -08:00
Nate
cbb705427f docs: fix 28 broken internal links across documentation
Update broken anchor links and stale page references:
- Fix links to moved sections (overview → guides, troubleshooting → faqs)
- Remove broken anchors from model provider pages (embeddings sections removed)
- Fix prompt-templating anchor mismatches on model role pages
- Update redirected page references (agents/overview → mission-control)
- Fix double-hyphen anchors from @ symbol in headings
- Remove non-existent #local-blocks and #running-agents anchors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 17:43:43 -08:00
continue-staging[bot]
87dca552ef
docs: update references to Claude Sonnet 4.6 as new default model
Update documentation to reflect claude-sonnet-4-6 as the latest Anthropic
Sonnet model, replacing claude-sonnet-4-5 references in models.mdx and
anthropic.mdx hub links.

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:22:21 +00:00
Nate
71cd34b1bb docs updates 2026-02-16 13:19:21 -08:00
root
c12c87062f docs: update default model from Claude Opus 4.5 to Claude Opus 4.6
Updates the recommended model documentation to reflect the new default
model for Continue's platform.

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

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: bekah-hawrot-weigel <bekah@continue.dev>
2026-02-06 00:15:51 +00: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
Nate
92c593d1bf Merge remote-tracking branch 'origin/main' into nate/simplify-docs 2026-01-30 18:29:04 -08:00
Nate
487f5ba98c update icons 2026-01-30 17:34:52 -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
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
Dallin Romney
5f370df867
Merge branch 'main' into ovhcloud/update-models-and-tool-calling 2026-01-25 22:16:10 -08:00
alex-mcgraw-askSage
1393d28d29
Update docs/customize/model-providers/more/asksage.mdx
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-01-21 10:17:19 -06:00
alex-mcgraw-askSage
326d57c51e
Update asksage.mdx
Added a section for how to set up Continue CLI with Ask Sage models.
2026-01-21 09:17:24 -06:00
Nate Sesti
9f32e38158
Revert "Revert "docs: create IDE Extensions tab with Customize and Reference sections"" 2026-01-19 13:23:53 -08:00
Nate Sesti
9e3ea2c163
Revert "docs: create IDE Extensions tab with Customize and Reference sections" 2026-01-19 13:23:33 -08:00
Nate Sesti
337b5c0e4e
Merge pull request #9539 from continuedev/nate/ide-extension-docs
docs: create IDE Extensions tab with Customize and Reference sections
2026-01-19 13:07:10 -08:00
Elias TOURNEUX
a6e5ef405c
feat: Edit documentation 2026-01-19 10:43:28 -05:00
Nate
fcff0504b2 address feedbac 2026-01-16 19:47:36 -08:00
Nate
4762623549 docs: fix title case in documentation headers
Standardize header capitalization across documentation to follow
title case conventions (capitalize major words like nouns, verbs,
adjectives; keep minor words lowercase).

Changes include:
- Model provider docs: "Chat model" → "Chat Model", etc.
- Plan mode docs: "Understanding Plan mode" → "Understanding Plan Mode"
- CLI docs: "Quick start" → "Quick Start", "Next steps" → "Next Steps"
- Guide docs: various headers fixed for consistency
- Also fixed typo: "Availible models" → "Available Models"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 19:00:37 -08:00
Brian Douglas
2c4cb38df9
docs: fix broken links in documentation (#9506)
- Update relative URLs to absolute URLs
- Fix links to external resources
- Correct navigation paths in docs.json
- Update references to moved documentation pages

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

Co-authored-by: Continue <noreply@continue.dev>
2026-01-13 14:22:07 -08:00
Dallin Romney
4a938d60d2
Merge pull request #9404 from ahmedk20/mimo-model
Adding Xiaomi MiMo provider, the MiMo-V2-Flash model
2026-01-06 14:05:43 -05:00
Ahmed khaled
d617dfd983
git commit -m "feat(new model): adding MiMo-V2-Flash" 2026-01-03 05:55:37 +02:00
Alexey Palazhchenko
7cd5c2ee23
Fix typo in context providers recommendation 2025-12-20 16:05:42 +04:00
BekahHW
929082edf9
Merge pull request #9166 from continuedev/docs/add-agent-model-tip
docs: add tip callout about agent model selection
2025-12-15 13:10:34 -05:00
BekahHW
045ea50cd0
Update models documentation with tips and links
Removed image and added tips for model selection.
2025-12-15 13:00:00 -05:00
continue[bot]
ee36fcc904 docs: add tip callout about agent model selection
Add a Tip callout to the models documentation page explaining how users can choose models when creating agents in Mission Control or workflows, and that Continue uses a default agent with recommended model when none is specified.

Co-authored-by: bekah-hawrot-weigel <bekah@continue.dev>
Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
2025-12-15 16:40:01 +00:00
Ty Dunn
50ada29736 move updated telemetry page to correct location 2025-12-12 17:21:21 -08:00
burtenshaw
0d645fccd9 add name, version, and schema to config yaml 2025-12-04 11:07:16 +01:00
burtenshaw
0e291f0d49 Merge branch 'main' into update-hf-inference 2025-12-04 11:06:11 +01:00
burtenshaw
4586232be9 update overview copy for move and links 2025-12-04 11:02:06 +01:00
Dallin Romney
e1ba630166
Merge pull request #8961 from continuedev/nate/con-5033
docs: add required name, schema, and version fields to all YAML examples
2025-12-03 14:38:00 -08:00
Dallin Romney
23b359aab0 fix: my config not myproject 2025-12-02 13:17:05 -08:00
Dallin Romney
7b036c66a2 chore: sonnet 4.5 preference 2025-12-02 12:35:27 -08:00
Dallin Romney
886c0a4741 merge main 2025-12-02 12:25:02 -08:00
continue[bot]
f757c40332 docs: add required fields to all remaining YAML config.yaml examples
Extends PR #8961 to cover model provider docs, model role docs,
deep dive guides, and other documentation files that were missing
the required name, version, and schema fields in their config.yaml
examples.

This ensures all YAML examples throughout the documentation are
valid and prevent schema validation errors for users.

Co-authored-by: nate <nate@continue.dev>

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

Co-Authored-By: Continue <noreply@continue.dev>
2025-12-01 23:59:16 +00:00
burtenshaw
6d3f8a2b36
Update docs/customize/model-providers/top-level/huggingfaceinference.mdx
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-11-27 21:30:54 +01:00
burtenshaw
85e052ccec move in menu and update filename 2025-11-27 14:19:20 +01:00
burtenshaw
cbdeb17fe9 update inference on hf to latest offerings 2025-11-27 14:11:36 +01:00
Dallin Romney
827ca72bff
Merge pull request #8881 from uinstinct/gemini-3-support
chore: add support for gemini 3 pro preview
2025-11-26 13:57:58 -08:00