MCPcopy
hub / github.com/cft0808/edict / normalize_model

Function normalize_model

scripts/sync_agent_config.py:52–57  ·  view source on GitHub ↗
(model_value, fallback='unknown')

Source from the content-addressed store, hash-verified

50
51
52def normalize_model(model_value, fallback='unknown'):
53 if isinstance(model_value, str) and model_value:
54 return model_value
55 if isinstance(model_value, dict):
56 return model_value.get('primary') or model_value.get('id') or fallback
57 return fallback
58
59
60def get_skills(workspace: str):

Callers 2

_collect_openclaw_modelsFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected