MCPcopy Create free account
hub / github.com/agegr/pi-web / modelsData

Function modelsData

lib/models-cache.test.mjs:6–14  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

4import { invalidateModelsCache, loadModelsWithCache } from "./models-cache.ts";
5
6function 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
16test("caches model data independently for each cwd", async () => {
17 invalidateModelsCache();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected