diff --git a/client/src/hooks/SSE/useResumableSSE.ts b/client/src/hooks/SSE/useResumableSSE.ts index 0815f2c281..c1bfe8700e 100644 --- a/client/src/hooks/SSE/useResumableSSE.ts +++ b/client/src/hooks/SSE/useResumableSSE.ts @@ -702,6 +702,8 @@ export default function useResumableSSE( titleHandler(pendingEvent); } else if (pendingEvent.event != null) { stepHandler(pendingEvent, resumeSubmission); + } else if (pendingEvent.type === 'pii_matches') { + piiMatchesHandler(pendingEvent); } else if (pendingEvent.type != null) { contentHandler({ data: pendingEvent, submission: resumeSubmission }); } diff --git a/librechat.example.yaml b/librechat.example.yaml index 4825a3bf93..6f8a318ccc 100644 --- a/librechat.example.yaml +++ b/librechat.example.yaml @@ -786,10 +786,12 @@ endpoints: # onMatch: warn # # # Starter patterns ported from danny-avila/LibreChat#13561's winston log -# # redaction. Omit the field to enable all 5; pass an empty list to enable -# # none and rely entirely on customPatterns. -# # Available ids: sk_prefix, bearer_header, api_key_header, api_key_query, key_query -# starterPatterns: [sk_prefix, bearer_header, api_key_header, api_key_query, key_query] +# # redaction. Omit the field to enable the low-false-positive default set +# # (sk_prefix, bearer_header, api_key_header). Pass an explicit list to +# # subset the default set or to opt in to the higher-false-positive query +# # patterns (api_key_query, key_query); pass an empty list to disable +# # starters entirely and rely on customPatterns alone. +# starterPatterns: [sk_prefix, bearer_header, api_key_header] # # # Operator-defined regex additions. Each entry needs a stable id (used in # # logs and the SSE payload), a human-readable label (shown to users in the