mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Potential World Info Dynamic Scan bug fix
This commit is contained in:
@@ -4588,7 +4588,7 @@ def _generate(txt, minimum, maximum, found_entries):
|
|||||||
koboldai_vars._actions = koboldai_vars.actions
|
koboldai_vars._actions = koboldai_vars.actions
|
||||||
koboldai_vars._prompt = koboldai_vars.prompt
|
koboldai_vars._prompt = koboldai_vars.prompt
|
||||||
if(koboldai_vars.dynamicscan):
|
if(koboldai_vars.dynamicscan):
|
||||||
koboldai_vars._actions = copy.deepcopy(koboldai_vars._actions)
|
koboldai_vars._actions = [x for x in koboldai_vars.actions]
|
||||||
|
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
already_generated = 0
|
already_generated = 0
|
||||||
|
@@ -4,9 +4,7 @@ from flask import has_request_context
|
|||||||
from flask_socketio import SocketIO
|
from flask_socketio import SocketIO
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
rely_clients = {}
|
|
||||||
serverstarted = False
|
serverstarted = False
|
||||||
port = 5000
|
|
||||||
queue = None
|
queue = None
|
||||||
|
|
||||||
def clean_var_for_emit(value):
|
def clean_var_for_emit(value):
|
||||||
@@ -17,15 +15,6 @@ def clean_var_for_emit(value):
|
|||||||
else:
|
else:
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def create_loopback_socketio():
|
|
||||||
sio = socketio_client.Client()
|
|
||||||
@sio.event
|
|
||||||
def connect():
|
|
||||||
pass
|
|
||||||
sio.connect('ws://localhost:{}/?rely=true'.format(port))
|
|
||||||
rely_clients[threading.get_ident()] = sio
|
|
||||||
return sio
|
|
||||||
|
|
||||||
def process_variable_changes(socketio, classname, name, value, old_value, debug_message=None):
|
def process_variable_changes(socketio, classname, name, value, old_value, debug_message=None):
|
||||||
if serverstarted and name != "serverstarted":
|
if serverstarted and name != "serverstarted":
|
||||||
if debug_message is not None:
|
if debug_message is not None:
|
||||||
|
Reference in New Issue
Block a user