MCPcopy Create free account
hub / github.com/ServerlessLLM/ServerlessLLM / read_config

Function read_config

sllm/cli/_cli_utils.py:89–98  ·  view source on GitHub ↗
(config_path: str)

Source from the content-addressed store, hash-verified

87
88# ----------------------------- DEPLOY COMMAND ----------------------------- #
89def read_config(config_path: str) -> dict:
90 try:
91 with open(config_path, "r") as file:
92 return json.load(file)
93 except FileNotFoundError:
94 print(f"[ERROR] Config file {config_path} not found.")
95 sys.exit(1)
96 except json.JSONDecodeError:
97 print(f"[ERROR] JSON decode error in config file {config_path}.")
98 sys.exit(1)
99
100
101def deep_update(original: dict, updates: dict) -> dict:

Callers 1

deploy_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected