Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(aio): remove nodejs trial status reasons (#72693)

Carlos Marchal6b10e4af4b38
diff --git a/nodejs/src/ai-observability/evaluation-scheduler/evaluation-scheduler.test.ts b/nodejs/src/ai-observability/evaluation-scheduler/evaluation-scheduler.test.ts
index 2444f35753bd..101da7235e62 100644
--- a/nodejs/src/ai-observability/evaluation-scheduler/evaluation-scheduler.test.ts
+++ b/nodejs/src/ai-observability/evaluation-scheduler/evaluation-scheduler.test.ts
@@ -701,7 +701,7 @@ describe('Evaluation Scheduler', () => {
expect(temporalService.startEvaluationRunWorkflow).not.toHaveBeenCalled()
})
- it('still starts evaluation workflows for trial mode evaluations', async () => {
+ it('still starts evaluation workflows for evaluations with no pinned provider key', async () => {
const event = createAiGenerationEvent(teamId)
const evaluation = createEvaluation({
team_id: teamId,
diff --git a/nodejs/src/ai-observability/types.ts b/nodejs/src/ai-observability/types.ts
index 6f821d42fb3b..46cd0acbd120 100644
--- a/nodejs/src/ai-observability/types.ts
+++ b/nodejs/src/ai-observability/types.ts
@@ -5,8 +5,6 @@ export type EvaluationStatus = 'active' | 'paused' | 'error'
// Keep in sync with EvaluationStatusReason in products/ai_observability/backend/models/evaluations.py
export type EvaluationStatusReason =
| 'provider_key_required'
- | 'trial_limit_reached'
- | 'model_not_allowed'
| 'provider_key_deleted'
| 'no_default_model'
| 'provider_key_invalid'