MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / register_model

Method register_model

src/model/manager.py:762–769  ·  view source on GitHub ↗

Register a new model configuration.

(self, config: ModelConfig)

Source from the content-addressed store, hash-verified

760 self.model_clients[config.model_name] = client
761
762 async def register_model(self, config: ModelConfig) -> None:
763 """Register a new model configuration."""
764 if config.provider not in ["openai", "openrouter", "anthropic", "google"]:
765 raise ValueError(f"Only OpenAI, OpenRouter, Anthropic, and Google models are supported. Got provider: {config.provider}")
766
767 self.models[config.model_name] = config
768 await self._create_client(config)
769 logger.info(f"Registered model: {config.model_name}")
770
771 async def __call__(
772 self,

Callers

nothing calls this directly

Calls 2

_create_clientMethod · 0.95
infoMethod · 0.45

Tested by

no test coverage detected