Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
import type { INodePropertyOptions } from 'n8n-workflow';
|
|
|
|
export const harmCategories: INodePropertyOptions[] = [
|
|
{
|
|
value: 'HARM_CATEGORY_HARASSMENT',
|
|
name: 'HARM_CATEGORY_HARASSMENT',
|
|
description: 'Harassment content',
|
|
},
|
|
{
|
|
value: 'HARM_CATEGORY_HATE_SPEECH',
|
|
name: 'HARM_CATEGORY_HATE_SPEECH',
|
|
description: 'Hate speech and content',
|
|
},
|
|
{
|
|
value: 'HARM_CATEGORY_SEXUALLY_EXPLICIT',
|
|
name: 'HARM_CATEGORY_SEXUALLY_EXPLICIT',
|
|
description: 'Sexually explicit content',
|
|
},
|
|
{
|
|
value: 'HARM_CATEGORY_DANGEROUS_CONTENT',
|
|
name: 'HARM_CATEGORY_DANGEROUS_CONTENT',
|
|
description: 'Dangerous content',
|
|
},
|
|
];
|
|
|
|
export const harmThresholds: INodePropertyOptions[] = [
|
|
{
|
|
value: 'HARM_BLOCK_THRESHOLD_UNSPECIFIED',
|
|
name: 'HARM_BLOCK_THRESHOLD_UNSPECIFIED',
|
|
description: 'Threshold is unspecified',
|
|
},
|
|
{
|
|
value: 'BLOCK_LOW_AND_ABOVE',
|
|
name: 'BLOCK_LOW_AND_ABOVE',
|
|
description: 'Content with NEGLIGIBLE will be allowed',
|
|
},
|
|
{
|
|
value: 'BLOCK_MEDIUM_AND_ABOVE',
|
|
name: 'BLOCK_MEDIUM_AND_ABOVE',
|
|
description: 'Content with NEGLIGIBLE and LOW will be allowed',
|
|
},
|
|
{
|
|
value: 'BLOCK_ONLY_HIGH',
|
|
name: 'BLOCK_ONLY_HIGH',
|
|
description: 'Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed',
|
|
},
|
|
{
|
|
value: 'BLOCK_NONE',
|
|
name: 'BLOCK_NONE',
|
|
description: 'All content will be allowed',
|
|
},
|
|
];
|