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' + } + } + ] } }