MCPcopy Index your code
hub / github.com/mudler/LocalAI / _parse_options

Function _parse_options

backend/python/insightface/backend.py:53–60  ·  view source on GitHub ↗
(raw: list[str])

Source from the content-addressed store, hash-verified

51
52
53def _parse_options(raw: list[str]) -> dict[str, str]:
54 out: dict[str, str] = {}
55 for entry in raw:
56 if ":" not in entry:
57 continue
58 k, v = entry.split(":", 1)
59 out[k.strip()] = v.strip()
60 return out
61
62
63class BackendServicer(backend_pb2_grpc.BackendServicer):

Callers 1

LoadModelMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected