diff --git a/web/src/components/canvas/canvas-assistant-panel.tsx b/web/src/components/canvas/canvas-assistant-panel.tsx index 6c045a8f2..cc1734227 100644 --- a/web/src/components/canvas/canvas-assistant-panel.tsx +++ b/web/src/components/canvas/canvas-assistant-panel.tsx @@ -1578,7 +1578,7 @@ function toolCallToResponseInput(call: ResponseToolCall): ResponseInputMessage { return { type: "function_call", call_id: call.id, name: call.function.name, arguments: call.function.arguments, ...(call.thoughtSignature ? { thoughtSignature: call.thoughtSignature } : {}) }; } -async function requestOnlineAgentModel(config: AiConfig, messages: ResponseInputMessage[], toolChoice: "auto" | "required", prompt: string, onDelta: (text: string) => void, promptCacheKey: string) { +async function requestOnlineAgentModel(config: AiConfig, messages: ResponseInputMessage[], toolChoice: "auto" | "required", prompt: string, onDelta: (text: string) => void, promptCacheKey?: string) { if (logicalModelIDForConfig(config)) { const result = await runBackendToolGenerationTask({ prompt, config, messages, tools: ONLINE_AGENT_TOOLS, toolChoice }); if (result.content.trim()) onDelta(result.content); diff --git a/web/src/hooks/use-workspace-logout.ts b/web/src/hooks/use-workspace-logout.ts index f2916de03..c1b156df9 100644 --- a/web/src/hooks/use-workspace-logout.ts +++ b/web/src/hooks/use-workspace-logout.ts @@ -19,7 +19,7 @@ export function useWorkspaceLogout() { setLoggingOut(true); try { await logout(); - await applyUserSession({ user: null, systemChannels: [] }); + await applyUserSession({ user: null, logicalModels: [] }); message.success("已退出登录"); navigate("/login", { replace: true }); } catch (error) {