MCPcopy Create free account
hub / github.com/IBM/mcp-cli / get_active_model

Method get_active_model

src/mcp_cli/model_management/model_manager.py:343–347  ·  view source on GitHub ↗

Get the currently active model.

(self)

Source from the content-addressed store, hash-verified

341 return self._active_provider or DEFAULT_PROVIDER
342
343 def get_active_model(self) -> str:
344 """Get the currently active model."""
345 if not self._active_model:
346 self._active_model = self.get_default_model(self.get_active_provider())
347 return self._active_model
348
349 def set_active_provider(self, provider: str):
350 """Set the active provider."""

Callers 6

main_callbackFunction · 0.95
_chat_commandFunction · 0.95
_interactive_commandFunction · 0.95
models_commandFunction · 0.95
cmd_commandFunction · 0.95
executeMethod · 0.95

Calls 2

get_default_modelMethod · 0.95
get_active_providerMethod · 0.95

Tested by

no test coverage detected