Skip to content
O

Openai Partial Stream

Turn a stream of token into a parsable JSON object as soon as possible

by st3w4rFree

#5795in AI
0In stores

Description

openai-partial-stream is a JavaScript and TypeScript library that turns a stream of tokens from an AI model into a parsable JSON object as s…

Highlights

  • Parses partial JSON from streaming AI responses
  • Emits entities as soon as each one completes
  • Four streaming modes
  • Works with server-sent events
  • Installed from npm

Ratings & Reviews

No ratings yet

Be the first to rate Openai Partial Stream.

People also visit

P

Partial Json Parser JS

Parse partial JSON generated by LLM

AI
Launch
P

Partial Json Parser

Parse partial JSON generated by LLM

AI
Launch
R

River

the sane way to work with ai agent streams

AI
Launch
J

Jsonriver

A simple, fast streaming JSON parser built on standards

Entertainment
Launch
S

Scoopika

Bring AI agents to your application in minutes

AI
Launch
C

Chat JS

Production-ready AI chat. Start here and make it your own. Formerly Sparka AI

AI
Launch

Openai Partial Stream FAQ

What does openai-partial-stream do?

It parses incomplete JSON from a streaming AI response so each object can be shown as soon as it is complete.

How do I install it?

Install it from npm with npm i openai-partial-stream and follow the usage guide on the site.

What modes are there?

All-Together, One-By-One, Progressive and Real-time, which send data at different levels of detail.

Which AI service does it work with?

The site's example uses OpenAI function calling, and the library parses the streamed JSON from that response.

What are the best Openai Partial Stream alternatives?

Popular alternatives to Openai Partial Stream include Partial Json Parser JS, Partial Json Parser and River. See all Openai Partial Stream alternatives

Developer Stuff

Badges