Primary finding
getModelPricing JSDoc contradicts implementation (never returns null)
- src/providers/pricing.ts:62-66
- src/providers/pricing.ts:66-71
The comment promises null for unknown models, but the code always returns a fallback-derived object. This can mislead callers into writing null checks that never fire or into assuming returned values are known rates when they are conservative fallbacks.
Recommendation
Align docs and code. Either: (a) keep fallback behavior and update the JSDoc to explain that unknown models return fallback pricing; or (b) return null for unknown models (and expose an explicit getFallbackModelPricing if needed). Given hasKnownPricing exists, option (a) is simplest.