()
| 329 | } |
| 330 | |
| 331 | export function getCacheInfo(): { |
| 332 | timestamp: number | null; |
| 333 | providers: string[]; |
| 334 | } { |
| 335 | const cache = readCache(); |
| 336 | if (!cache) { |
| 337 | return { timestamp: null, providers: [] }; |
| 338 | } |
| 339 | return { |
| 340 | timestamp: cache.timestamp, |
| 341 | providers: Object.keys(cache.models || {}) |
| 342 | }; |
| 343 | } |
| 344 | |
| 345 | export function getCachedModels(provider: string): string[] | null { |
| 346 | const cache = readCache(); |
no test coverage detected
searching dependent graphs…