Files
troupe-standup/wizard-work/spark/debug_yaml.py
T

14 lines
450 B
Python

#!/usr/bin/env python3
import yaml
from pathlib import Path
config_path = Path("/root/.hermes/profiles/spark/config.yaml")
with open(config_path) as f:
cfg = yaml.safe_load(f)
print("Config type:", type(cfg))
print("Model value:", cfg.get('model'))
print("Model type:", type(cfg.get('model')))
if isinstance(cfg.get('model'), dict):
print("Default:", cfg.get('model').get('default'))
print("Provider:", cfg.get('model').get('provider'))