Provide the local llama service
This commit is contained in:
@@ -28,7 +28,7 @@ class ComputeNode(ABC):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def is_support(self, task_type: ComputeTaskType) -> bool:
|
||||
def is_support(self, task: ComputeTask) -> bool:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
@@ -41,10 +41,9 @@ class ComputeNode(ABC):
|
||||
def get_fee_type(self) -> str:
|
||||
return "free"
|
||||
|
||||
|
||||
class LocalComputeNode(ComputeNode):
|
||||
def display(self) -> str:
|
||||
return super().display()
|
||||
|
||||
def is_local(self) -> bool:
|
||||
return True
|
||||
return True
|
||||
Reference in New Issue
Block a user