Commit graph

458 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
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
653c6b9e5b
fix: remove Llama 3.1 405B from Groq provider (#11804)
* 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>
2026-03-25 08:52:20 -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
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
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
Elias TOURNEUX
9c2ffde418
feat: Add new OVHcloud models 2026-01-19 10:39:17 -05:00
Dallin Romney
ff335487aa merge: main 2025-11-25 20:39:59 -08:00
Maxime Brunet
9525ea8794
feat(cohere): add support from Reasoning/Vision/Translate models 2025-11-04 20:25:44 -03:00
Dallin Romney
7a5731eb23 feat: sonnet 4 5 updates and 3 5 deprecation 2025-10-18 01:33:39 -07:00
Continue Agent
2b63687cd1 Remove deprecated gemini-2.5-pro-exp-03-25 model
- Removed gemini-2.5-pro-exp-03-25 from Gemini provider model list
- Removed gemini25ProExp configuration from GUI models list
- Updated VSCode config schema to exclude deprecated model
- Updated VertexAI provider to remove deprecated model
- Users should use gemini-2.5-pro or gemini-2.5-pro-latest instead

Co-authored-by: Username <brian@continue.dev>
2025-10-17 18:21:09 +00:00
Dallin Romney
389664ddf5 fix: deprecate gemini 1.5 2025-10-01 10:46:51 -07:00
Fred Bricon
0b4e31a059 feat: enable reasoning toggle for ollama models
Signed-off-by: Fred Bricon <fbricon@gmail.com>
2025-09-03 09:36:16 +02:00
John Landa
457195484a
feat: Add Tetrate Agent Router Service as a provider (#7136)
feat: Add TARS as a provider

Update gui with TARS provider

Change default model to gpt-5 mini
2025-08-29 13:11:17 -07:00
Dallin Romney
2b88e54e37 support secretAccessKey and accessKeyId for bedrock 2025-07-07 18:47:37 -07:00
Dallin Romney
5fdd168502 update search tool and context provider docs/schema 2025-06-19 17:42:09 -07:00
Maxime Brunet
fbd0a9da51
🔧 refresh list of Cohere models 2025-06-14 17:13:15 -03:00
Nate Sesti
8165292481
Merge pull request #5854 from continuedev/inception-fixes
add inception to json providers
2025-06-06 08:48:08 -07:00
Nate Sesti
bb760f76c2
Merge pull request #5855 from continuedev/dallin/remove-free-trial
Remove free trial provider
2025-05-31 23:31:07 -07:00
Dallin Romney
bbb81ff032 remove free trial provider 2025-05-26 17:42:05 -07:00
Dallin Romney
1e26926462 inception provider 2025-05-26 16:42:21 -07:00
Maxx Rodriguez
6b73576e2b updated the config_schema to allow for 'streamable-http' as a valid enum 2025-05-24 10:10:51 -07:00
Patrick Erichsen
a084d7f456
Merge pull request #5453 from tgmerritt/feat/add_cerebras_llama_4_17b
Add Llama 4 Scout Cerebras to definition schema
2025-05-05 16:38:58 -07:00
Tyler Merritt
2fb51873c5 Add new model definition 2025-04-30 16:58:49 -05:00
Nate
9e01f688b1 Merge branch 'main' into venice 2025-04-29 13:01:19 -07:00
Nate Sesti
ffd0e9c3c0
Merge pull request #4353 from Fmstrat/ollama-num-gpu
add support for Ollama num_gpu
2025-04-29 12:59:54 -07:00
Nate
a9ec23896f Merge branch 'main' into venice 2025-04-29 12:52:20 -07:00
Nate
abfd726712 Merge branch 'main' into ollama-num-gpu 2025-04-29 12:27:04 -07:00
Nate
075e7cca2a Merge branch 'main' into ovhcloud/add-ai-endpoints-llms 2025-04-29 12:00:33 -07:00
Tomasz Stefaniak
d0c063aaa0
Merge pull request #5041 from ferenci84/reasoning_params_to_schemas
Add reasoning and reasoningBudgetTokens parameters to config schemas and docs
2025-04-29 11:55:24 -07:00
Nate Sesti
7cd7f60153
Merge pull request #5266 from jhpiedrahitao/snova-jorgep/update-sambanova
update sambanova models
2025-04-29 11:12:38 -07:00
Nate Sesti
d1b0de1cbb
Merge pull request #4663 from bhaktatejas922/main
apply
2025-04-29 08:46:11 -07:00
Dallin Romney
907ca2476a
Update config_schema.json
fix json I broke in previous commit
2025-04-28 15:57:41 -07:00
Dallin Romney
598b83c39e
Merge branch 'main' into tgmerritt/add_gemini_pro_2_5 2025-04-25 12:07:43 -07:00
bhaktatejas922
e5353640f4 adding morph 2025-04-23 16:33:37 -07:00
jhpiedrahitao
e64cfa6769 update cloud url 2025-04-22 15:31:31 -05:00
jhpiedrahitao
92bf3ce5a0 update models 2025-04-21 10:21:50 -05:00
ferenci84
ff204efad6 Merge branch 'main' into reasoning_params_to_schemas 2025-04-20 16:36:47 +02:00
Dallin Romney
d6fafa0033 add model from gui, json schema 2025-04-10 22:16:35 -07:00
Lucien Loiseau
0e4f17280b add OVHcloud AI Endpoints provider
OVHcloud AI Endpoints is a serverless inference API that provides
access to a curated selection of models (e.g., Llama, Mistral, Qwen,
Deepseek). It is designed with security and data privacy in mind
and is compliant with GDPR.

This commit adds OVHcloud AI Endpoint as a listed provider and makes
the appropriate connection to the supported models.
2025-04-09 10:27:43 +02:00
ferenci84
2c0413ecc5 Add reasoning and reasoningBudgetTokens parameters to config schemas and docs 2025-04-08 11:18:34 +02:00
Nate Sesti
ddafcab796
Merge pull request #4915 from zhyhang/feat/some-ehance-202504
add google gemini-2.5-pro-exp-03-25 and others; lift siliconflow to reranker model provider
2025-04-02 19:10:24 -07:00
Dallin Romney
86a66c4091 docs fixes 2025-03-31 12:43:19 -07:00
zhyhang
feced1182e supplement gemini ai status models code and add siliconflow to reranker model provider list 2025-03-31 22:28:45 +08:00
zhyhang
897c8d73a3 add gemini ai studio new models 2025-03-30 16:25:02 +08:00
Tyler Merritt
2217e96a96 Fixing typo 1.5 -> 2.5 2025-03-25 17:02:32 -05:00
Tyler Merritt
0e0e83c00d Add gemini-2.5-pro to model list 2025-03-25 16:56:23 -05:00
Nate
2f8d4901fd first take relace provider 2025-03-19 11:03:16 -07:00
Nate
a25169dc61 Merge branch 'main' into ollama-num-gpu 2025-03-16 13:04:42 -07:00