新增 Mimi 与仅用户 VAP 对比并统一流式评测

This commit is contained in:
Xin Wang
2026-10-28 22:44:36 +08:00
parent 19d4e3c767
commit 6785e3a07b
55 changed files with 6160 additions and 31 deletions
@@ -23,11 +23,11 @@ export async function GET(request: Request) {
for (const source of sources) {
try {
// Fixed paths only: no request value is used to locate an export.
const file = path.join(root, "experiments", source.directory, "results", "score-timeline.json");
const file = path.join(root, "experiments", source.directory, "results", source.scoreFile ?? "score-timeline.json");
const data = parseScoreExport(JSON.parse(await fs.readFile(file, "utf8")), source.model);
const call = data.calls.find(item => item.call_id === callId && item.audio_path === recordingPath);
if (call) payload.series.push({ ...call, model: data.model, name: data.name,
score: data.score, sample_interval_ms: data.sample_interval_ms });
score: data.score, sample_interval_ms: data.sample_interval_ms, checkpoint_mode: data.checkpoint_mode });
else payload.messages.push(`${source.name} 暂无这段录音的评分。`);
} catch (error) {
if (!(error instanceof Error && "code" in error && error.code === "ENOENT")) {