Switch to a different provider and its default model.
(self, provider: str)
| 352 | logger.debug(f"Set active provider: {provider}") |
| 353 | |
| 354 | def switch_provider(self, provider: str): |
| 355 | """Switch to a different provider and its default model.""" |
| 356 | self.set_active_provider(provider) |
| 357 | self._active_model = self.get_default_model(provider) |
| 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.""" |