local-llm-server/llm_server/llm/llm_backend.py

13 lines
429 B
Python
Raw Normal View History

2023-09-11 20:47:19 -06:00
from typing import Union, Tuple
2023-08-30 18:53:26 -06:00
class LLMBackend:
def handle_response(self, success, response, error_msg, client_ip, token, prompt, elapsed_time, parameters, headers):
raise NotImplementedError
2023-09-11 20:47:19 -06:00
def validate_params(self, params_dict: dict) -> Tuple[bool, str | None]:
2023-08-30 18:53:26 -06:00
raise NotImplementedError
2023-09-11 20:47:19 -06:00
# def get_model_info(self) -> Tuple[dict | bool, Exception | None]:
# raise NotImplementedError