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

Function hasDuplicates

packages/arctic/src/session/benchmark.ts:329–337  ·  view source on GitHub ↗
(models: BenchmarkSchema.Model[])

Source from the content-addressed store, hash-verified

327 }
328
329 export function hasDuplicates(models: BenchmarkSchema.Model[]) {
330 const seen = new Set<string>()
331 for (const model of models) {
332 const key = `${model.providerID}/${model.modelID}`
333 if (seen.has(key)) return true
334 seen.add(key)
335 }
336 return false
337 }
338
339 async function resolveModels(input: {
340 sessionID: string

Callers 1

startFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected