🪢 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: better error message when uploading existing dataset item (#6053)
Mattyb8777aa5d1b9
diff --git a/web/src/pages/api/public/dataset-items/index.ts b/web/src/pages/api/public/dataset-items/index.tsindex a1f4cd7768..0bdd04b375 100644--- a/web/src/pages/api/public/dataset-items/index.ts+++ b/web/src/pages/api/public/dataset-items/index.ts@@ -89,7 +89,7 @@ export default withMiddlewares({`Failed to upsert dataset item. Dataset item ${itemId} in project ${auth.scope.projectId} already exists for a different dataset than ${dataset.id}`,);throw new LangfuseNotFoundError(- `The dataset item with id ${itemId} was not found in the dataset ${dataset.name}`,+ `The dataset item with id ${itemId} already exists in a dataset other than ${dataset.name}`,);}throw e;