MCPcopy Index your code
hub / github.com/simstudioai/sim / getProviderConfig

Function getProviderConfig

apps/sim/lib/tokenization/utils.ts:22–32  ·  view source on GitHub ↗
(providerId: string)

Source from the content-addressed store, hash-verified

20 * Gets tokenization configuration for a specific provider
21 */
22export function getProviderConfig(providerId: string): ProviderTokenizationConfig {
23 const config =
24 TOKENIZATION_CONFIG.providers[providerId as keyof typeof TOKENIZATION_CONFIG.providers]
25
26 if (!config) {
27 logger.debug(`No specific config for provider ${providerId}, using fallback`, { providerId })
28 return TOKENIZATION_CONFIG.fallback
29 }
30
31 return config
32}
33
34/**
35 * Extracts provider ID from model name

Callers 1

estimateTokenCountFunction · 0.90

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected