mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix oobabooga's API (added encoder rep pen)
This commit is contained in:
@ -1509,6 +1509,7 @@ $(document).ready(function () {
|
|||||||
textgenerationwebui_settings.top_p, // top_p
|
textgenerationwebui_settings.top_p, // top_p
|
||||||
textgenerationwebui_settings.typical_p, // typical_p
|
textgenerationwebui_settings.typical_p, // typical_p
|
||||||
textgenerationwebui_settings.rep_pen, // repetition_penalty
|
textgenerationwebui_settings.rep_pen, // repetition_penalty
|
||||||
|
1.0, // encoder rep pen
|
||||||
textgenerationwebui_settings.top_k, // top_k
|
textgenerationwebui_settings.top_k, // top_k
|
||||||
0, // min_length
|
0, // min_length
|
||||||
textgenerationwebui_settings.rep_pen_size, // no_repeat_ngram_size
|
textgenerationwebui_settings.rep_pen_size, // no_repeat_ngram_size
|
||||||
@ -1584,7 +1585,7 @@ $(document).ready(function () {
|
|||||||
} else if (main_api == 'textgenerationwebui') {
|
} else if (main_api == 'textgenerationwebui') {
|
||||||
getMessage = data.data[0];
|
getMessage = data.data[0];
|
||||||
if (getMessage == null || data.error) {
|
if (getMessage == null || data.error) {
|
||||||
popup_type = 'default';
|
popup_type = 'text';
|
||||||
callPopup('<h3>Got empty response from Text generation web UI. Try restarting the API with recommended options.</h3>');
|
callPopup('<h3>Got empty response from Text generation web UI. Try restarting the API with recommended options.</h3>');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user