From d7d0cef522611143f02c0a9bd5cadb1662a1cd25 Mon Sep 17 00:00:00 2001 From: somebody Date: Sun, 28 Aug 2022 18:11:32 -0500 Subject: [PATCH] Remove old stuff --- aiserver.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/aiserver.py b/aiserver.py index d8647982..2664a3c3 100644 --- a/aiserver.py +++ b/aiserver.py @@ -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):