Skip to content

Commit 1b2ff96

Browse files
updated commented variables sample values in code snippets
1 parent 8894a90 commit 1b2ff96

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

model-armor/snippets/sanitizeModelResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function main(projectId, locationId, templateId, modelResponse) {
3030
// const projectId = process.env.PROJECT_ID || 'your-project-id';
3131
// const locationId = process.env.LOCATION_ID || 'us-central1';
3232
// const templateId = process.env.TEMPLATE_ID || 'template-id';
33-
// const modelResponse = '';
33+
// const modelResponse = 'unsanitized model output';
3434
const {ModelArmorClient} = require('@google-cloud/modelarmor').v1;
3535

3636
const client = new ModelArmorClient({

model-armor/snippets/sanitizeModelResponseWithUserPrompt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ async function main(
3737
// const projectId = process.env.PROJECT_ID || 'your-project-id';
3838
// const locationId = process.env.LOCATION_ID || 'us-central1';
3939
// const templateId = process.env.TEMPLATE_ID || 'template-id';
40-
// const modelResponse = '';
41-
// const userPrompt = '';
40+
// const modelResponse = 'unsanitized model output';
41+
// const userPrompt = 'unsafe user prompt';
4242
const {ModelArmorClient} = require('@google-cloud/modelarmor').v1;
4343

4444
const client = new ModelArmorClient({

model-armor/snippets/sanitizeUserPrompt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function main(projectId, locationId, templateId, userPrompt) {
3030
// const projectId = process.env.PROJECT_ID || 'your-project-id';
3131
// const locationId = process.env.LOCATION_ID || 'us-central1';
3232
// const templateId = process.env.TEMPLATE_ID || 'template-id';
33-
// const userPrompt = '';
33+
// const userPrompt = 'unsafe user prompt';
3434
const {ModelArmorClient} = require('@google-cloud/modelarmor').v1;
3535

3636
const client = new ModelArmorClient({

0 commit comments

Comments
 (0)