🪢 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
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 } } }
: {};