"""Print the /model picker rows for one profile, exactly as Hermes builds them. Run: cd && HERMES_HOME= .venv/bin/python (keep PYTHONPATH; `env -u PYTHONPATH` loses yaml). Compare the rows with the providers you expect. Does not read .env: rows that need a key show only if the key is already in the environment.""" import os,sys,yaml home=os.environ['HERMES_HOME'] cfg=yaml.safe_load(open(os.path.join(home,'config.yaml'))) or {} from hermes_cli.plugins import discover_plugins; discover_plugins() from providers import list_providers from hermes_cli.config import get_compatible_custom_providers from hermes_cli.model_switch_providers import list_picker_providers m=cfg.get('model') or {} rows=list_picker_providers(max_models=50,include_moa=True,current_provider=m.get('provider',''),current_base_url=m.get('base_url',''),user_providers=cfg.get('providers'),custom_providers=get_compatible_custom_providers(cfg),current_model=m.get('default',''),excluded_providers=(cfg.get('model_catalog') or {}).get('excluded_providers') or [],non_blocking_catalogs=True,probe_custom_providers=False,probe_current_custom_provider=True) print(os.path.basename(home)+": "+" | ".join(f"{r.get('name')}[{r.get('slug')}]({r.get('total_models')})" for r in rows))