MCPcopy Create free account
hub / github.com/arctic-cli/interface / resolveModels

Function resolveModels

packages/arctic/src/session/benchmark.ts:339–348  ·  view source on GitHub ↗
(input: {
    sessionID: string
    count?: number
    models?: BenchmarkSchema.Model[]
  })

Source from the content-addressed store, hash-verified

337 }
338
339 async function resolveModels(input: {
340 sessionID: string
341 count?: number
342 models?: BenchmarkSchema.Model[]
343 }): Promise<BenchmarkSchema.Model[]> {
344 if (input.models && input.models.length > 0) return input.models
345 const count = input.count ?? 2
346 const model = await resolveSessionModel(input.sessionID)
347 return Array.from({ length: count }, () => ({ ...model }))
348 }
349
350 async function resolveSessionModel(sessionID: string) {
351 const messages = await Session.messages({ sessionID })

Callers 1

startFunction · 0.85

Calls 1

resolveSessionModelFunction · 0.85

Tested by

no test coverage detected