(models: BenchmarkSchema.Model[])
| 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 |