Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

638 B
Raw Blame
import { config } from "../config";
export function isSelfHosted(): boolean {
  return config.USE_DB_AUTHENTICATION !== true;
}

export function getErrorContactMessage(errorId?: string): string {
  if (isSelfHosted()) {
    return errorId
      ? `An error occurred. Please check your logs for more details. Error ID: ${errorId}`
      : "An error occurred. Please check your logs for more details.";
  } else {
    return errorId
      ? `An unexpected error occurred. Please contact [email protected] for help. Your exception ID is ${errorId}`
      : "An unexpected error occurred. Please contact [email protected] for help.";
  }
}