Skip to content

Commit db1a2cb

Browse files
pdecatPeterDaveHello
authored andcommitted
fix: refresh models button not flushing cache properly (RooCodeInc#9870)
1 parent 6c02478 commit db1a2cb

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/api/providers/__tests__/deepinfra.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ vitest.mock("../fetchers/modelCache", () => ({
2626
getModels: vitest.fn().mockResolvedValue({
2727
[deepInfraDefaultModelId]: deepInfraDefaultModelInfo,
2828
}),
29+
getModelsFromCache: vitest.fn().mockReturnValue(undefined),
2930
}))
3031

3132
import OpenAI from "openai"

src/api/providers/__tests__/unbound.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ vitest.mock("../fetchers/modelCache", () => ({
7171
},
7272
})
7373
}),
74+
getModelsFromCache: vitest.fn().mockReturnValue(undefined),
7475
}))
7576

7677
// Mock OpenAI client

0 commit comments

Comments
 (0)