Enable thinking mode in full chat view, keep disabled in widget/panel

stream_chat_with_tools now accepts a think parameter. run_generation
forwards it to Ollama. The message POST route reads think from the
request body. ChatView passes think=true so qwen3 uses chain-of-thought
reasoning for full conversations; the dashboard widget and ChatPanel
omit it, staying fast. Dashboard button updated to "Think it through
in Chat →" to signal the deeper capability.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-18 21:06:54 -05:00
parent 815eed2574
commit 24d3c5bc68
6 changed files with 14 additions and 3 deletions
+2
View File
@@ -120,6 +120,7 @@ export const useChatStore = defineStore("chat", () => {
content: string,
contextNoteId?: number | null,
excludeNoteIds?: number[],
think = false,
) {
if (!currentConversation.value) return;
@@ -165,6 +166,7 @@ export const useChatStore = defineStore("chat", () => {
content,
context_note_id: contextNoteId,
exclude_note_ids: excludeNoteIds?.length ? excludeNoteIds : undefined,
think,
},
);
assistantMessageId = resp.assistant_message_id;
+1
View File
@@ -161,6 +161,7 @@ async function sendMessage() {
content,
contextNoteId,
excludedNoteIds.value.size ? [...excludedNoteIds.value] : undefined,
true, // enable thinking in the full chat view
);
sending.value = false;
+1 -1
View File
@@ -378,7 +378,7 @@ function clearDashboardResponse() {
class="btn-open-chat"
:class="{ prominent: isConversational }"
>
{{ isConversational ? 'Continue this conversation →' : 'Continue in Chat →' }}
{{ isConversational ? 'Continue the conversation →' : 'Think it through in Chat →' }}
</router-link>
<button class="btn-clear" @click="clearDashboardResponse">Clear</button>
</div>