Skip to content

Add llmmend to Generative AI - #1185

Open
nightlightmare wants to merge 1 commit into
sorrycc:masterfrom
nightlightmare:add-llmmend
Open

nightlightmare wants to merge 1 commit into
sorrycc:masterfrom
nightlightmare:add-llmmend

Conversation

@nightlightmare

Copy link
Copy Markdown

Adds llmmend, a zero-dependency TypeScript library for the parsing side of LLM apps: it extracts JSON from model replies (prose, code fences, reasoning blocks), repairs common model mistakes and reports them, normalises provider streams, and chunks text by tokens. Tested against recorded provider streams; runs in Node, Bun, Deno, browsers and Workers. Docs in English, Chinese and Russian; browser playground at https://nightlightmare.github.io/llmmend/.

Disclosure: I am the author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant