Skip to main content
Home

latest

A tiny (1.18kB), tree-shakeable OpenAI client. Optionally supports response streaming in all JavaScript runtimes.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
82%
Published
5 months ago (0.0.8)
N
Chat
No documentation available
T
Chat.Output
No documentation available
T
Chat.Request
No documentation available
N
Chat.Stream
No documentation available
T
Chat.Stream.Chunk
No documentation available
T
Chat.Stream.Output
No documentation available
T
Chat.Stream.Request
No documentation available
c
Client
No documentation available
T
Completion.Output
No documentation available
T
Completion.Request
No documentation available
N
Completion.Stream
No documentation available
T
Completion.Stream.Chunk
No documentation available
T
Completion.Stream.Output
No documentation available
T
Completion.Stream.Request
No documentation available
T
Credentials

The normalized and reusable credentials object.

f
credentials

Generate normalized Credentials for reuse.

T
Input

The request body's type definition.

T
Options

The request initializtion options.

f
request

Send a HTTP request and, if 2xx, parse the JSON response as T object type.

f
stream

Send a HTTP request and, if 2xx, begin streaming the chunks of T object type.

c
Agent
No documentation available
f
agent
No documentation available
T
Options
No documentation available
T
Step
No documentation available
T
Trajectory
No documentation available

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.