mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-25 19:56:13 +01:00
feat: Implement moderation middleware with configurable categories and actions
This commit is contained in:
parent
30db34e737
commit
e8dffd35f3
3 changed files with 213 additions and 35 deletions
1
api/cache/getLogStores.js
vendored
1
api/cache/getLogStores.js
vendored
|
|
@ -78,6 +78,7 @@ const namespaces = {
|
|||
[ViolationTypes.ILLEGAL_MODEL_REQUEST]: createViolationInstance(
|
||||
ViolationTypes.ILLEGAL_MODEL_REQUEST,
|
||||
),
|
||||
[ViolationTypes.MODERATION]: createViolationInstance(ViolationTypes.MODERATION),
|
||||
logins: createViolationInstance('logins'),
|
||||
[CacheKeys.ABORT_KEYS]: abortKeys,
|
||||
[CacheKeys.TOKEN_CONFIG]: tokenConfig,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue