Skip to content

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

chore(evals): remove decisionModelEvaluators feature flag (#17797)

Hassieb Pakzad82411f3c888f
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryDialog/EvaluatorGalleryDialog.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryDialog/EvaluatorGalleryDialog.tsx
index ce4a2d5db1..869aaa22de 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryDialog/EvaluatorGalleryDialog.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryDialog/EvaluatorGalleryDialog.tsx
@@ -12,7 +12,6 @@ import { EvaluatorGalleryView } from "@/src/features/evals/v2/components/Evaluat
import type { GalleryTemplate } from "@/src/features/evals/v2/types/templateGallery";
import { prepareEvaluatorGallery } from "@/src/features/evals/v2/fns/templateGallery/prepareEvaluatorGallery";
import { EVALUATOR_GALLERY_ALL_SECTION_KEY } from "@/src/features/evals/v2/constants/evaluatorGallery";
-import useIsFeatureEnabled from "@/src/features/feature-flags/hooks/useIsFeatureEnabled";
import useLocalStorage from "@/src/components/useLocalStorage";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics";
import { getEvaluatorCreationAnalyticsProperties } from "@/src/features/evals/v2/fns/evaluators/getEvaluatorCreationAnalyticsProperties";
@@ -41,9 +40,6 @@ export function EvaluatorGalleryDialog({
);
const searchInputRef = useRef<HTMLInputElement | null>(null);
const scrollContainerRef = useRef<HTMLDivElement | null>(null);
- const decisionModelsEnabled = useIsFeatureEnabled("decisionModelEvaluators", {
- projectId,
- });
const [bannerDismissed, setBannerDismissed] = useLocalStorage(
"evaluatorGallery:decisionModelBannerDismissed:v1",
false,
@@ -84,7 +80,6 @@ export function EvaluatorGalleryDialog({
customTemplateCount:
projectEvaluators.data?.pages[0]?.totalItems ?? customTemplates.length,
search,
- includeDecisionModels: decisionModelsEnabled,
});
const selectSection = (key: string) => {
setActiveSection(key);
@@ -164,14 +159,8 @@ export function EvaluatorGalleryDialog({
? projectEvaluators.error.message
: undefined
}
- decisionModel={
- decisionModelsEnabled
- ? {
- bannerDismissed,
- onDismissBanner: () => setBannerDismissed(true),
- }
- : undefined
- }
+ decisionModelBannerDismissed={bannerDismissed}
+ onDismissDecisionModelBanner={() => setBannerDismissed(true)}
/>
</DialogContent>
</Dialog>
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.stories.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.stories.tsx
index 1fe0a48152..8aaf79ed5e 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.stories.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.stories.tsx
@@ -195,6 +195,8 @@ const defaultArgs = {
onSelectTemplate: fn(),
onCreateFromScratch: fn(),
isLoading: false,
+ decisionModelBannerDismissed: true,
+ onDismissDecisionModelBanner: fn(),
};
export const Default = meta.story({
@@ -244,7 +246,7 @@ export const DecisionModels = meta.story({
args: {
...defaultArgs,
sections: sectionsWithDecisionModelCard,
- decisionModel: { bannerDismissed: false, onDismissBanner: fn() },
+ decisionModelBannerDismissed: false,
},
render: StatefulEvaluatorGalleryView,
});
@@ -253,7 +255,6 @@ export const DecisionModelsBannerDismissed = meta.story({
args: {
...defaultArgs,
sections: sectionsWithDecisionModelCard,
- decisionModel: { bannerDismissed: true, onDismissBanner: fn() },
},
render: StatefulEvaluatorGalleryView,
});
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.tsx
index 0b954a0eaf..f8f975933a 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.tsx
@@ -54,7 +54,8 @@ export function EvaluatorGalleryView({
isLoadingMoreProjectTemplates = false,
onLoadMoreProjectTemplates,
errorMessage,
- decisionModel,
+ decisionModelBannerDismissed,
+ onDismissDecisionModelBanner,
}: {
search: string;
onSearchChange: (search: string) => void;
@@ -73,10 +74,8 @@ export function EvaluatorGalleryView({
isLoadingMoreProjectTemplates?: boolean;
onLoadMoreProjectTemplates?: () => void;
errorMessage?: string;
- decisionModel?: {
- bannerDismissed: boolean;
- onDismissBanner: () => void;
- };
+ decisionModelBannerDismissed: boolean;
+ onDismissDecisionModelBanner: () => void;
}) {
const sidebarItems = gallerySidebarItems(navigationItems, sections);
const resolvedSection =
@@ -175,30 +174,28 @@ export function EvaluatorGalleryView({
<Code2 className="h-3.5 w-3.5" aria-hidden="true" />
New code evaluator
</Button>
- {decisionModel ? (
- <Button
- type="button"
- variant="secondary"
- className="flex-1 shrink-0 gap-1.5 @2xl:flex-none"
- title="Ask TypeSafe Jev typed questions and get calibrated answers in one call. Experimental."
- onClick={() =>
- onCreateFromScratch(EvalTemplateTypeEnum.DECISION_MODEL)
- }
- >
- <Scale className="h-3.5 w-3.5" aria-hidden="true" />
- New decision model evaluator
- </Button>
- ) : null}
+ <Button
+ type="button"
+ variant="secondary"
+ className="flex-1 shrink-0 gap-1.5 @2xl:flex-none"
+ title="Ask TypeSafe Jev typed questions and get calibrated answers in one call. Experimental."
+ onClick={() =>
+ onCreateFromScratch(EvalTemplateTypeEnum.DECISION_MODEL)
+ }
+ >
+ <Scale className="h-3.5 w-3.5" aria-hidden="true" />
+ New decision model evaluator
+ </Button>
</div>
</div>
<div className="flex flex-col gap-10 px-4 py-4">
- {decisionModel && !decisionModel.bannerDismissed ? (
+ {!decisionModelBannerDismissed ? (
<EvaluatorGalleryDecisionModelBanner
onTry={() =>
onCreateFromScratch(EvalTemplateTypeEnum.DECISION_MODEL)
}
- onDismiss={decisionModel.onDismissBanner}
+ onDismiss={onDismissDecisionModelBanner}
/>
) : null}
{isLoading ? <GallerySkeleton /> : null}
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/EvaluationTypeConfiguration.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/EvaluationTypeConfiguration.tsx
index 5220473443..55086bc148 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/EvaluationTypeConfiguration.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/EvaluationTypeConfiguration.tsx
@@ -11,13 +11,11 @@ export function EvaluationTypeConfiguration({
mode,
onModeChange,
disabled,
- showDecisionModel = false,
children,
}: {
mode: EvalTemplateType;
onModeChange: (mode: EvalTemplateType) => void;
disabled: boolean;
- showDecisionModel?: boolean;
children: ReactNode;
}) {
return (
@@ -28,10 +26,9 @@ export function EvaluationTypeConfiguration({
<InfoTooltip label="About evaluation types">
Use custom code for deterministic checks like exact matches, regex,
or schema validation. Use an LLM when the check needs judgment, such
- as rating helpfulness, tone, or answer quality.
- {showDecisionModel
- ? " Use a decision model (experimental) for a fast, cheap label with calibrated probabilities when the possible answers are known upfront."
- : null}
+ as rating helpfulness, tone, or answer quality. Use a decision model
+ (experimental) for a fast, cheap label with calibrated probabilities
+ when the possible answers are known upfront.
</InfoTooltip>
</span>
</Label>
@@ -41,7 +38,6 @@ export function EvaluationTypeConfiguration({
value={mode}
onValueChange={onModeChange}
disabled={disabled}
- showDecisionModel={showDecisionModel}
/>
<span>{mode === "CODE" ? "written in" : "with"}</span>
{children}
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/components/EvaluationTypeToggle/EvaluationTypeToggle.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/components/EvaluationTypeToggle/EvaluationTypeToggle.tsx
index 04cd99e878..7e866c4a0b 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/components/EvaluationTypeToggle/EvaluationTypeToggle.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/components/EvaluationTypeToggle/EvaluationTypeToggle.tsx
@@ -8,12 +8,10 @@ export function EvaluationTypeToggle({
value,
onValueChange,
disabled = false,
- showDecisionModel = false,
}: {
value: EvalTemplateType;
onValueChange: (value: EvalTemplateType) => void;
disabled?: boolean;
- showDecisionModel?: boolean;
}) {
return (
<Tabs
@@ -37,8 +35,7 @@ export function EvaluationTypeToggle({
label="Code evaluator"
/>
) : null}
- {(showDecisionModel && !disabled) ||
- value === EvalTemplateTypeEnum.DECISION_MODEL ? (
+ {!disabled || value === EvalTemplateTypeEnum.DECISION_MODEL ? (
<Tabs.Trigger
value={EvalTemplateTypeEnum.DECISION_MODEL}
disabled={disabled}
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/DefinitionStep.stories.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/DefinitionStep.stories.tsx
index c97a4afad4..fe1ed29baa 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/DefinitionStep.stories.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/DefinitionStep.stories.tsx
@@ -12,7 +12,6 @@ export const LlmAsJudge = meta.story({
type: "LLM_AS_JUDGE",
onTypeChange: fn(),
isEditing: false,
- showDecisionModel: false,
typeConfiguration: <button type="button">Project default model</button>,
promptEditor: <div className="rounded-md border p-3">Prompt editor</div>,
scoreOutputEditor: (
@@ -28,7 +27,6 @@ export const Code = meta.story({
type: "CODE",
onTypeChange: fn(),
isEditing: false,
- showDecisionModel: false,
typeConfiguration: <button type="button">TypeScript</button>,
codeEditor: <div className="rounded-md border p-3">Code editor</div>,
},
@@ -41,7 +39,6 @@ export const DecisionModel = meta.story({
type: "DECISION_MODEL",
onTypeChange: fn(),
isEditing: false,
- showDecisionModel: true,
typeConfiguration: <button type="button">typesafe: jev-1.13.0</button>,
questionsEditor: <div className="rounded-md border p-3">Question list</div>,
},
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/DefinitionStep.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/DefinitionStep.tsx
index f6fe5c29c5..ce06f8f5ac 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/DefinitionStep.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/DefinitionStep.tsx
@@ -9,7 +9,6 @@ type DefinitionStepProps = {
onOpenChange: (open: boolean) => void;
onTypeChange: (type: EvalTemplateType) => void;
isEditing: boolean;
- showDecisionModel: boolean;
} & DefinitionStepContent;
type DefinitionStepContent =
@@ -59,7 +58,6 @@ export function DefinitionStep(props: DefinitionStepProps) {
mode={props.type}
onModeChange={props.onTypeChange}
disabled={props.isEditing}
- showDecisionModel={props.showDecisionModel}
>
{props.typeConfiguration}
</EvaluationTypeConfiguration>
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/DefinitionStepContainer/DefinitionStepContainer.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/DefinitionStepContainer/DefinitionStepContainer.tsx
index f0db1597b0..9ac4068592 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/DefinitionStepContainer/DefinitionStepContainer.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/DefinitionStepContainer/DefinitionStepContainer.tsx
@@ -2,8 +2,6 @@ import { useStore } from "zustand";
import { useShallow } from "zustand/react/shallow";
import type { LLMAdapter } from "@langfuse/shared";
-import useIsFeatureEnabled from "@/src/features/feature-flags/hooks/useIsFeatureEnabled";
-
import { DefinitionStep } from "@/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/DefinitionStep";
import { CodeEditor } from "@/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/CodeEditor/CodeEditor";
import { CodeLanguageSelector } from "@/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/CodeLanguageSelector/CodeLanguageSelector";
@@ -51,15 +49,11 @@ export function DefinitionStepContainer({
})),
);
- const showDecisionModel = useIsFeatureEnabled("decisionModelEvaluators", {
- projectId,
- });
const stepProps = {
open: state.open,
onOpenChange: (open: boolean) => onStepOpenChange(1, open),
onTypeChange: state.actions.setType,
isEditing,
- showDecisionModel,
};
switch (state.type) {
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorVersionHistorySheet/components/EvaluatorDefinitionView/EvaluatorDefinitionView.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorVersionHistorySheet/components/EvaluatorDefinitionView/EvaluatorDefinitionView.tsx
index 182d3de149..14529dfbf4 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorVersionHistorySheet/components/EvaluatorDefinitionView/EvaluatorDefinitionView.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorVersionHistorySheet/components/EvaluatorDefinitionView/EvaluatorDefinitionView.tsx
@@ -211,7 +211,6 @@ function DecisionModelDefinitionView({
mode={EvalTemplateTypeEnum.DECISION_MODEL}
onModeChange={noop}
disabled
- showDecisionModel
>
<Badge variant="outline" className="font-mono">
{definition.selectedModel
diff --git a/web/src/features/evals/v2/fns/templateGallery/managedEvaluatorTemplateService.clienttest.ts b/web/src/features/evals/v2/fns/templateGallery/managedEvaluatorTemplateService.clienttest.ts
index 8f73df3de1..1f5ddcfd7f 100644
--- a/web/src/features/evals/v2/fns/templateGallery/managedEvaluatorTemplateService.clienttest.ts
+++ b/web/src/features/evals/v2/fns/templateGallery/managedEvaluatorTemplateService.clienttest.ts
@@ -19,6 +19,7 @@ describe("managedEvaluatorTemplateService", () => {
"out-of-scope-request",
"quality-criterion",
"topic-classifier",
+ "topic-decision-model",
]);
expect(codeTemplates.categories.length).toBeGreaterThan(0);
});
diff --git a/web/src/features/evals/v2/fns/templateGallery/managedEvaluatorTemplateService.ts b/web/src/features/evals/v2/fns/templateGallery/managedEvaluatorTemplateService.ts
index 0052f0957f..382020e336 100644
--- a/web/src/features/evals/v2/fns/templateGallery/managedEvaluatorTemplateService.ts
+++ b/web/src/features/evals/v2/fns/templateGallery/managedEvaluatorTemplateService.ts
@@ -1,3 +1,5 @@
+import type { EvalTemplateType } from "@langfuse/shared";
+
import { MANAGED_TEMPLATES_CATALOG } from "@/src/features/evals/v2/constants/managedTemplatesCatalog";
export const managedEvaluatorTemplateService = {
@@ -5,12 +7,10 @@ export const managedEvaluatorTemplateService = {
search,
category,
type,
- includeDecisionModels = false,
}: {
search?: string;
category?: string;
- type?: "LLM_AS_JUDGE" | "CODE";
- includeDecisionModels?: boolean;
+ type?: EvalTemplateType;
} = {}) {
const query = search?.trim().toLowerCase();
@@ -19,8 +19,6 @@ export const managedEvaluatorTemplateService = {
categories: MANAGED_TEMPLATES_CATALOG.categories,
templates: MANAGED_TEMPLATES_CATALOG.templates.filter(
(template) =>
- (includeDecisionModels ||
- template.evaluator.type !== "DECISION_MODEL") &&
(!query ||
template.name.toLowerCase().includes(query) ||
template.description.toLowerCase().includes(query)) &&
diff --git a/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorEmptyState.clienttest.ts b/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorEmptyState.clienttest.ts
index 84c4e07996..fd8fc7fcf4 100644
--- a/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorEmptyState.clienttest.ts
+++ b/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorEmptyState.clienttest.ts
@@ -11,9 +11,7 @@ describe("prepareEvaluatorEmptyState", () => {
expect(emptyState.docsHref).toBe(EVALUATOR_EMPTY_STATE_DOCS_HREF);
expect(emptyState.templateCount).toBe(
- MANAGED_TEMPLATES_CATALOG.templates.filter(
- (template) => template.evaluator.type !== "DECISION_MODEL",
- ).length,
+ MANAGED_TEMPLATES_CATALOG.templates.length,
);
expect(
emptyState.startingPoints.map(({ template, action }) => ({
diff --git a/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorGallery.clienttest.ts b/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorGallery.clienttest.ts
index 20a78d8686..d1f4fb3b01 100644
--- a/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorGallery.clienttest.ts
+++ b/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorGallery.clienttest.ts
@@ -42,7 +42,7 @@ describe("prepareEvaluatorGallery", () => {
template.source === "managed" ? template.key : null,
),
).toEqual([
- "topic-classifier",
+ "topic-decision-model",
"out-of-scope-request",
"quality-criterion",
]);
@@ -59,6 +59,8 @@ describe("prepareEvaluatorGallery", () => {
"user-disagreement",
"all-caps",
"user-distress",
+ "out-of-scope-decision-model",
+ "frustration-decision-model",
]);
});
diff --git a/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorGallery.ts b/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorGallery.ts
index c50c5fa470..51b62aaa9b 100644
--- a/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorGallery.ts
+++ b/web/src/features/evals/v2/fns/templateGallery/prepareEvaluatorGallery.ts
@@ -26,12 +26,10 @@ export function prepareEvaluatorGallery({
customTemplates,
customTemplateCount,
search,
- includeDecisionModels = false,
}: {
customTemplates: CustomEvaluatorTemplate[];
customTemplateCount: number;
search: string;
- includeDecisionModels?: boolean;
}): {
navigationItems: GalleryNavigationItem[];
sections: GallerySection[];
@@ -44,10 +42,7 @@ export function prepareEvaluatorGallery({
const filteredCustom = customTemplates.filter((template) =>
matches(template.name, template.description),
);
- const managedCatalog = managedEvaluatorTemplateService.list({
- search,
- includeDecisionModels,
- });
+ const managedCatalog = managedEvaluatorTemplateService.list({ search });
const managedByCategory = new Map(
managedCatalog.categories.map((category) => {
const templatesInCategory = managedCatalog.templates.filter((template) =>
diff --git a/web/src/features/evals/v2/server/evaluators/decisionModelAccess.ts b/web/src/features/evals/v2/server/evaluators/decisionModelAccess.ts
deleted file mode 100644
index 57696cbd66..0000000000
--- a/web/src/features/evals/v2/server/evaluators/decisionModelAccess.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import { EvalTemplateType, ForbiddenError } from "@langfuse/shared";
-import type { Session } from "next-auth";
-
-import { env } from "@/src/env.mjs";
-import { getContextualFeatureFlags } from "@/src/features/feature-flags/utils";
-
-/**
- * Server-side counterpart of the `decisionModelEvaluators` flag check in the
- * UI: the experimental type is only accepted for admins, deployments with
- * experimental features enabled, or users/organizations carrying the flag.
- */
-function isDecisionModelEvaluatorEnabled(params: {
- session: Session;
- projectId: string;
-}): boolean {
- if (env.LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES === "true") return true;
- if (params.session.user?.admin === true) return true;
- return (
- getContextualFeatureFlags(params.session.user, {
- projectId: params.projectId,
- })?.decisionModelEvaluators === true
- );
-}
-
-export function assertDecisionModelEvaluatorAllowed(params: {
- session: Session;
- projectId: string;
- definition: { type: EvalTemplateType };
-}) {
- if (params.definition.type !== EvalTemplateType.DECISION_MODEL) return;
- if (isDecisionModelEvaluatorEnabled(params)) return;
- throw new ForbiddenError(
- "Decision-model evaluators are experimental and not enabled for this project.",
- );
-}
diff --git a/web/src/features/evals/v2/server/evaluators/evaluatorRouter.ts b/web/src/features/evals/v2/server/evaluators/evaluatorRouter.ts
index 3de11041a6..9c5e014eea 100644
--- a/web/src/features/evals/v2/server/evaluators/evaluatorRouter.ts
+++ b/web/src/features/evals/v2/server/evaluators/evaluatorRouter.ts
@@ -20,7 +20,6 @@ import {
SuggestEvaluatorTextSchema,
UpdateEvaluatorSchema,
} from "./evaluatorTypes";
-import { assertDecisionModelEvaluatorAllowed } from "./decisionModelAccess";
import { EvaluatorService } from "./evaluatorService";
import { ruleRouter } from "../rules/ruleRouter";
import { getActivationCostEstimates } from "./activationCostService";
@@ -199,11 +198,6 @@ export const evaluatorRouter = createTRPCRouter({
projectId: ctx.session.projectId,
scope: "evaluator:CUD",
});
- assertDecisionModelEvaluatorAllowed({
- session: ctx.session,
- projectId: ctx.session.projectId,
- definition: input.definition,
- });
const service = serviceForContext(ctx);
return service.create(
{ ...input, projectId: ctx.session.projectId },
@@ -219,11 +213,6 @@ export const evaluatorRouter = createTRPCRouter({
projectId: ctx.session.projectId,
scope: "evaluator:CUD",
});
- assertDecisionModelEvaluatorAllowed({
- session: ctx.session,
- projectId: ctx.session.projectId,
- definition: input.definition,
- });
const service = serviceForContext(ctx);
return service.update(
{ ...input, projectId: ctx.session.projectId },
@@ -282,11 +271,6 @@ export const evaluatorRouter = createTRPCRouter({
projectId: ctx.session.projectId,
scope: "evaluator:CUD",
});
- assertDecisionModelEvaluatorAllowed({
- session: ctx.session,
- projectId: ctx.session.projectId,
- definition: input.definition,
- });
return serviceForContext(ctx).testEvaluator({
orgId: ctx.session.orgId,
projectId: ctx.session.projectId,
diff --git a/web/src/features/feature-flags/available-flags.ts b/web/src/features/feature-flags/available-flags.ts
index 6a301d08a6..321d6b3c86 100644
--- a/web/src/features/feature-flags/available-flags.ts
+++ b/web/src/features/feature-flags/available-flags.ts
@@ -65,5 +65,4 @@ export const availableFlags = [
"v4BetaToggleVisible",
"observationEvals",
"experimentsV4Enabled",
- "decisionModelEvaluators",
] as const;
diff --git a/web/src/features/feature-flags/types.ts b/web/src/features/feature-flags/types.ts
index 75872e0912..0676770b8a 100644
--- a/web/src/features/feature-flags/types.ts
+++ b/web/src/features/feature-flags/types.ts
@@ -4,11 +4,7 @@ export type Flag = (typeof availableFlags)[number];
export type Flags = {
[key in Exclude<
Flag,
- | "modernSession"
- | "aiGateway"
- | "sessionTimeline"
- | "traceMessages"
- | "decisionModelEvaluators"
+ "modernSession" | "aiGateway" | "sessionTimeline" | "traceMessages"
>]: boolean;
} & {
// Optional while older sessions and test fixtures roll across new flags.
@@ -16,5 +12,4 @@ export type Flags = {
aiGateway?: boolean;
sessionTimeline?: boolean;
traceMessages?: boolean;
- decisionModelEvaluators?: boolean;
};
diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
index 2dfef98c97..f62e7b5a35 100644
--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
@@ -13,7 +13,6 @@ import {
VERTEXAI_USE_DEFAULT_CREDENTIALS,
isDecisionModelAdapter,
} from "@langfuse/shared";
-import useIsFeatureEnabled from "@/src/features/feature-flags/hooks/useIsFeatureEnabled";
import { ChevronDown, PlusIcon, TrashIcon } from "lucide-react";
import { z } from "zod";
import { Button } from "@/src/components/ui/button";
@@ -281,16 +280,7 @@ export function CreateLLMApiKeyForm({
},
{ enabled: Boolean(projectId) },
);
- const isDecisionModelEnabled = useIsFeatureEnabled(
- "decisionModelEvaluators",
- { projectId },
- );
- const adapterOptions = Object.values(LLMAdapter).filter(
- (adapter) =>
- isDecisionModelEnabled ||
- !isDecisionModelAdapter(adapter) ||
- existingKey?.adapter === adapter,
- );
+ const adapterOptions = Object.values(LLMAdapter);
const mutCreateLlmApiKey = api.llmApiKey.create.useMutation({
onSuccess: () => utils.llmApiKey.invalidate(),