MCPcopy Create free account
hub / github.com/Bairong-Xdynamics/MistakeNotebookLearning / get_env_or_raise

Function get_env_or_raise

examples/example_mind2web.py:119–123  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

117load_dotenv()
118
119def get_env_or_raise(key):
120 value = os.getenv(key)
121 if not value:
122 raise ValueError(f"Environment variable {key} is missing in .env")
123 return value
124
125# Tuning model configuration
126TUNING_BASE_URLS = get_env_or_raise("TUNING_BASE_URLS").split(",")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected