MCPcopy
hub / github.com/algorithmicsuperintelligence/optillm / create

Method create

optillm/plugins/proxy/routing.py:108–116  ·  view source on GitHub ↗
(strategy: str, providers: List)

Source from the content-addressed store, hash-verified

106
107 @staticmethod
108 def create(strategy: str, providers: List) -> Router:
109 strategies = {
110 'round_robin': RoundRobinRouter,
111 'weighted': WeightedRouter,
112 'failover': FailoverRouter
113 }
114
115 router_class = strategies.get(strategy, RoundRobinRouter)
116 return router_class(providers)

Callers 15

generate_responseFunction · 0.45
get_llm_responseFunction · 0.45
get_llm_responseFunction · 0.45
query_optillmMethod · 0.45
grade_responseMethod · 0.45
get_llm_responseFunction · 0.45
imo25_verify_solutionFunction · 0.45
get_llm_responseFunction · 0.45
generate_responseFunction · 0.45
rank_responsesFunction · 0.45
verify_proofFunction · 0.45
get_llm_responseFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected