Skip to content

Conversation

@jasielmacedo
Copy link
Owner

This commit adds a user-configurable thinking mode toggle that allows users to control whether the AI uses advanced reasoning and tool calling for responses.

Changes:

  • Added thinking mode toggle UI in System Prompt Settings
  • Added database persistence for thinking-mode setting
  • Implemented chat store initialization to load thinking mode on app start
  • Added auto-refresh of thinking mode when settings are saved
  • Thinking mode controls whether AI uses tools (web search, page analysis, etc.)

When enabled (default): AI can use tools and provide comprehensive answers
When disabled: AI provides quick, direct responses without tool calling

This gives users control over response speed vs. depth based on their needs.

This commit adds a user-configurable thinking mode toggle that allows users to control whether the AI uses advanced reasoning and tool calling for responses.

Changes:
- Added thinking mode toggle UI in System Prompt Settings
- Added database persistence for thinking-mode setting
- Implemented chat store initialization to load thinking mode on app start
- Added auto-refresh of thinking mode when settings are saved
- Thinking mode controls whether AI uses tools (web search, page analysis, etc.)

When enabled (default): AI can use tools and provide comprehensive answers
When disabled: AI provides quick, direct responses without tool calling

This gives users control over response speed vs. depth based on their needs.
This is the critical API-level parameter that enables thinking/reasoning mode
for models that support it (like Qwen3).

Changes:
- Added think parameter to ChatRequest interface
- Updated Ollama service to pass think parameter to /api/chat endpoint
- Updated IPC handler to forward think parameter from renderer
- Updated chat store to send think parameter based on thinking mode setting

The think parameter is sent to Ollama API based on the user's thinking mode
setting, allowing models like Qwen3 to use advanced reasoning when enabled.

This completes the thinking mode toggle feature, connecting the UI setting
to the actual Ollama API parameter.
@jasielmacedo jasielmacedo merged commit 586c18e into main Nov 6, 2025
1 check passed
@jasielmacedo jasielmacedo deleted the claude/toggle-thinking-mode-011CUrB2NfpMTqyH4DR6qdPD branch November 6, 2025 13:23
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.

3 participants