diff --git a/docs/docs/about/about.md b/docs/docs/about/about.md index 4e55e0744..cfd82bb53 100644 --- a/docs/docs/about/about.md +++ b/docs/docs/about/about.md @@ -64,7 +64,7 @@ Jan is a startup with an open source business model. We believe in the need for We use Github to build in public, and welcome anyone to join in. - [Jan's Kanban](https://github.com/orgs/janhq/projects/5) -- [Jan's Roadmap](https://github.com/orgs/janhq/projects/5/views/2) +- [Jan's Roadmap](https://github.com/orgs/janhq/projects/5/views/29) ### Bootstrapped @@ -90,4 +90,4 @@ Drop us a message in our [Discord](https://discord.gg/af6SaTdzpx) and we'll get Jan has a culture of ownership, independent thought, and lightning fast execution. If you'd like to join us, we have open positions on our [careers page](https://janai.bamboohr.com/careers). -## Footnotes \ No newline at end of file +## Footnotes diff --git a/web/screens/Chat/ModelSetting/predefinedComponent.ts b/web/screens/Chat/ModelSetting/predefinedComponent.ts index cc794556d..b8eafa2f1 100644 --- a/web/screens/Chat/ModelSetting/predefinedComponent.ts +++ b/web/screens/Chat/ModelSetting/predefinedComponent.ts @@ -72,7 +72,7 @@ export const presetConfiguration: Record = { stream: { name: 'stream', title: 'Stream', - description: 'Stream', + description: 'Enable real-time data processing for faster predictions.', controllerType: 'checkbox', controllerData: { checked: false, diff --git a/web/screens/Chat/Sidebar/index.tsx b/web/screens/Chat/Sidebar/index.tsx index dce4fdf07..b1af0a19e 100644 --- a/web/screens/Chat/Sidebar/index.tsx +++ b/web/screens/Chat/Sidebar/index.tsx @@ -19,7 +19,7 @@ import DropdownListSidebar, { import { useCreateNewThread } from '@/hooks/useCreateNewThread' import { getConfigurationsData } from '@/utils/componentSettings' -import { toSettingParams } from '@/utils/model_param' +import { toRuntimeParams, toSettingParams } from '@/utils/model_param' import EngineSetting from '../EngineSetting' import ModelSetting from '../ModelSetting' @@ -44,7 +44,9 @@ const Sidebar: React.FC = () => { const threadStates = useAtomValue(threadStatesAtom) const modelEngineParams = toSettingParams(activeModelParams) + const modelRuntimeParams = toRuntimeParams(activeModelParams) const componentDataEngineSetting = getConfigurationsData(modelEngineParams) + const componentDataRuntimeSetting = getConfigurationsData(modelRuntimeParams) const onReviewInFinderClick = async (type: string) => { if (!activeThread) return @@ -224,34 +226,42 @@ const Sidebar: React.FC = () => { -
- -
- -
-
-
+ {componentDataRuntimeSetting.length !== 0 && ( +
+ +
+ +
+
+
+ )} -
- -
- {settingComponentBuilder(componentDataEngineSetting, true)} -
-
-
+ {componentDataEngineSetting.filter( + (x) => x.name === 'prompt_template' + ).length !== 0 && ( +
+ +
+ {settingComponentBuilder(componentDataEngineSetting, true)} +
+
+
+ )} -
- -
- -
-
-
+ {componentDataEngineSetting.length !== 0 && ( +
+ +
+ +
+
+
+ )} diff --git a/web/screens/Chat/ThreadList/index.tsx b/web/screens/Chat/ThreadList/index.tsx index 516bfb6c4..0e09a20a7 100644 --- a/web/screens/Chat/ThreadList/index.tsx +++ b/web/screens/Chat/ThreadList/index.tsx @@ -5,6 +5,7 @@ import { ModalTrigger, ModalClose, ModalFooter, + ModalPortal, ModalContent, ModalHeader, ModalTitle, @@ -89,7 +90,9 @@ export default function ThreadList() { className={twMerge( `group/message relative mb-1 flex cursor-pointer flex-col transition-all hover:rounded-lg hover:bg-gray-100 hover:dark:bg-secondary/50` )} - onClick={() => onThreadClick(thread)} + onClick={() => { + onThreadClick(thread) + }} >
@@ -111,7 +114,7 @@ export default function ThreadList() {
- + e.stopPropagation()}>
+ Clean Thread @@ -129,13 +133,19 @@ export default function ThreadList() {

Are you sure you want to clean this thread?

- + e.stopPropagation()} + >