MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / remove_provider

Function remove_provider

uncommon_route/providers.py:163–170  ·  view source on GitHub ↗

Remove a provider. Returns True if removed.

(name: str, config: ProvidersConfig | None = None)

Source from the content-addressed store, hash-verified

161
162
163def remove_provider(name: str, config: ProvidersConfig | None = None) -> bool:
164 """Remove a provider. Returns True if removed."""
165 cfg = config or load_providers()
166 if name not in cfg.providers:
167 return False
168 del cfg.providers[name]
169 save_providers(cfg)
170 return True
171
172
173def select_preferred_model(

Callers 4

test_remove_providerMethod · 0.90
handle_provider_detailFunction · 0.90
cmd_providerFunction · 0.85

Calls 2

load_providersFunction · 0.85
save_providersFunction · 0.85

Tested by 2

test_remove_providerMethod · 0.72