MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / getCachedModels

Function getCachedModels

src/utils/modelCache.ts:345–351  ·  view source on GitHub ↗
(provider: string)

Source from the content-addressed store, hash-verified

343}
344
345export function getCachedModels(provider: string): string[] | null {
346 const cache = readCache();
347 if (!cache || !cache.models[provider]) {
348 return null;
349 }
350 return cache.models[provider];
351}

Callers 1

listModelsFunction · 0.90

Calls 1

readCacheFunction · 0.70

Tested by

no test coverage detected