Skip to content

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

442 B
Raw Blame
import type { Prisma } from "@langfuse/shared/src/db";

import {
  GATEWAY_ROLE,
  SEPARATE_GATEWAY_API_KEYS,
} from "@/src/features/ai-gateway/fns/separateGatewayApiKeys";

/** excludeGatewayApiKeys filters gateway-role keys out of the organization API key settings list. */
export const excludeGatewayApiKeys: Prisma.ApiKeyWhereInput =
  SEPARATE_GATEWAY_API_KEYS
    ? { roleAssignments: { none: { systemRole: GATEWAY_ROLE } } }
    : {};