From 74740d7fcc076ed306bccf8f62fddc775bf57193 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Mon, 13 Jan 2025 17:56:16 +0800 Subject: [PATCH] style: update pinned apps style and refactor config model --- src/renderer/src/components/app/Sidebar.tsx | 2 +- src/renderer/src/config/models.ts | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/components/app/Sidebar.tsx b/src/renderer/src/components/app/Sidebar.tsx index db10c8f706..c556a3581f 100644 --- a/src/renderer/src/components/app/Sidebar.tsx +++ b/src/renderer/src/components/app/Sidebar.tsx @@ -133,7 +133,7 @@ const PinnedApps: FC = () => { const { t } = useTranslation() return ( - + {(app) => { const menuItems: MenuProps['items'] = [ { diff --git a/src/renderer/src/config/models.ts b/src/renderer/src/config/models.ts index 69935d1d83..ca304551dd 100644 --- a/src/renderer/src/config/models.ts +++ b/src/renderer/src/config/models.ts @@ -1101,10 +1101,14 @@ export function getOpenAIWebSearchParams(model: Model): Record { } return { - type: 'function', - function: { - name: 'googleSearch' - } + tools: [ + { + type: 'function', + function: { + name: 'googleSearch' + } + } + ] } }