From 8acac07c042891e67375ba15114fee5c1a2dc66f Mon Sep 17 00:00:00 2001 From: Pabloader Date: Mon, 2 Nov 2026 09:00:13 +0000 Subject: [PATCH] Thinking for chats --- .../storywriter/components/chat-sidebar.tsx | 26 +++++++++---------- src/games/storywriter/utils/prompt.ts | 1 + 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/games/storywriter/components/chat-sidebar.tsx b/src/games/storywriter/components/chat-sidebar.tsx index 084e7d1..badd52b 100644 --- a/src/games/storywriter/components/chat-sidebar.tsx +++ b/src/games/storywriter/components/chat-sidebar.tsx @@ -591,20 +591,18 @@ export const ChatPanel = ({ visible }: { visible: boolean }) => { {tokenCount.taken} / {tokenCount.total} )} - {!currentWorld?.chatOnly && ( - - )} +
{isLoading ? ( diff --git a/src/games/storywriter/utils/prompt.ts b/src/games/storywriter/utils/prompt.ts index f26d401..2157ca8 100644 --- a/src/games/storywriter/utils/prompt.ts +++ b/src/games/storywriter/utils/prompt.ts @@ -423,6 +423,7 @@ namespace Prompt { tools: Tools.getTools([...Tools.CHAT_ONLY_TOOLS]), max_tokens: model.top_provider.max_completion_tokens || 2048, banned_tokens: state.bannedTokens, + reasoning: { effort: enableThinking ? 'high' : 'none' }, ...state.generationSettings, ...(continueLast && { remove_last_eos: true }), };