mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
Merge branch 'feat-endpoint-style-structure' of https://github.com/danny-avila/chatgpt-clone into feat-endpoint-style-structure
This commit is contained in:
commit
c5805d710b
6 changed files with 132 additions and 63 deletions
|
|
@ -81,13 +81,13 @@ function Settings(props) {
|
|||
htmlFor="chatGptLabel"
|
||||
className="text-left text-sm font-medium"
|
||||
>
|
||||
Custom Name
|
||||
Custom Name <small className="opacity-40">(default: blank)</small>
|
||||
</Label>
|
||||
<Input
|
||||
id="chatGptLabel"
|
||||
value={chatGptLabel}
|
||||
value={chatGptLabel || ''}
|
||||
// ref={inputRef}
|
||||
onChange={e => setChatGptLabel(e.target.value)}
|
||||
onChange={e => setChatGptLabel(e.target.value || null)}
|
||||
placeholder="Set a custom name for ChatGPT"
|
||||
className={cn(
|
||||
defaultTextProps,
|
||||
|
|
@ -100,12 +100,12 @@ function Settings(props) {
|
|||
htmlFor="promptPrefix"
|
||||
className="text-left text-sm font-medium"
|
||||
>
|
||||
Prompt Prefix
|
||||
Prompt Prefix <small className="opacity-40">(default: blank)</small>
|
||||
</Label>
|
||||
<TextareaAutosize
|
||||
id="promptPrefix"
|
||||
value={promptPrefix}
|
||||
onChange={e => setPromptPrefix(e.target.value)}
|
||||
value={promptPrefix || ''}
|
||||
onChange={e => setPromptPrefix(e.target.value || null)}
|
||||
placeholder="Set custom instructions. Defaults to: 'You are ChatGPT, a large language model trained by OpenAI.'"
|
||||
className={cn(
|
||||
defaultTextProps,
|
||||
|
|
@ -131,7 +131,7 @@ function Settings(props) {
|
|||
htmlFor="chatGptLabel"
|
||||
className="text-left text-sm font-medium"
|
||||
>
|
||||
Temperature
|
||||
Temperature <small className="opacity-40">(default: 1)</small>
|
||||
</Label>
|
||||
<Input
|
||||
id="temp-int"
|
||||
|
|
@ -145,7 +145,7 @@ function Settings(props) {
|
|||
</div>
|
||||
<Slider
|
||||
value={[temperature]}
|
||||
onValueChange={value => setTemperature(value)}
|
||||
onValueChange={value => setTemperature(value[0])}
|
||||
max={2}
|
||||
min={0}
|
||||
step={0.01}
|
||||
|
|
@ -179,7 +179,7 @@ function Settings(props) {
|
|||
</div>
|
||||
<Slider
|
||||
value={[maxTokens]}
|
||||
onValueChange={value => setMaxTokens(value)}
|
||||
onValueChange={value => setMaxTokens(value[0])}
|
||||
max={2048} // should be dynamic to the currently selected model
|
||||
min={1}
|
||||
step={1}
|
||||
|
|
@ -199,7 +199,7 @@ function Settings(props) {
|
|||
htmlFor="chatGptLabel"
|
||||
className="text-left text-sm font-medium"
|
||||
>
|
||||
Top P
|
||||
Top P <small className="opacity-40">(default: 1)</small>
|
||||
</Label>
|
||||
<Input
|
||||
id="top-p-int"
|
||||
|
|
@ -213,7 +213,7 @@ function Settings(props) {
|
|||
</div>
|
||||
<Slider
|
||||
value={[topP]}
|
||||
onValueChange={value => setTopP(value)}
|
||||
onValueChange={value => setTopP(value[0])}
|
||||
max={1}
|
||||
min={0}
|
||||
step={0.01}
|
||||
|
|
@ -233,7 +233,7 @@ function Settings(props) {
|
|||
htmlFor="chatGptLabel"
|
||||
className="text-left text-sm font-medium"
|
||||
>
|
||||
Frequency Penalty
|
||||
Frequency Penalty <small className="opacity-40">(default: 0)</small>
|
||||
</Label>
|
||||
<Input
|
||||
id="freq-penalty-int"
|
||||
|
|
@ -247,7 +247,7 @@ function Settings(props) {
|
|||
</div>
|
||||
<Slider
|
||||
value={[freqP]}
|
||||
onValueChange={value => setFreqP(value)}
|
||||
onValueChange={value => setFreqP(value[0])}
|
||||
max={2}
|
||||
min={-2}
|
||||
step={0.01}
|
||||
|
|
@ -267,7 +267,7 @@ function Settings(props) {
|
|||
htmlFor="chatGptLabel"
|
||||
className="text-left text-sm font-medium"
|
||||
>
|
||||
Presence Penalty
|
||||
Presence Penalty <small className="opacity-40">(default: 0)</small>
|
||||
</Label>
|
||||
<Input
|
||||
id="pres-penalty-int"
|
||||
|
|
@ -281,7 +281,7 @@ function Settings(props) {
|
|||
</div>
|
||||
<Slider
|
||||
value={[presP]}
|
||||
onValueChange={value => setPresP(value)}
|
||||
onValueChange={value => setPresP(value[0])}
|
||||
max={2}
|
||||
min={-2}
|
||||
step={0.01}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue