MCPcopy Create free account
hub / github.com/arctic-cli/interface / isProviderAllowed

Function isProviderAllowed

packages/arctic/src/provider/provider.ts:1634–1638  ·  view source on GitHub ↗
(providerID: string)

Source from the content-addressed store, hash-verified

1632 const enabled = config.enabled_providers ? new Set(config.enabled_providers) : null
1633
1634 function isProviderAllowed(providerID: string): boolean {
1635 if (enabled && !enabled.has(providerID)) return false
1636 if (disabled.has(providerID)) return false
1637 return true
1638 }
1639
1640 const providers: { [providerID: string]: Info } = {}
1641 const languages = new Map<string, LanguageModelV2>()

Callers 1

provider.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected