粘贴检测
This commit is contained in:
@@ -57,7 +57,7 @@ def realtime_response(config: dict, realtime_action: dict) -> None:
|
||||
# emit('paste_detected', paste_data)
|
||||
|
||||
#判断一下,如果粘帖内容过多就发送,后期可加入更多条件判断
|
||||
if bb.pasted_content and len(bb.pasted_content) > 300:
|
||||
if bb.pasted_content and len(bb.pasted_content) > 250:
|
||||
chatmanager.ase_client.send("pasted_detected_in", {"file_path": file_path, "content": bb.pasted_content})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user