🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: set source: API if no source provided (#4148)
Steffen Schmitze2d3647d7636
diff --git a/packages/shared/src/server/ingestion/validateAndInflateScore.ts b/packages/shared/src/server/ingestion/validateAndInflateScore.tsindex 90e9ba303c..f78ae28fd2 100644--- a/packages/shared/src/server/ingestion/validateAndInflateScore.ts+++ b/packages/shared/src/server/ingestion/validateAndInflateScore.ts@@ -76,7 +76,7 @@ function inflateScoreBody(const { body, projectId, scoreId, config } = params;const relevantDataType = config?.dataType ?? body.dataType;- const scoreProps = { ...body, id: scoreId, projectId };+ const scoreProps = { source: "API", ...body, id: scoreId, projectId };if (typeof body.value === "number") {if (relevantDataType && relevantDataType === ScoreDataType.BOOLEAN) {