()
| 86415 | default: |
| 86416 | models = MODEL_LIST.openai; |
| 86417 | } |
| 86418 | const existingCache = cache?.models || {}; |
| 86419 | existingCache[provider] = models; |
| 86420 | writeCache(existingCache); |
| 86421 | return models; |
| 86422 | } |
| 86423 | function clearModelCache() { |
| 86424 | try { |
| 86425 | if ((0, import_fs5.existsSync)(MODEL_CACHE_PATH)) { |
| 86426 | (0, import_fs5.writeFileSync)(MODEL_CACHE_PATH, "{}", "utf8"); |
| 86427 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…