continue-custom/core/llm/llms
Dallin Romney 16a540c337
fix: remove Ollama template-based tool support gate (#11905)
* fix: let explicit capabilities.tools override Ollama template tool detection

The Ollama provider checks the model template from /api/show for a
`.Tools` placeholder to decide whether to pass tools to the API. For
newer models (e.g. qwen3.5) whose templates may not yet include
`.Tools`, this silently strips tools from the request — even when the
user explicitly sets `capabilities: tools: true` in config.yaml.

Use nullish coalescing so an explicit capabilities.tools setting always
wins, with the template heuristic as a fallback.

* remove verbose comments

* remove templateSupportsTools check; trust upstream tool support detection

* fix: remove extra blank line to pass prettier check
2026-03-26 16:52:20 -07:00
..
stubs Add User-Agent headers to Continue Proxy and CLI requests (#8532) 2025-11-02 20:33:06 -08:00
test don't support fim through continue-proxy to vllm 2025-05-24 14:56:03 -07:00
test-utils remove dumb test 2025-07-17 23:09:50 -07:00
Anthropic.ts feat: add Claude Sonnet 4.6 and Claude Opus 4.6 models 2026-02-17 11:49:21 -08:00
Anthropic.vitest.ts change error name to use config.yaml instead of config.json 2026-02-02 21:53:05 +05:30
Asksage.ts refactor some interface imports, and fixed a bug in the CLI tooling. File reads weren't working, but now are. 2026-01-23 12:22:49 -06:00
Azure.ts revert providers to original 2025-07-17 20:51:23 -07:00
Bedrock.test.ts fix: 🎨 2025-09-09 09:02:14 -07:00
Bedrock.ts feat(bedrock): support Bedrock API key authentication (#11798) 2026-03-24 20:27:39 -07:00
BedrockImport.ts JSON parsing progress 2025-06-04 15:16:41 -07:00
Cerebras.ts Update available Cerebras models + handling functions (#6915) 2025-07-31 18:57:16 -07:00
ClawRouter.ts feat: add ClawRouter as a provider for cost-optimized model routing (#11751) 2026-03-26 10:26:12 -07:00
ClawRouter.vitest.ts feat: add ClawRouter as a provider for cost-optimized model routing (#11751) 2026-03-26 10:26:12 -07:00
Cloudflare.ts use fetch package for streaming utils 2025-05-16 10:33:17 -07:00
Cohere.ts Handle potential case where assistant content is already a block 2025-11-11 15:14:36 -03:00
Cohere.vitest.ts feat(cohere): add support from Reasoning/Vision/Translate models 2025-11-04 20:25:44 -03:00
CometAPI.ts fix(gemini): update model catalog for retired/new Gemini models (#11793) 2026-03-24 20:22:47 -07:00
CustomLLM.ts Enable Custom LLMs to use Tools by allowing customStreamChat to return ChatMessages as well as strings 2025-03-05 17:23:43 -05:00
DeepInfra.ts Remove embeddings folder 2024-12-08 16:16:59 -08:00
Deepseek.ts fix: add reasoning content field support in chat body 2026-01-30 14:25:13 +05:30
Docker.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
Fireworks.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
Fireworks.vitest.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
Flowise.ts catch client abort errors 2025-05-15 18:45:55 -07:00
FunctionNetwork.ts Remove embeddings folder 2024-12-08 16:16:59 -08:00
gemini-types.ts fix(gemini): merge consecutive same-role messages to fix ordering errors (#11805) 2026-03-25 12:27:06 -07:00
Gemini.ts fix(gemini): merge consecutive same-role messages to fix ordering errors (#11805) 2026-03-25 12:27:06 -07:00
Groq.ts chore: remove deprecated and add new llama3.3 2025-01-13 19:11:56 +07:00
Groq.vitest.ts prettier 2025-07-17 20:52:31 -07:00
HuggingFaceInferenceAPI.ts use fetch package for streaming utils 2025-05-16 10:33:17 -07:00
HuggingFaceTEI.ts respect embeddings batching for bedrock, hugginface, sagemaker 2025-06-17 13:11:20 -07:00
HuggingFaceTGI.ts fix: assign to contextLength basellm getter 2025-07-19 19:47:01 +02:00
Inception.ts feat: add Mercury Apply endpoint support to Inception LLM (#7827) 2025-09-18 23:44:25 -07:00
index.ts feat: add ClawRouter as a provider for cost-optimized model routing (#11751) 2026-03-26 10:26:12 -07:00
Kindo.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
Lemonade.ts Lemonade Integration (#7749) 2025-09-17 10:15:33 -07:00
LlamaCpp.ts fix(llama.cpp): include model name in completion request body (#11803) 2026-03-25 10:29:26 -07:00
Llamafile.ts remove EmbeddingsProvider 2024-12-08 12:30:35 -08:00
LlamaStack.ts fix style 2025-06-18 11:10:13 -07:00
llm.ts fix config yaml conflicts 2024-12-13 15:41:12 -08:00
llmTestHarness.ts fix type error actually 2025-07-17 22:23:25 -07:00
LMStudio.ts remove EmbeddingsProvider 2024-12-08 12:30:35 -08:00
Mimo.ts chore: format files with prettier 2026-01-05 14:48:28 +00:00
MiniMax.ts feat: add MiniMax as a new LLM provider with M2.7 default (#11367) 2026-03-24 13:06:19 -07:00
Mistral.ts feat: vertex ai openai adapter (#6736) 2025-07-24 15:38:57 -07:00
Mock.ts fix tests 2025-04-29 13:53:46 -07:00
Moonshot.ts fix(moonshot): add reasoning_content field support for Kimi models (#11806) 2026-03-25 10:29:40 -07:00
Msty.ts remove EmbeddingsProvider 2024-12-08 12:30:35 -08:00
NCompass.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
Nebius.ts Nebius info actualized 2025-02-13 16:34:03 +01:00
Nous.ts feat: add Nous Research Hermes models as provider 2026-01-28 15:48:41 -05:00
Novita.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
Nvidia.ts Remove embeddings folder 2024-12-08 16:16:59 -08:00
Ollama.test.ts fix: Ollama MCP tool calling for Mistral and Gemma3 models (#11523) 2026-03-24 13:49:32 -07:00
Ollama.ts fix: remove Ollama template-based tool support gate (#11905) 2026-03-26 16:52:20 -07:00
OpenAI-compatible-core.vitest.ts feat: Add CometAPI as a model provider 2025-09-17 23:04:09 +08:00
OpenAI-compatible.vitest.ts test: add Mimo provider to OpenAI-compatible test suite 2026-01-05 04:12:54 +02:00
OpenAI.test.ts feat: gpt-5 support (#7054) 2025-08-07 13:36:26 -07:00
OpenAI.ts fix: add reasoning content field support in chat body 2026-01-30 14:25:13 +05:30
OpenAI.vitest.ts try to fix tests again 2025-07-28 17:57:31 -07:00
OpenRouter.ts fix(openrouter): Gemini 3 tool support, suffix stripping, thought_signature, autocomplete endpoint (#11856) 2026-03-25 20:31:53 -07:00
OpenRouter.vitest.ts chore: sonnet 4.5 preference 2025-12-02 12:35:27 -08:00
OVHcloud.ts feat: Add new OVHcloud models 2026-01-19 10:39:17 -05:00
Relace.ts relace support prediction 2025-04-21 11:13:06 -07:00
Replicate.ts Fixed the integration issues with the Replicate provider 2025-10-23 15:16:46 +01:00
SageMaker.ts respect embeddings batching for bedrock, hugginface, sagemaker 2025-06-17 13:11:20 -07:00
SambaNova.ts fix: Update sambanova models (#7901) 2025-09-22 13:53:26 -07:00
Scaleway.ts feat(scaleway): update supported models 2025-09-08 16:01:19 +02:00
SiliconFlow.ts use fetch package for streaming utils 2025-05-16 10:33:17 -07:00
TARS.ts feat: Add Tetrate Agent Router Service as a provider (#7136) 2025-08-29 13:11:17 -07:00
Tensorix.ts feat: add Tensorix as an LLM provider (#11184) 2026-03-19 16:29:45 -07:00
Test.ts delete artifacts 2025-06-30 15:27:48 -07:00
TextGenWebUI.ts remove EmbeddingsProvider 2024-12-08 12:30:35 -08:00
Together.ts remove EmbeddingsProvider 2024-12-08 12:30:35 -08:00
TransformersJsEmbeddingsProvider.ts fix embed model titles 2025-03-24 23:47:00 -07:00
Venice.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
VertexAI.ts feat: use google/genai sdk for streaming gemini & vertex responses (#8907) 2025-12-04 13:03:57 -08:00
Vllm.ts fix: vLLM provider should respect user-configured contextLength and model (#11868) 2026-03-25 22:21:11 -07:00
Voyage.ts use safe parsed schema 2025-08-12 00:47:34 +05:30
WatsonX.ts Watsonx image support (#8324) 2025-10-22 18:42:31 -07:00
xAI.ts fix: edit mode throwing error for xai provider (#11002) 2026-03-10 00:32:52 -07:00
zAI.ts feat: model updates and + z.ai (#10638) 2026-02-20 00:35:44 -08:00