Skip to content

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

409 B
Raw Blame
import type { GatewayIngestionSettings } from "@/src/features/ai-gateway/components/GatewaySetupPage/types/gatewaySetup";

export function isIngestionSettingsValid(settings: GatewayIngestionSettings) {
  if (settings.ingestionMode === "NONE") return true;
  if (settings.projectTarget === "new") {
    return settings.newProjectName.trim().length > 0;
  }
  return settings.existingProjectId !== undefined;
}