🪢 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
fix(experiments): default to observation level cost (#10070)
marliessophie182eb642f032
diff --git a/web/src/features/datasets/lib/convertRunItemDataToUiTableRow.ts b/web/src/features/datasets/lib/convertRunItemDataToUiTableRow.tsindex 9c793b62aa..10a0edf65e 100644--- a/web/src/features/datasets/lib/convertRunItemDataToUiTableRow.ts+++ b/web/src/features/datasets/lib/convertRunItemDataToUiTableRow.ts@@ -20,9 +20,11 @@ export const convertRunItemToItemsByItemUiTableRow = (}: undefined,scores: item.scores,- totalCost: isPresent(item.trace?.totalCost)- ? usdFormatter(item.trace.totalCost)- : undefined,+ totalCost: isPresent(item.observation?.calculatedTotalCost)+ ? usdFormatter(item.observation.calculatedTotalCost.toNumber())+ : isPresent(item.trace?.totalCost)+ ? usdFormatter(item.trace.totalCost)+ : undefined,latency: item.observation?.latency ?? item.trace?.duration ?? undefined,};};@@ -41,9 +43,11 @@ export const convertRunItemToItemsByRunUiTableRow = (}: undefined,scores: item.scores,- totalCost: isPresent(item.trace?.totalCost)- ? usdFormatter(item.trace.totalCost)- : undefined,+ totalCost: isPresent(item.observation?.calculatedTotalCost)+ ? usdFormatter(item.observation.calculatedTotalCost.toNumber())+ : isPresent(item.trace?.totalCost)+ ? usdFormatter(item.trace.totalCost)+ : undefined,latency: item.observation?.latency ?? item.trace?.duration ?? undefined,};};