Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
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.";
}
}