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

Method switch_model

src/mcp_cli/model_management/model_manager.py:360–364  ·  view source on GitHub ↗

Switch to a specific provider and model.

(self, provider: str, model: str)

Source from the content-addressed store, hash-verified

358 logger.debug(f"Switched to {provider}/{self._active_model}")
359
360 def switch_model(self, provider: str, model: str):
361 """Switch to a specific provider and model."""
362 self._active_provider = provider
363 self._active_model = model
364 logger.debug(f"Switched to {provider}/{model}")
365
366 # ── Client Management ─────────────────────────────────────────────────────
367

Callers 8

create_for_testingMethod · 0.95
createMethod · 0.95
executeMethod · 0.80
executeMethod · 0.80
switch_toMethod · 0.80
model_post_initMethod · 0.80
_handle_switch_modelMethod · 0.80
test_switch_modelMethod · 0.80

Calls

no outgoing calls

Tested by 2

create_for_testingMethod · 0.76
test_switch_modelMethod · 0.64