mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
chore: linting
This commit is contained in:
parent
8959576d75
commit
d59a3f20cb
8 changed files with 76 additions and 25 deletions
|
|
@ -52,7 +52,10 @@ function Settings(props) {
|
||||||
<div className="col-span-1 flex flex-col items-center justify-start gap-6">
|
<div className="col-span-1 flex flex-col items-center justify-start gap-6">
|
||||||
<div className="grid w-full items-center gap-2">
|
<div className="grid w-full items-center gap-2">
|
||||||
<Label htmlFor="toneStyle-dropdown" className="text-left text-sm font-medium">
|
<Label htmlFor="toneStyle-dropdown" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_tone_style')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_creative')})</small>
|
{localize(lang, 'com_endpoint_tone_style')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default_creative')})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<SelectDropDown
|
<SelectDropDown
|
||||||
id="toneStyle-dropdown"
|
id="toneStyle-dropdown"
|
||||||
|
|
@ -70,7 +73,8 @@ function Settings(props) {
|
||||||
</div>
|
</div>
|
||||||
<div className="grid w-full items-center gap-2">
|
<div className="grid w-full items-center gap-2">
|
||||||
<Label htmlFor="context" className="text-left text-sm font-medium">
|
<Label htmlFor="context" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_context')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_blank')})</small>
|
{localize(lang, 'com_endpoint_context')}{' '}
|
||||||
|
<small className="opacity-40">({localize(lang, 'com_endpoint_default_blank')})</small>
|
||||||
</Label>
|
</Label>
|
||||||
<TextareaAutosize
|
<TextareaAutosize
|
||||||
id="context"
|
id="context"
|
||||||
|
|
@ -83,13 +87,17 @@ function Settings(props) {
|
||||||
'flex max-h-[300px] min-h-[100px] w-full resize-none px-3 py-2',
|
'flex max-h-[300px] min-h-[100px] w-full resize-none px-3 py-2',
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<small className="mb-5 text-black dark:text-white">{`${localize(lang, 'com_endpoint_token_count')}: ${tokenCount}`}</small>
|
<small className="mb-5 text-black dark:text-white">{`${localize(
|
||||||
|
lang,
|
||||||
|
'com_endpoint_token_count',
|
||||||
|
)}: ${tokenCount}`}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-span-1 flex flex-col items-center justify-start gap-6">
|
<div className="col-span-1 flex flex-col items-center justify-start gap-6">
|
||||||
<div className="grid w-full items-center gap-2">
|
<div className="grid w-full items-center gap-2">
|
||||||
<Label htmlFor="jailbreak" className="text-left text-sm font-medium">
|
<Label htmlFor="jailbreak" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_bing_enable_sydney')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_false')})</small>
|
{localize(lang, 'com_endpoint_bing_enable_sydney')}{' '}
|
||||||
|
<small className="opacity-40">({localize(lang, 'com_endpoint_default_false')})</small>
|
||||||
</Label>
|
</Label>
|
||||||
<div className="flex h-[40px] w-full items-center space-x-3">
|
<div className="flex h-[40px] w-full items-center space-x-3">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
|
@ -103,7 +111,8 @@ function Settings(props) {
|
||||||
htmlFor="jailbreak"
|
htmlFor="jailbreak"
|
||||||
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-50"
|
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-50"
|
||||||
>
|
>
|
||||||
{localize(lang, 'com_endpoint_bing_jailbreak')} <small>{localize(lang, 'com_endpoint_bing_to_enable_sydney')}</small>
|
{localize(lang, 'com_endpoint_bing_jailbreak')}{' '}
|
||||||
|
<small>{localize(lang, 'com_endpoint_bing_to_enable_sydney')}</small>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -122,7 +131,9 @@ function Settings(props) {
|
||||||
>
|
>
|
||||||
{localize(lang, 'com_endpoint_system_message')}
|
{localize(lang, 'com_endpoint_system_message')}
|
||||||
</a>{' '}
|
</a>{' '}
|
||||||
<small className="opacity-40 dark:text-gray-50">( {localize(lang, 'com_endpoint_default_blank')})</small>
|
<small className="opacity-40 dark:text-gray-50">
|
||||||
|
( {localize(lang, 'com_endpoint_default_blank')})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
|
|
||||||
<TextareaAutosize
|
<TextareaAutosize
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,10 @@ function Examples({ readonly, examples, setExample, addExample, removeExample, e
|
||||||
>
|
>
|
||||||
<div className="grid w-full items-center gap-2">
|
<div className="grid w-full items-center gap-2">
|
||||||
<Label htmlFor={`input-${idx}`} className="text-left text-sm font-medium">
|
<Label htmlFor={`input-${idx}`} className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_ui_input')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_blank')})</small>
|
{localize(lang, 'com_ui_input')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default_blank')})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<TextareaAutosize
|
<TextareaAutosize
|
||||||
id={`input-${idx}`}
|
id={`input-${idx}`}
|
||||||
|
|
@ -53,7 +56,10 @@ function Examples({ readonly, examples, setExample, addExample, removeExample, e
|
||||||
>
|
>
|
||||||
<div className="grid w-full items-center gap-2">
|
<div className="grid w-full items-center gap-2">
|
||||||
<Label htmlFor={`output-${idx}`} className="text-left text-sm font-medium">
|
<Label htmlFor={`output-${idx}`} className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_output')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_blank')})</small>
|
{localize(lang, 'com_endpoint_output')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default_blank')})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<TextareaAutosize
|
<TextareaAutosize
|
||||||
id={`output-${idx}`}
|
id={`output-${idx}`}
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,10 @@ function Settings(props) {
|
||||||
<>
|
<>
|
||||||
<div className="grid w-full items-center gap-2">
|
<div className="grid w-full items-center gap-2">
|
||||||
<Label htmlFor="modelLabel" className="text-left text-sm font-medium">
|
<Label htmlFor="modelLabel" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_custom_name')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_blank')})</small>
|
{localize(lang, 'com_endpoint_custom_name')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default_blank')})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<Input
|
<Input
|
||||||
id="modelLabel"
|
id="modelLabel"
|
||||||
|
|
@ -83,7 +86,10 @@ function Settings(props) {
|
||||||
</div>
|
</div>
|
||||||
<div className="grid w-full items-center gap-2">
|
<div className="grid w-full items-center gap-2">
|
||||||
<Label htmlFor="promptPrefix" className="text-left text-sm font-medium">
|
<Label htmlFor="promptPrefix" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_prompt_prefix')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_blank')})</small>
|
{localize(lang, 'com_endpoint_prompt_prefix')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default_blank')})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<TextareaAutosize
|
<TextareaAutosize
|
||||||
id="promptPrefix"
|
id="promptPrefix"
|
||||||
|
|
@ -105,7 +111,10 @@ function Settings(props) {
|
||||||
<HoverCardTrigger className="grid w-full items-center gap-2">
|
<HoverCardTrigger className="grid w-full items-center gap-2">
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<Label htmlFor="temp-int" className="text-left text-sm font-medium">
|
<Label htmlFor="temp-int" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_temperature')} <small className="opacity-40">({localize(lang, 'com_endpoint_default')}: 0.2)</small>
|
{localize(lang, 'com_endpoint_temperature')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default')}: 0.2)
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<InputNumber
|
<InputNumber
|
||||||
id="temp-int"
|
id="temp-int"
|
||||||
|
|
@ -144,7 +153,10 @@ function Settings(props) {
|
||||||
<HoverCardTrigger className="grid w-full items-center gap-2">
|
<HoverCardTrigger className="grid w-full items-center gap-2">
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<Label htmlFor="top-p-int" className="text-left text-sm font-medium">
|
<Label htmlFor="top-p-int" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_top_p')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_with_num', 0.95)})</small>
|
{localize(lang, 'com_endpoint_top_p')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default_with_num', 0.95)})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<InputNumber
|
<InputNumber
|
||||||
id="top-p-int"
|
id="top-p-int"
|
||||||
|
|
@ -182,7 +194,10 @@ function Settings(props) {
|
||||||
<HoverCardTrigger className="grid w-full items-center gap-2">
|
<HoverCardTrigger className="grid w-full items-center gap-2">
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<Label htmlFor="top-k-int" className="text-left text-sm font-medium">
|
<Label htmlFor="top-k-int" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_top_k')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_with_num', 40)})</small>
|
{localize(lang, 'com_endpoint_top_k')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default_with_num', 40)})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<InputNumber
|
<InputNumber
|
||||||
id="top-k-int"
|
id="top-k-int"
|
||||||
|
|
@ -221,7 +236,10 @@ function Settings(props) {
|
||||||
<HoverCardTrigger className="grid w-full items-center gap-2">
|
<HoverCardTrigger className="grid w-full items-center gap-2">
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<Label htmlFor="max-tokens-int" className="text-left text-sm font-medium">
|
<Label htmlFor="max-tokens-int" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_max_output_tokens')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_with_num', 1024)})</small>
|
{localize(lang, 'com_endpoint_max_output_tokens')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default_with_num', 1024)})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<InputNumber
|
<InputNumber
|
||||||
id="max-tokens-int"
|
id="max-tokens-int"
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,10 @@ function Settings(props) {
|
||||||
<>
|
<>
|
||||||
<div className="grid w-full items-center gap-2">
|
<div className="grid w-full items-center gap-2">
|
||||||
<Label htmlFor="chatGptLabel" className="text-left text-sm font-medium">
|
<Label htmlFor="chatGptLabel" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_custom_name')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_blank')})</small>
|
{localize(lang, 'com_endpoint_custom_name')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default_blank')})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<Input
|
<Input
|
||||||
id="chatGptLabel"
|
id="chatGptLabel"
|
||||||
|
|
@ -83,7 +86,10 @@ function Settings(props) {
|
||||||
</div>
|
</div>
|
||||||
<div className="grid w-full items-center gap-2">
|
<div className="grid w-full items-center gap-2">
|
||||||
<Label htmlFor="promptPrefix" className="text-left text-sm font-medium">
|
<Label htmlFor="promptPrefix" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_prompt_prefix')} <small className="opacity-40">({localize(lang, 'com_endpoint_default_blank')})</small>
|
{localize(lang, 'com_endpoint_prompt_prefix')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default_blank')})
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<TextareaAutosize
|
<TextareaAutosize
|
||||||
id="promptPrefix"
|
id="promptPrefix"
|
||||||
|
|
@ -145,7 +151,10 @@ function Settings(props) {
|
||||||
<HoverCardTrigger className="grid w-full items-center gap-2">
|
<HoverCardTrigger className="grid w-full items-center gap-2">
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<Label htmlFor="top-p-int" className="text-left text-sm font-medium">
|
<Label htmlFor="top-p-int" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_top_p')} <small className="opacity-40">({localize(lang, 'com_endpoint_default')}: 1)</small>
|
{localize(lang, 'com_endpoint_top_p')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default')}: 1)
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<InputNumber
|
<InputNumber
|
||||||
id="top-p-int"
|
id="top-p-int"
|
||||||
|
|
@ -183,7 +192,10 @@ function Settings(props) {
|
||||||
<HoverCardTrigger className="grid w-full items-center gap-2">
|
<HoverCardTrigger className="grid w-full items-center gap-2">
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<Label htmlFor="freq-penalty-int" className="text-left text-sm font-medium">
|
<Label htmlFor="freq-penalty-int" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_frequency_penalty')} <small className="opacity-40">({localize(lang, 'com_endpoint_default')}: 0)</small>
|
{localize(lang, 'com_endpoint_frequency_penalty')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default')}: 0)
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<InputNumber
|
<InputNumber
|
||||||
id="freq-penalty-int"
|
id="freq-penalty-int"
|
||||||
|
|
@ -221,7 +233,10 @@ function Settings(props) {
|
||||||
<HoverCardTrigger className="grid w-full items-center gap-2">
|
<HoverCardTrigger className="grid w-full items-center gap-2">
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<Label htmlFor="pres-penalty-int" className="text-left text-sm font-medium">
|
<Label htmlFor="pres-penalty-int" className="text-left text-sm font-medium">
|
||||||
{localize(lang, 'com_endpoint_presence_penalty')} <small className="opacity-40">({localize(lang, 'com_endpoint_default')}: 0)</small>
|
{localize(lang, 'com_endpoint_presence_penalty')}{' '}
|
||||||
|
<small className="opacity-40">
|
||||||
|
({localize(lang, 'com_endpoint_default')}: 0)
|
||||||
|
</small>
|
||||||
</Label>
|
</Label>
|
||||||
<InputNumber
|
<InputNumber
|
||||||
id="pres-penalty-int"
|
id="pres-penalty-int"
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,8 @@ export default {
|
||||||
com_ui_limitation_incorrect_info: 'Puede generar ocasionalmente información incorrecta',
|
com_ui_limitation_incorrect_info: 'Puede generar ocasionalmente información incorrecta',
|
||||||
com_ui_limitation_harmful_biased:
|
com_ui_limitation_harmful_biased:
|
||||||
'Puede producir ocasionalmente instrucciones perjudiciales o contenido sesgado',
|
'Puede producir ocasionalmente instrucciones perjudiciales o contenido sesgado',
|
||||||
com_ui_limitation_limited_2021: 'Conocimiento limitado sobre el mundo y eventos posteriores a 2021',
|
com_ui_limitation_limited_2021:
|
||||||
|
'Conocimiento limitado sobre el mundo y eventos posteriores a 2021',
|
||||||
com_ui_input: 'Entrada',
|
com_ui_input: 'Entrada',
|
||||||
com_ui_close: 'Cerrar',
|
com_ui_close: 'Cerrar',
|
||||||
com_ui_model: 'Modelo',
|
com_ui_model: 'Modelo',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue