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>
* feat: sonnet lazy apply prompt should not change comments
* change for ApplyManager.getApplyPrompt
* change for ApplyToFileHandler.buildApplyPrompt
* remove unused edit prompts in edit templates
* add do not change comments to edit templates
* tweak prompt to remove explicitly
* feat: Use the correct FIM template for Granite 4 models
Branch: GraniteFourTemplates
Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
* feat: Add granite4 name variants to the list of models that natively support tools
Branch: GraniteFourTemplates
Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
---------
Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
* fix: prevent anthropic 3.5 models from use thinking
* turn off for all claude 3 models
* use -3-
* fix: add 3.5 exclusion for thinking
---------
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
* Thinking for deepseek and openrouter providers
* fix: messages array is modified as a side-effect
* fix formatting and type errors
* Add type annotations for reasoning fields in OpenAI chunk processing
* Handle thinking blocks for openaiAdapter
* Optimize chat stream processing by replacing string concatenation with array operations for better performance
* Add support for Claude reasoning blocks with signature handling
* Add reasoning_details support for thinking messages in OpenAI type converters
* Optionally preserve reasoning, improve the handling of reasoning_details
* Remove debug console logs from reasoning details merging
* Remove reasoning content for Claude models when no signature is present in reasoning details
* remove forceStreamChat flag and simplify streaming logic in BaseLLM
* remove preserveReasoning option and always preserve reasoning blocks
* Responses API: apply net changes from 95f076b74^..8bd85e2fd as one commit on responses_api_2 to bring in Responses API work and merged updates
* add support for provider-specific reasoning fields in LLM implementations
---------
Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
* fix: mark premature close as tool call error
* fix: stop streaming if aborted
* fix: throw error not string
* fix: cleanup premature close catching
* fix: only capture premature close if there are tool calls to cancel
* fix: posthog should log either way for premature close
* fix: revert system message change