Get a copy of all model settings. Returns: Dictionary mapping model IDs to their settings (deep copy).
(self)
| 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 |