typo
This commit is contained in:
parent
754f8b5d69
commit
3593744035
|
@ -505,7 +505,7 @@ const chatSettingsList: ChatSetting[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'repetitionPenalty',
|
key: 'repetitionPenalty',
|
||||||
name: 'Repitition Penalty',
|
name: 'Repetition Penalty',
|
||||||
title: 'Number between 1.0 and infinity. Penalize new tokens based on whether they appear in the text so far, increasing the model\'s likelihood to talk about new topics.',
|
title: 'Number between 1.0 and infinity. Penalize new tokens based on whether they appear in the text so far, increasing the model\'s likelihood to talk about new topics.',
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1000,
|
max: 1000,
|
||||||
|
|
|
@ -150,7 +150,7 @@ export const chatRequest = async (
|
||||||
do_sample: 1, // enable top p and the like
|
do_sample: 1, // enable top p and the like
|
||||||
temperature,
|
temperature,
|
||||||
top_p: topP,
|
top_p: topP,
|
||||||
repitition_penalty: chatSettings.repetitionPenalty
|
repetition_penalty: chatSettings.repetitionPenalty
|
||||||
} as any
|
} as any
|
||||||
if (stopSequencesC.length) petalsRequest.extra_stop_sequences = stopSequencesC
|
if (stopSequencesC.length) petalsRequest.extra_stop_sequences = stopSequencesC
|
||||||
// Update token count
|
// Update token count
|
||||||
|
|
Loading…
Reference in New Issue