MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / _get_env

Function _get_env

core/inference.py:20–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18_server_proc = None
19
20def _get_env():
21 env = os.environ.copy()
22 ld = env.get("LD_LIBRARY_PATH", "")
23 env["LD_LIBRARY_PATH"] = f"{LLAMA_LIB}:{ld}" if ld else LLAMA_LIB
24 return env
25
26def _server_ready(retries=90, delay=1.0) -> bool:
27 for _ in range(retries):

Callers 1

_start_serverFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected