johnsonhung906
add code for qwen
24628d9
raw
history blame
658 Bytes
class Model:
def __init__(self, config):
self.provider = config["model_info"]["provider"]
self.name = config["model_info"]["name"]
self.temperature = float(config["params"]["temperature"])
def print_model_info(self):
print(f"{'-'*len(f'| Model name: {self.name}')}\n| Provider: {self.provider}\n| Model name: {self.name}\n{'-'*len(f'| Model name: {self.name}')}")
def set_API_key(self):
raise NotImplementedError("ERROR: Interface doesn't have the implementation for set_API_key")
def query(self):
raise NotImplementedError("ERROR: Interface doesn't have the implementation for query")