KelpyCode/ojjson
ojjson is a library designed to facilitate JSON interactions with Ollama, a large language api (LLM). It leverages the power of Zod for schema validation, ensuring that the JSON input and output conform to specified structures.
This is a library for developers who use large language models (LLMs) like Ollama or OpenAI and need to ensure their data inputs and outputs are structured correctly as JSON. You provide raw text or JSON data to the LLM, and this tool helps guarantee that the LLM's response is valid, structured JSON that matches a predefined schema. It's for software developers building applications that integrate with LLMs and rely on strict data formats.
No commits in the last 6 months. Available on npm.
Use this if you are a developer building an application that interacts with large language models and need to reliably receive structured JSON outputs, even when the LLM might initially provide malformed data.
Not ideal if you are not a software developer, or if you don't require strict JSON schema validation and automatic error correction for your LLM interactions.
Stars
12
Forks
1
Language
TypeScript
License
MIT
Category
Last pushed
Nov 07, 2024
Commits (30d)
0
Dependencies
4
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/KelpyCode/ojjson"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
ollama/ollama
Get up and running with Kimi-K2.5, GLM-5, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
jd-opensource/JDOxyGent4J
JDOxyGent4J: The Java sibling of the OxyGent ecosystem.
sammcj/gollama
Go manage your Ollama models
dext7r/ollama-api-pool
๐ Intelligent Ollama API proxy pool based on Cloudflare Workers - ๅบไบ Cloudflare Workers ็ๆบ่ฝ...
ollama4j/ollama4j-web-ui
Web UI for Ollama built in Java with Vaadin, Spring Boot and Ollama4j