llm-json-guard 1.0.2 → 1.0.3
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/README.md +8 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
# Updated README.md (Final Version)
|
|
2
|
-
|
|
3
1
|
````markdown
|
|
4
2
|
# llm-json-guard
|
|
5
3
|
|
|
6
4
|
Production-safe JSON repair and schema validation for LLM outputs.
|
|
7
5
|
|
|
8
6
|
Large Language Models frequently return malformed JSON containing:
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
7
|
+
|
|
8
|
+
- Missing quotes
|
|
9
|
+
- Trailing commas
|
|
10
|
+
- Invalid tokens
|
|
11
|
+
- Broken object structures
|
|
13
12
|
|
|
14
13
|
This package provides a lightweight wrapper around a production-grade JSON repair and validation API, allowing you to sanitize and enforce schema validation in seconds.
|
|
15
14
|
|
|
@@ -28,8 +27,8 @@ npm install llm-json-guard
|
|
|
28
27
|
* Node.js 18+
|
|
29
28
|
* RapidAPI key
|
|
30
29
|
|
|
31
|
-
Get your
|
|
32
|
-
[
|
|
30
|
+
Get your RapidAPI key here:
|
|
31
|
+
[https://rapidapi.com/scotedflotsincoltd/api/llm-json-sanitizer-schema-guard](https://rapidapi.com/scotedflotsincoltd/api/llm-json-sanitizer-schema-guard)
|
|
33
32
|
|
|
34
33
|
---
|
|
35
34
|
|
|
@@ -133,5 +132,4 @@ MIT
|
|
|
133
132
|
|
|
134
133
|
````
|
|
135
134
|
|
|
136
|
-
---
|
|
137
|
-
|
|
135
|
+
---
|