Skip to content
Navigation menu
Search
Powered by Algolia
Search
Log in
Create account
DEV Community
Close
Streaming structured output Series' Articles
Back to Himanshu Sharma's Series
JSON.parse throws on every token your LLM streams. Here's a cleaner fix.
Himanshu Sharma
Himanshu Sharma
Himanshu Sharma
Follow
Oct 8
JSON.parse throws on every token your LLM streams. Here's a cleaner fix.
#
javascript
#
typescript
#
ai
#
opensource
5
reactions
Comments
Add Comment
4 min read
Moderation
Your LLM returned almost-valid JSON. Stop hand-patching it.
Himanshu Sharma
Himanshu Sharma
Himanshu Sharma
Follow
Oct 8
Your LLM returned almost-valid JSON. Stop hand-patching it.
#
javascript
#
typescript
#
ai
#
opensource
5
reactions
Comments
Add Comment
5 min read
Moderation
EventSource can't POST. Your LLM stream needs it to.
Himanshu Sharma
Himanshu Sharma
Himanshu Sharma
Follow
Oct 8
EventSource can't POST. Your LLM stream needs it to.
#
javascript
#
typescript
#
ai
#
opensource
5
reactions
Comments
Add Comment
5 min read
Moderation
Stream an LLM object into React, field by field — in one hook
Himanshu Sharma
Himanshu Sharma
Himanshu Sharma
Follow
Oct 8
Stream an LLM object into React, field by field — in one hook
#
react
#
typescript
#
ai
#
opensource
6
reactions
Comments
6
comments
2 min read
Moderation
One call, from fetch to a validated object — streaming structured output without the plumbing
Himanshu Sharma
Himanshu Sharma
Himanshu Sharma
Follow
Oct 9
One call, from fetch to a validated object — streaming structured output without the plumbing
#
api
#
javascript
#
llm
#
typescript
5
reactions
Comments
Add Comment
4 min read
Moderation
We're a place where coders share, stay up-to-date and grow their careers.
Log in
Create account