(response: ListCursorModelsResponse)
| 319 | } |
| 320 | |
| 321 | export function seedCursorModelsCache(response: ListCursorModelsResponse): void { |
| 322 | if ((response.availableModels?.length ?? 0) > 0) { |
| 323 | writeSharedCursorModelsCache(response); |
| 324 | } |
| 325 | void applyInMemoryCache(response); |
| 326 | } |
| 327 | |
| 328 | export function _resetCursorModelsCacheForTests(): void { |
| 329 | cache.expiresAt = 0; |
no test coverage detected