🐛 fix: fix scope issue (#11719)

fix scope issue
This commit is contained in:
Arvin Xu
2026-01-23 09:53:38 +08:00
committed by GitHub
parent bdb3eb4531
commit 17adde8170
2 changed files with 3 additions and 2 deletions

View File

@@ -3,8 +3,7 @@
import { EDITOR_DEBOUNCE_TIME } from '@lobechat/const';
import { ActionIcon, Flexbox } from '@lobehub/ui';
import { useDebounceFn } from 'ahooks';
import { App, message } from 'antd';
import { Empty } from '@lobehub/ui';
import { App, Empty, message } from 'antd';
import dayjs, { type Dayjs } from 'dayjs';
import { Trash2 } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState, useSyncExternalStore } from 'react';

View File

@@ -347,6 +347,8 @@ class ChatService {
// Get the chat config to check streaming preference
const chatConfig = agentChatConfigSelectors.currentChatConfig(getAgentStoreState());
delete (res as any).scope;
const payload = merge(
{
model: DEFAULT_AGENT_CONFIG.model,