'use client' import type { LLMPolicy } from '../types' interface PoliciesTableProps { policies: LLMPolicy[] onEdit: (p: LLMPolicy) => void } export function PoliciesTable({ policies, onEdit }: PoliciesTableProps) { if (policies.length === 0) { return (
Keine LLM-Policies vorhanden
| Name | Erlaubte Kategorien | Blockierte Kategorien | PII Redaction | Max Tokens | Aktionen |
|---|---|---|---|---|---|
| {policy.name} |
{(policy.allowed_data_categories || []).map((c, i) => (
{c}
))}
|
{(policy.blocked_data_categories || []).map((c, i) => (
{c}
))}
|
{policy.require_pii_redaction ? policy.pii_redaction_level : 'aus'} | {policy.max_tokens_per_request?.toLocaleString()} |