本地配置与新增附件审查插件: file_content_review.lua + config.yaml
This commit is contained in:
1 parent
53782d79c3
commit
e1f944f16d
2 files changed
+168
-3
No files matched your search
+10
-3
@@ -20,16 +20,23 @@ llm:
|
||||
file: models/guard_model
|
||||
load: {device: cpu}
|
||||
limits:
|
||||
max_input_tokens: 4096
|
||||
max_input_tokens: 8192
|
||||
max_new_tokens: 32
|
||||
timeout_seconds: 30
|
||||
queue_size: 8
|
||||
|
||||
plugins:
|
||||
- id: file-read-log
|
||||
file: plugins/file_read_log.lua
|
||||
- id: file-content-review
|
||||
file: plugins/file_content_review.lua
|
||||
match:
|
||||
paths: [/upload]
|
||||
llm:
|
||||
allow: [guard_model]
|
||||
config:
|
||||
model: guard_model
|
||||
allowed_extensions: [txt, doc, docx]
|
||||
max_review_bytes: 8192
|
||||
max_files: 8
|
||||
- id: network-review
|
||||
enabled: false
|
||||
file: plugins/network_review.lua
|
||||
|
||||
Reference in new issue
Block a user