mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Merge pull request #266 from one-some/bugfixes
Fix resizeobserver errors and random prompt
This commit is contained in:
@@ -331,13 +331,8 @@ class koboldai_vars(object):
|
||||
######################################### Get Action Text by Sentence ########################################################
|
||||
action_text_split = self.actions.to_sentences(submitted_text=submitted_text)
|
||||
|
||||
if action_text_split == []:
|
||||
if return_text:
|
||||
return ""
|
||||
return [], 0, 0+self.genamt, []
|
||||
|
||||
# Always add newlines on chat v2
|
||||
if self.is_chat_v2():
|
||||
if action_text_split and self.is_chat_v2():
|
||||
action_text_split[-1][0] = action_text_split[-1][0].strip() + "\n"
|
||||
|
||||
######################################### Prompt ########################################################
|
||||
|
@@ -7,6 +7,7 @@
|
||||
|
||||
window.addEventListener('error', function(event) {
|
||||
let fileName = event.filename.split("/").splice(-1)[0];
|
||||
if (event.message.includes("ResizeObserver loop completed with undelivered notifications")) return;
|
||||
reportError(`Error at ${fileName}:${event.lineno}`, `${event.message}\n--\nPlease report this error to the developers.`);
|
||||
debug_info.errors.push({msg: event.message, url: event.filename, line: event.lineno});
|
||||
});
|
||||
|
Reference in New Issue
Block a user