净化切分提示中的节点标识
复用提示文本清洗逻辑,阻断控制字符与反引号注入
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ impl SeparationNode {
|
||||
pub fn as_prompt(&self) -> String {
|
||||
format!(
|
||||
"node_id={} note: {}",
|
||||
self.id.as_str(),
|
||||
super::sanitize_prompt_text(self.id.as_str()),
|
||||
self.note.as_prompt()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user