Show HN: langdiff – Stream valid JSON from LLMs with type-safe callbacks
maitrouble
3 days ago
7
1
Ever had json.loads() explode halfway through an LLM stream? langdiff fixes that with a schema + callback approach.

Define your schema → attach callbacks → push streaming tokens → get structured events immediately.

https://github.com/globalaiplatform/langdiff