From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx b/app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx index ad4c06b..5d2f33a 100644 --- a/app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx +++ b/app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx @@ -30,7 +30,6 @@ import { useFeatures } from '@/app/components/base/features/hooks' import type { InputForm } from '@/app/components/base/chat/chat/type' import { getLastAnswer } from '@/app/components/base/chat/utils' -import { canFindTool } from '@/utils' type ChatItemProps = { modelAndParameter: ModelAndParameter @@ -129,7 +128,7 @@ const allToolIcons = useMemo(() => { const icons: Record<string, any> = {} modelConfig.agentConfig.tools?.forEach((item: any) => { - icons[item.tool_name] = collectionList.find((collection: any) => canFindTool(collection.id, item.provider_id))?.icon + icons[item.tool_name] = collectionList.find((collection: any) => collection.id === item.provider_id)?.icon }) return icons }, [collectionList, modelConfig.agentConfig.tools]) -- Gitblit v1.8.0