MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / activeModelOf

Function activeModelOf

graph-ui/src/llm/sidecar.ts:312–319  ·  view source on GitHub ↗
(models: readonly CacheModel[], selected: string)

Source from the content-addressed store, hash-verified

310 * eine Karte mit denen des laufenden.
311 */
312export function activeModelOf(models: readonly CacheModel[], selected: string): CacheModel | undefined {
313 if (models.length === 0) {
314 return undefined;
315 }
316 return models.find((model) => model.id === selected)
317 ?? models.find((model) => model.loaded)
318 ?? models[0];
319}
320
321/**
322 * Die Groessenangaben aus `/v1/models` dazulegen.

Callers 2

sidecar.test.tsFile · 0.90
probeSidecarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected