MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / models

Method models

codeclash/viewer/app.py:265–274  ·  view source on GitHub ↗

Get list of unique model names from players config

(self)

Source from the content-addressed store, hash-verified

263
264 @property
265 def models(self) -> list[str]:
266 """Get list of unique model names from players config"""
267 players_config = self.get_path("config.players", [])
268 models = []
269 for player_config in players_config:
270 if isinstance(player_config, dict):
271 model_name = self.get_path_from_dict(player_config, "config.model.model_name")
272 if model_name and model_name not in models:
273 models.append(model_name)
274 return models
275
276 @property
277 def game_name(self) -> str:

Callers

nothing calls this directly

Calls 2

get_pathMethod · 0.95
get_path_from_dictMethod · 0.95

Tested by

no test coverage detected