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 inspect
import warnings import warnings
import multiprocessing import multiprocessing
from enum import Enum
from dataclasses import dataclass
from collections.abc import Iterable from collections.abc import Iterable
from collections import OrderedDict from collections import OrderedDict
from typing import Any, Callable, TypeVar, Tuple, Union, Dict, Set, List, Optional, Type from typing import Any, Callable, TypeVar, Tuple, Union, Dict, Set, List, Optional, Type
@@ -3972,19 +3970,6 @@ def check_for_backend_compilation():
break break
koboldai_vars.checking = False 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): 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 # Ignore new submissions if the AI is currently busy
if(koboldai_vars.aibusy): if(koboldai_vars.aibusy):