(id)
| 4 | import { invalidateModelsCache, loadModelsWithCache } from "./models-cache.ts"; |
| 5 | |
| 6 | function modelsData(id) { |
| 7 | return { |
| 8 | models: { [`provider:${id}`]: id }, |
| 9 | modelList: [{ id, name: id, provider: "provider" }], |
| 10 | defaultModel: null, |
| 11 | thinkingLevels: {}, |
| 12 | thinkingLevelMaps: {}, |
| 13 | }; |
| 14 | } |
| 15 | |
| 16 | test("caches model data independently for each cwd", async () => { |
| 17 | invalidateModelsCache(); |