Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

Batch-endpoint (#482)

Max Deichmann4539f4db9767
diff --git a/src/pages/api/public/ingestion.ts b/src/pages/api/public/ingestion.ts
index 0c6f945216..e13e8e202b 100644
--- a/src/pages/api/public/ingestion.ts
+++ b/src/pages/api/public/ingestion.ts
@@ -304,6 +304,5 @@ export const handleBatchResultLegacy = (
errors: ["Internal Server Error"],
});
}
-
- return res.status(201).send(results.length > 0 ? results[0] : {});
+ return res.status(201).send(results.length > 0 ? results[0]?.result : {});
};