mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-18 12:04:45 +08:00
feat: use "mode" instead of "thinking_enabled" and "is_plan_mode"
This commit is contained in:
@@ -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!));
|
||||
},
|
||||
|
||||
@@ -5,7 +5,6 @@ import { useCallback, useEffect, useState } from "react";
|
||||
import { Toaster } from "sonner";
|
||||
|
||||
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
|
||||
import { Overscroll } from "@/components/workspace/overscroll";
|
||||
import { WorkspaceSidebar } from "@/components/workspace/workspace-sidebar";
|
||||
import { useLocalSettings } from "@/core/settings";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user