feat(thinking): default thinking mode ON
Flip the Thinking toggle to default ON: localStorage init now reads !== 'false' (matching the standard default-on idiom), and both desktop and mobile buttons render green "Thinking: ON" by default. Users opt out to save tokens; the OFF path still drives server-side enable_thinking=false.
This commit is contained in:
parent
0fdb673a70
commit
0b66a50938
2 changed files with 7 additions and 7 deletions
|
|
@ -104,8 +104,8 @@
|
|||
</button>
|
||||
</div>
|
||||
<div id="show-thinking-mobile">
|
||||
<button id="show-thinking-btn-mobile" onclick="toggleShowThinking()" style="width: 100%; margin-top: 10px; background-color: #f44336; color: white; border: none; padding: 8px; border-radius: 4px; cursor: pointer;">
|
||||
Thinking: OFF
|
||||
<button id="show-thinking-btn-mobile" onclick="toggleShowThinking()" style="width: 100%; margin-top: 10px; background-color: #4CAF50; color: white; border: none; padding: 8px; border-radius: 4px; cursor: pointer;">
|
||||
Thinking: ON
|
||||
</button>
|
||||
</div>
|
||||
<div id="activity-controls-mobile">
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@
|
|||
</button>
|
||||
</div>
|
||||
<div>
|
||||
<button id="show-thinking-btn" onclick="toggleShowThinking()" style="width: 100%; margin-top: 10px; background-color: #f44336; color: white; border: none; padding: 8px; border-radius: 4px; cursor: pointer;">
|
||||
Thinking: OFF
|
||||
<button id="show-thinking-btn" onclick="toggleShowThinking()" style="width: 100%; margin-top: 10px; background-color: #4CAF50; color: white; border: none; padding: 8px; border-radius: 4px; cursor: pointer;">
|
||||
Thinking: ON
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
|
@ -153,12 +153,12 @@ let autoPlayTTS = localStorage.getItem('autoPlayTTS') === 'true' || false;
|
|||
let ttsQueue = [];
|
||||
let isPlayingTTS = false;
|
||||
|
||||
// Thinking-mode state. Default OFF. When OFF we send enable_thinking=false
|
||||
// Thinking-mode state. Default ON. When OFF we send enable_thinking=false
|
||||
// with each chat_message so the server asks the model (Qwen3-style) to skip
|
||||
// chain-of-thought entirely — saving tokens, not just hiding output. As a
|
||||
// fallback, any reasoning_content that still arrives is dropped client-side
|
||||
// (see message_chunk handler). Toggle persists to localStorage.
|
||||
let showThinking = localStorage.getItem('showThinking') === 'true';
|
||||
let showThinking = localStorage.getItem('showThinking') !== 'false';
|
||||
|
||||
// Vision model state for auto alt-text
|
||||
let visionAvailable = false;
|
||||
|
|
@ -1294,7 +1294,7 @@ function updateShowThinkingDisplay() {
|
|||
}
|
||||
}
|
||||
|
||||
// Toggle reasoning_content display. Off by default; persisted in localStorage.
|
||||
// Toggle thinking mode. On by default; persisted in localStorage.
|
||||
function toggleShowThinking() {
|
||||
showThinking = !showThinking;
|
||||
localStorage.setItem('showThinking', showThinking.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue