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

Function initModelsDevPricing

packages/arctic/src/provider/pricing.ts:72–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 * Initialize models.dev pricing cache (call early to populate cache for sync access)
71 */
72export async function initModelsDevPricing(): Promise<void> {
73 await fetchModelsDevData()
74}
75
76async function fetchModelsDevData(): Promise<ModelsDevResponse> {
77 if (modelsDevCache && Date.now() - modelsDevCache.timestamp < MODELSDEV_CACHE_TTL) {

Callers 2

pricing.test.tsFile · 0.90
pricing.tsFile · 0.85

Calls 1

fetchModelsDevDataFunction · 0.85

Tested by

no test coverage detected