MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / env_or_def

Function env_or_def

examples/low_level_api/ReasonAct.py:7–10  ·  view source on GitHub ↗
(env, default)

Source from the content-addressed store, hash-verified

5
6
7def env_or_def(env, default):
8 if env in os.environ:
9 return os.environ[env]
10 return default
11
12
13MODEL = env_or_def("MODEL", "./models/llama-13B/ggml-model.bin")

Callers 1

ReasonAct.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…