llm_guardrail 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -14,7 +14,7 @@ function loadModel() {
14
14
  if (model && vectorizer) return { model, vectorizer };
15
15
 
16
16
  try {
17
- const modelPath = path.join(__dirname, 'model', 'model_data.json');
17
+ const modelPath = path.join(__dirname, 'model', 'prompt_injection_model.json');
18
18
  const modelData = JSON.parse(fs.readFileSync(modelPath, 'utf8'));
19
19
 
20
20
  vectorizer = new TfidfVectorizer(modelData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm_guardrail",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "A lightweight, low-latency ML-powered guardrail to stop prompt injection attacks before they reach your LLM.",
5
5
  "homepage": "https://github.com/Frank2006x/llm_Guardrails#readme",
6
6
  "bugs": {
@@ -28,7 +28,7 @@
28
28
  "index.js",
29
29
  "model/tfidf.js",
30
30
  "model/logistic_regression.js",
31
- "model/model_data.json"
31
+ "model/prompt_injection_model.json"
32
32
  ],
33
33
  "license": "ISC",
34
34
  "author": "Frank2006x",