Skip to content

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

328 B
Raw Blame
import { GATEWAY_CONNECTION_NAME_ERRORS } from "@/src/features/ai-gateway/constants/gatewayConnection";

const connectionNameErrorMessages = new Set<string>(
  Object.values(GATEWAY_CONNECTION_NAME_ERRORS),
);

export function isGatewayConnectionNameError(message: string) {
  return connectionNameErrorMessages.has(message);
}