MCPcopy
hub / github.com/jundot/omlx / get_all_settings

Method get_all_settings

omlx/model_settings.py:450–460  ·  view source on GitHub ↗

Get a copy of all model settings. Returns: Dictionary mapping model IDs to their settings (deep copy).

(self)

Source from the content-addressed store, hash-verified

448 ]
449
450 def get_all_settings(self) -> Dict[str, ModelSettings]:
451 """Get a copy of all model settings.
452
453 Returns:
454 Dictionary mapping model IDs to their settings (deep copy).
455 """
456 with self._lock:
457 return {
458 model_id: ModelSettings.from_dict(settings.to_dict())
459 for model_id, settings in self._settings.items()
460 }
461
462 # ==================== Profiles ====================
463

Callers 5

test_get_all_settingsMethod · 0.95
resolve_model_idMethod · 0.80
list_modelsFunction · 0.80
update_model_settingsFunction · 0.80

Calls 3

from_dictMethod · 0.45
to_dictMethod · 0.45
itemsMethod · 0.45

Tested by 2

test_get_all_settingsMethod · 0.76