From 81fa0b80e8061beda3366bc08f400b8610be4409 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 26 Aug 2024 13:47:39 +0700 Subject: [PATCH 1/3] fix: correct time-weighted retrieval toggle --- .../Thread/ThreadRightPanel/Tools/index.tsx | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/web/screens/Thread/ThreadRightPanel/Tools/index.tsx b/web/screens/Thread/ThreadRightPanel/Tools/index.tsx index 2b34cbb677..a75df02071 100644 --- a/web/screens/Thread/ThreadRightPanel/Tools/index.tsx +++ b/web/screens/Thread/ThreadRightPanel/Tools/index.tsx @@ -27,7 +27,7 @@ const Tools = () => { const componentDataAssistantSetting = getConfigurationsData( (activeThread?.assistants[0]?.tools && activeThread?.assistants[0]?.tools[0]?.settings) ?? - {} + {} ) useEffect(() => { @@ -183,19 +183,6 @@ const Tools = () => { your specific use case." /> -
- - onTimeWeightedRetrieverSwitchUpdate(e.target.checked) - } - /> -
@@ -223,6 +210,20 @@ const Tools = () => { also considers when they were added to give newer ones more importance." /> +
+ + onTimeWeightedRetrieverSwitchUpdate(e.target.checked) + } + /> +
+
Date: Mon, 26 Aug 2024 13:56:16 +0700 Subject: [PATCH 2/3] fix: eslint --- web/app/search/layout.tsx | 2 +- web/containers/Providers/DataLoader.tsx | 2 +- web/screens/Thread/ThreadRightPanel/Tools/index.tsx | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/app/search/layout.tsx b/web/app/search/layout.tsx index b87c9da727..6c491c381f 100644 --- a/web/app/search/layout.tsx +++ b/web/app/search/layout.tsx @@ -2,7 +2,7 @@ import { useEffect } from 'react' -import { AppConfiguration, getUserHomePath, joinPath } from '@janhq/core' +import { AppConfiguration, getUserHomePath } from '@janhq/core' import { useSetAtom } from 'jotai' diff --git a/web/containers/Providers/DataLoader.tsx b/web/containers/Providers/DataLoader.tsx index d8dce12027..4319c5eedf 100644 --- a/web/containers/Providers/DataLoader.tsx +++ b/web/containers/Providers/DataLoader.tsx @@ -2,7 +2,7 @@ import { Fragment, ReactNode, useEffect } from 'react' -import { AppConfiguration, getUserHomePath, joinPath } from '@janhq/core' +import { AppConfiguration, getUserHomePath } from '@janhq/core' import { useSetAtom } from 'jotai' import useAssistants from '@/hooks/useAssistants' diff --git a/web/screens/Thread/ThreadRightPanel/Tools/index.tsx b/web/screens/Thread/ThreadRightPanel/Tools/index.tsx index a75df02071..c32db28a80 100644 --- a/web/screens/Thread/ThreadRightPanel/Tools/index.tsx +++ b/web/screens/Thread/ThreadRightPanel/Tools/index.tsx @@ -27,7 +27,7 @@ const Tools = () => { const componentDataAssistantSetting = getConfigurationsData( (activeThread?.assistants[0]?.tools && activeThread?.assistants[0]?.tools[0]?.settings) ?? - {} + {} ) useEffect(() => { @@ -223,7 +223,6 @@ const Tools = () => { } /> - Date: Mon, 26 Aug 2024 14:51:43 +0700 Subject: [PATCH 3/3] fix: toggles alignment --- web/screens/Thread/ThreadRightPanel/Tools/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/web/screens/Thread/ThreadRightPanel/Tools/index.tsx b/web/screens/Thread/ThreadRightPanel/Tools/index.tsx index c32db28a80..aaa81fe5d0 100644 --- a/web/screens/Thread/ThreadRightPanel/Tools/index.tsx +++ b/web/screens/Thread/ThreadRightPanel/Tools/index.tsx @@ -213,7 +213,6 @@ const Tools = () => {