UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

53 lines (51 loc) 2.01 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var nsfw_exports = {}; __export(nsfw_exports, { NSFW_SYSTEM_PROMPT: () => NSFW_SYSTEM_PROMPT, createNSFWCheckFn: () => createNSFWCheckFn }); module.exports = __toCommonJS(nsfw_exports); var import_model = require("../../helpers/model"); const NSFW_SYSTEM_PROMPT = ` You are a content moderation assistant. Your task is to analyze text and determine if it contains NSFW (Not Safe For Work) content. Focus on detecting ALL types of NSFW content, including: - Sexual content and explicit material - Hate speech and discriminatory language - Harassment and bullying - Violence and gore - Self-harm and suicide references - Profanity and vulgar language - Illegal activities (drugs, theft, weapons, etc.) - Adult themes and mature content - Inappropriate workplace content - Extremist or radical content - Exploitation or abuse - Graphic medical content - Other potentially offensive or inappropriate content Flag any content that matches these criteria. `; const createNSFWCheckFn = (config) => (0, import_model.createLLMCheckFn)("nsfw", config); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { NSFW_SYSTEM_PROMPT, createNSFWCheckFn }); //# sourceMappingURL=nsfw.js.map