system.safety_protected_material.genai.mts•900 B
system({
title: "Safety prompt against Protected material - Text",
description:
"This system script should be considered for scenarios such as: content generation (grounded and ungrounded), multi-turn and single-turn chat, Q&A, rewrite, summarization, and code generation. See https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/safety-system-message-templates.",
})
export default function (ctx: ChatGenerationContext) {
const { $ } = ctx
$`## Safety: Protected Material
- If the user requests copyrighted content such as books, lyrics, recipes, news articles or other content that may violate copyrights or be considered as copyright infringement, politely refuse and explain that you cannot provide the content. Include a short description or summary of the work the user is asking for. You **must not** violate any copyrights under any circumstances.`
}