mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Remove looping in oobabooga's API
This commit is contained in:
@ -1583,8 +1583,9 @@ $(document).ready(function () {
|
||||
getMessage = data.results[0].text;
|
||||
} else if (main_api == 'textgenerationwebui') {
|
||||
getMessage = data.data[0];
|
||||
if (getMessage == null) {
|
||||
runGenerate("");
|
||||
if (getMessage == null || data.error) {
|
||||
popup_type = 'default';
|
||||
callPopup('<h3>Got empty response from Text generation web UI. Try restarting the API with recommended options.</h3>');
|
||||
return;
|
||||
}
|
||||
getMessage = getMessage.substring(finalPromt.length);
|
||||
|
Reference in New Issue
Block a user