Spaces:
Runtime error
Runtime error
| from abc import ABCMeta, abstractmethod | |
| class LLMFactory(metaclass=ABCMeta): | |
| def create_prompt_format(self): | |
| pass | |
| def create_prompt_manager(self): | |
| pass | |
| def create_pp_manager(self): | |
| pass | |
| def create_ui_pp_manager(self): | |
| pass | |
| def create_llm_service(self): | |
| pass | |
| class PromptFmt(metaclass=ABCMeta): | |
| def ctx(cls, context): | |
| pass | |
| def prompt(cls, pingpong, truncate_size): | |
| pass | |
| class PromptManager(metaclass=ABCMeta): | |
| def load_prompts(self): | |
| pass | |
| def reload_prompts(self): | |
| pass | |
| def prompts_path(self): | |
| pass | |
| def prompts_path(self, prompts_path): | |
| pass | |
| def prompts(self): | |
| pass | |
| class PPManager(metaclass=ABCMeta): | |
| def build_prompts(self, from_idx: int=0, to_idx: int=-1, fmt: PromptFmt=None, truncate_size: int=None): | |
| pass | |
| class UIPPManager(PPManager, metaclass=ABCMeta): | |
| def build_uis(self, from_idx: int=0, to_idx: int=-1): | |
| pass | |
| class LLMService(metaclass=ABCMeta): | |
| def make_params(self, mode="chat", | |
| temperature=None, | |
| candidate_count=None, | |
| top_k=None, | |
| top_p=None, | |
| max_output_tokens=None, | |
| use_filter=True): | |
| pass | |
| async def gen_text(self, prompt, mode="chat", parameters=None, use_filter=True): | |
| pass | |