Preparing search index...
The search index is not available
openai-streams
openai-streams
OpenAIEdgeClient
Type alias OpenAIEdgeClient
OpenAIEdge
Client
:
(
<
T
>
(
endpoint
,
args
,
options
?
)
=>
Promise
<
ReadableStream
<
Uint8Array
>
>
)
Type declaration
<
T
>
(
endpoint
,
args
,
options
?
)
:
Promise
<
ReadableStream
<
Uint8Array
>
>
The OpenAI API client for Edge runtime.
Type Parameters
T
extends
OpenAIAPIEndpoint
Parameters
endpoint
:
T
args
:
OpenAICreateArgs
<
T
>
Optional
options
:
OpenAIOptions
Returns
Promise
<
ReadableStream
<
Uint8Array
>
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
openai-
streams
OpenAIError
Create
Chat
Completion
Request
Create
Completion
Request
Create
Edit
Request
Create
Embedding
Request
Create
Fine
Tune
Request
Create
Image
Request
OpenAIOptions
OpenAIStream
Options
OpenAIAPIEndpoint
OpenAICreate
Args
OpenAIEdge
Client
OpenAIError
Message
OpenAIError
Type
OpenAINode
Client
OpenAIStream
Stream
Mode
OpenAIAPIEndpoints
OpenAIErrors
Chat
Parser
Chat
Stream
Event
Stream
Logprobs
Parser
OpenAI
Token
Parser
Token
Stream
get
Tokens
From
Response
Generated using
TypeDoc
The OpenAI API client for Edge runtime.