MCPcopy Create free account
hub / github.com/ChartGalaxy/ChartGalaxy / load_env

Function load_env

code_generation_benchmark/configs/loader.py:14–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def load_env() -> dict:
15 env_path = Path('.') / 'configs' / '.env'
16 load_dotenv(dotenv_path=env_path)
17 env_dict = {}
18 for name in ['OPENAI', 'GEMINI', 'CLAUDE', 'INTERN']:
19 env_dict[name.lower()] = {
20 "API_KEY": os.getenv(f"EVAL_API_KEY_{name}", "xxx"),
21 "BASE_URL": os.getenv(f"EVAL_BASE_URL_{name}", "xxx"),
22 }
23 return env_dict

Callers 1

constants.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected