Remove old stuff

This commit is contained in:
somebody
2022-08-28 18:11:32 -05:00
parent 6548fdf794
commit d7d0cef522

View File

@@ -39,8 +39,6 @@ import traceback
import inspect
import warnings
import multiprocessing
from enum import Enum
from dataclasses import dataclass
from collections.abc import Iterable
from collections import OrderedDict
from typing import Any, Callable, TypeVar, Tuple, Union, Dict, Set, List, Optional, Type
@@ -3972,19 +3970,6 @@ def check_for_backend_compilation():
break
koboldai_vars.checking = False
class ContextType(Enum):
SOFT_PROMPT = 1
STORY = 2
WORLD_INFO = 3
MEMORY = 4
HEADER = 5
@dataclass
class ContextChunk:
def __init__(self, value, context_type: ContextType) -> None:
self.value = value
self.context_type = context_type
def actionsubmit(data, actionmode=0, force_submit=False, force_prompt_gen=False, disable_recentrng=False, no_generate=False):
# Ignore new submissions if the AI is currently busy
if(koboldai_vars.aibusy):