MCPcopy Create free account
hub / github.com/FreedomIntelligence/LLMZoo / DispatchMethod

Class DispatchMethod

llmzoo/deploy/webapp/controller.py:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27class DispatchMethod(Enum):
28 LOTTERY = auto()
29 SHORTEST_QUEUE = auto()
30
31 @classmethod
32 def from_str(cls, name):
33 if name == "lottery":
34 return cls.LOTTERY
35 elif name == "shortest_queue":
36 return cls.SHORTEST_QUEUE
37 else:
38 raise ValueError(f"Invalid dispatch method")
39
40
41@dataclasses.dataclass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected