PRODUCTION SCENARIO
A Generative AI Engineer runs a support assistant on a Foundation Model APIs chat endpoint that receives customer messages containing phone numbers and card numbers. Compliance requires the assistant to keep answering while the model never sees the raw values.
Which AI Gateway setting meets this requirement?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: PII detection with the Mask action applied to requests and responses
AI Gateway PII detection offers Block or Mask for data such as names, addresses, and credit card numbers found in endpoint requests and responses. Mask lets the request proceed with the values hidden, Block rejects it outright, Safety targets harmful content, and a prompt instruction still exposes raw values to the model.