From 202979b3617b783166bffa2ddea708868c953483 Mon Sep 17 00:00:00 2001 From: ali asaria <ali.asaria@gmail.com> Date: Sun, 25 Feb 2024 19:06:32 -0500 Subject: [PATCH] temporarily make the maximum length input an input box instead of slider --- .../components/Experiment/Interact/Interact.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/Experiment/Interact/Interact.tsx b/src/renderer/components/Experiment/Interact/Interact.tsx index 72717b32..78504aec 100644 --- a/src/renderer/components/Experiment/Interact/Interact.tsx +++ b/src/renderer/components/Experiment/Interact/Interact.tsx @@ -19,6 +19,7 @@ import { ListItemContent, ListItemButton, IconButton, + Input, } from '@mui/joy'; import ChatPage from './ChatPage'; @@ -471,16 +472,26 @@ export default function Chat({ experimentInfo, experimentInfoMutate }) { Maximum Length <span style={{ color: '#aaa' }}>{maxTokens}</span> </FormLabel> - <Slider + {/* <Slider sx={{ margin: 'auto', width: '90%' }} defaultValue={64} min={0} - max={256 * 4} + max={256 * 10} value={maxTokens} onChange={(event: Event, newValue: number | number[]) => { setMaxTokens(newValue as number); }} valueLabelDisplay="auto" + /> */} + {/* Temporarily make the slider a text input until we can deduce the context length as max */} + <Input + sx={{ margin: 'auto', width: '90%', mb: 2 }} + variant="plain" + defaultValue={1024} + value={maxTokens} + onChange={(e) => { + setMaxTokens(e.target.value); + }} /> <FormLabel> Top P -- GitLab