feat: use "mode" instead of "thinking_enabled" and "is_plan_mode"

This commit is contained in:
Henry Li
2026-01-29 15:48:50 +08:00
parent 0ba82a9fd7
commit 98e08a85c9
4 changed files with 46 additions and 49 deletions

View File

@@ -108,7 +108,11 @@ export default function ChatPage() {
isNewThread,
threadId,
thread,
threadContext: settings.context,
threadContext: {
...settings.context,
thinking_enabled: settings.context.mode !== "flash",
is_plan_mode: settings.context.mode === "pro",
},
afterSubmit() {
router.push(pathOfThread(threadId!));
},