mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Remove old stuff
This commit is contained in:
15
aiserver.py
15
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):
|
||||
|
Reference in New Issue
Block a user