Skip to content

Conversation

@benzntech
Copy link
Contributor

Related to #4506 and #7370

Summary

This PR addresses the pain points around configuring reasoning and tool capabilities for custom OpenAI-compatible models (like DeepSeek R1).

Findings: Existing GitHub issues (#4506, #7370) confirm that reasoning support for custom OpenAI-compatible models (like DeepSeek) has been a pain point. Code analysis revealed that the backend logic in base-openai-compatible-provider.ts has support for reasoning (via <think> tags) and tools, but these features were gated by flags that were unreachable from the UI for custom models.

Changes

  • UI: Added checkboxes for 'Supports Reasoning', 'Supports Function Calling', and 'Supports Computer Use' to the OpenAI Compatible settings.
  • UI: Compacted the capability checkboxes into a 2-column grid layout with tooltip-only descriptions.
  • Backend: Updated OpenAiHandler to inject the thinking parameter when reasoning is enabled and the model supports it (supportsReasoningBinary).
  • Backend: Gated tool inclusion based on the supportsNativeTools flag.
  • i18n: Added translation strings for the new settings.

How to Verify

  1. Open Settings > Providers > OpenAI Compatible.
  2. Configure a custom model (e.g., deepseek-reasoner).
  3. Check 'Supports Reasoning' and enable 'Reasoning Effort'.
  4. Send a query and verify that the 'Thinking' block is displayed.
  5. Toggle 'Supports Function Calling' and verify tools are included/excluded from requests.

@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2026

🦋 Changeset detected

Latest commit: 526a398

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Related to Kilo-Org#4506 and #7370

## Summary
This PR addresses the pain points around configuring reasoning and tool capabilities for custom OpenAI-compatible models (like DeepSeek R1).

## Changes
- **UI**: Added checkboxes for 'Supports Reasoning', 'Supports Function Calling', and 'Supports Computer Use' to the OpenAI Compatible settings.
- **UI**: Compacted the capability checkboxes into a 2-column grid layout with tooltip-only descriptions.
- **Backend**: Updated OpenAiHandler to inject the 'thinking' parameter when reasoning is enabled and the model supports it.
- **Backend**: Gated tool inclusion based on the 'supportsNativeTools' flag.
- **i18n**: Added translation strings for the new settings.

## Findings
The backend logic in base-openai-compatible-provider.ts has support for reasoning (via <think> tags) and tools, but these features were gated by flags that were unreachable from the UI for custom models.
@benzntech benzntech force-pushed the feat/openai-compatible-settings-improvements branch from 82cbecb to 8a902d2 Compare January 8, 2026 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant