setChatGptLabel(e.target.value)}
- placeholder="Set a custom name for ChatGPT"
- className=" col-span-3 shadow-[0_0_10px_rgba(0,0,0,0.10)] outline-none placeholder:text-gray-400 dark:bg-gray-700
+ <>
+
+
+
+ setChatGptLabel(e.target.value)}
+ placeholder="Set a custom name for ChatGPT"
+ className=" col-span-3 shadow-[0_0_10px_rgba(0,0,0,0.10)] outline-none placeholder:text-gray-400 dark:bg-gray-700
dark:text-gray-50 dark:shadow-[0_0_15px_rgba(0,0,0,0.10)]"
+ />
+
+
+
+ setPromptPrefix(e.target.value)}
+ placeholder="Set custom instructions. Defaults to: 'You are ChatGPT, a large language model trained by OpenAI.'"
+ className={cn(defaultTextProps, 'col-span-3 flex h-10 max-h-10 w-full resize-none px-3 py-2 ')}
+ onFocus={() => {
+ textareaRef.current.classList.remove('max-h-10');
+ textareaRef.current.classList.add('max-h-52');
+ }}
+ onBlur={() => {
+ textareaRef.current.classList.remove('max-h-52');
+ textareaRef.current.classList.add('max-h-10');
+ }}
+ ref={textareaRef}
+ />
+
+
+
+
+
+ setTemperature(e.target.value)}
+ className={cn(defaultTextProps, cn(optionText, 'w-10 group-hover/temp:border-gray-200'))}
+ />
+
+
-
-
-
- setPromptPrefix(e.target.value)}
- placeholder="Set custom instructions. Defaults to: 'You are ChatGPT, a large language model trained by OpenAI.'"
- className={cn(defaultTextProps, 'col-span-3 flex h-10 max-h-10 w-full resize-none px-3 py-2 ')}
- onFocus={() => {
- textareaRef.current.classList.remove('max-h-10');
- textareaRef.current.classList.add('max-h-52');
- }}
- onBlur={() => {
- textareaRef.current.classList.remove('max-h-52');
- textareaRef.current.classList.add('max-h-10');
- }}
- ref={textareaRef}
+
+
+
+
+ setMaxTokens(e.target.value)}
+ className={cn(defaultTextProps, cn(optionText, 'w-11 group-hover/max:border-gray-200'))}
+ />
+
+
-
-
-
-
- {/* */}
-
- setTemperature(e.target.value)}
- className={cn(defaultTextProps, cn(optionText, 'w-10 group-hover/temp:border-gray-200'))}
- />
- {/*
*/}
-
+
+
+
+
+ setTemperature(value)}
+ max={2}
+ min={0}
+ step={0.01}
+ className="w-full"
+ />
+ setMaxTokens(value)}
+ max={2048} // should be dynamic to the currently selected model
+ min={1}
+ step={1}
+ className="w-full"
+ />
+
+
-
-
- setTemperature(value)}
- max={2}
- min={0}
- step={0.01}
- className="w-full"
+
+
- setMaxTokens(value)}
- max={2048} // should be dynamic to the currently selected model
- min={1}
- step={1}
- className="w-full"
- />
-
-
-
-
-
- setTopP(e.target.value)}
- className={cn(defaultTextProps, cn(optionText, 'w-10 group-hover/top:border-gray-200'))}
- />
-
-
-
-
-
-
- setFreqP(e.target.value)}
- className={cn(defaultTextProps, cn(optionText, 'w-10 group-hover/freq:border-gray-200'))}
- />
-
-
-
-
-
- setTopP(value)}
- max={1}
- min={0}
- step={0.01}
- className="w-full"
- />
- setFreqP(value)}
- max={2}
- min={-2}
- step={0.01}
- className="w-full"
- />
-
-
-
-
-
- setPresP(e.target.value)}
- className={cn(defaultTextProps, cn(optionText, 'w-10 group-hover/pres:border-gray-200'))}
- />
-
-
-
-
-
- setPresP(value)}
- max={2}
- min={0}
- step={0.01}
- className="w-full opacity-0"
- />
- setPresP(value)}
- max={2}
- min={-2}
- step={0.01}
- className="w-full"
- />
-
+