* fix: multiple OpenRouter provider improvements
- Add google/gemini-3 to tool support prefixes so Gemini 3 models are
detected as supporting tools via OpenRouter (#8980)
- Strip :free/:extended/:beta suffixes before matching in OpenRouter
tool support, fixing models like meta-llama/llama-3.2-3b-instruct:free
not being recognized (#11095)
- Add thought_signature fallback for Gemini models via OpenRouter to
prevent 400 errors when tool calling (#8980)
- Fix autocomplete/next-edit forcing legacy /completions endpoint on
OpenRouter, which only supports /chat/completions (#3648)
- Enrich OpenRouter error messages with provider metadata details
instead of showing generic "Provider returned error" (#11262, #11577)
* fix: remove error enrichment, add TODO for OpenRouter error extraction
* chore: clean up verbose comments and add OpenRouter tool support tests
* style: fix prettier formatting in toolSupport.ts
* 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"
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
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
Added tests for Gemini 3 Pro model recognition and other agent models.
Tests cover:
- OpenAI o1/o3/o4 models
- DeepSeek R1/Reasoner models
- Gemini 2.5 and 3.x Pro models (including new gemini-3-pro-preview)
- Claude Sonnet 3.7+ and Opus 4 models
- xAI Grok Code models
- Case insensitivity and edge cases
Co-authored-by: nate <nate@continue.dev>
Fixes#6619 where moonshotai/kimi-k2:free was causing 400 errors
in agent mode because it doesn't support tool calls.
This is a minimal, targeted fix that only affects the specific
model reported in the issue.