This commit is contained in:
josc146 2023-06-21 17:13:04 +08:00
parent 131a7ddf4a
commit 35a7437714

View File

@ -312,7 +312,7 @@ const CompletionPanel: FC = observer(() => {
<Labeled flex breakline label={t('Presence Penalty')} <Labeled flex breakline label={t('Presence Penalty')}
desc={t('Positive values penalize new tokens based on whether they appear in the text so far, increasing the model\'s likelihood to talk about new topics.')} desc={t('Positive values penalize new tokens based on whether they appear in the text so far, increasing the model\'s likelihood to talk about new topics.')}
content={ content={
<ValuedSlider value={params.presencePenalty} min={-2} max={2} <ValuedSlider value={params.presencePenalty} min={0} max={2}
step={0.1} input step={0.1} input
onChange={(e, data) => { onChange={(e, data) => {
setParams({ setParams({
@ -323,7 +323,7 @@ const CompletionPanel: FC = observer(() => {
<Labeled flex breakline label={t('Frequency Penalty')} <Labeled flex breakline label={t('Frequency Penalty')}
desc={t('Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model\'s likelihood to repeat the same line verbatim.')} desc={t('Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model\'s likelihood to repeat the same line verbatim.')}
content={ content={
<ValuedSlider value={params.frequencyPenalty} min={-2} max={2} <ValuedSlider value={params.frequencyPenalty} min={0} max={2}
step={0.1} input step={0.1} input
onChange={(e, data) => { onChange={(e, data) => {
setParams({ setParams({