fix: Fix leaky opens (#2924)
This commit is contained in:
3
.github/scripts/model-sweep/model_sweep.py
vendored
3
.github/scripts/model-sweep/model_sweep.py
vendored
@@ -36,7 +36,8 @@ from letta.schemas.llm_config import LLMConfig
|
||||
|
||||
def get_llm_config(filename: str, llm_config_dir: str = "tests/configs/llm_model_configs") -> LLMConfig:
|
||||
filename = os.path.join(llm_config_dir, filename)
|
||||
config_data = json.load(open(filename, "r"))
|
||||
with open(filename, "r") as f:
|
||||
config_data = json.load(f)
|
||||
llm_config = LLMConfig(**config_data)
|
||||
return llm_config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user