(providerId: string)
| 20 | * Gets tokenization configuration for a specific provider |
| 21 | */ |
| 22 | export 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 |
no test coverage detected