Preparing search index...
The search index is not available
@skeet-framework/ai
@skeet-framework/ai
openai
OpenAI
Chat
Completions
Class Completions
Hierarchy
APIResource
Completions
Index
Constructors
constructor
Properties
_client
Methods
create
Constructors
constructor
new
Completions
(
client
)
:
openai
.
OpenAI
.
Chat
.
Completions
Parameters
client
:
openai
.
OpenAI
Returns
openai
.
OpenAI
.
Chat
.
Completions
Properties
Protected
_client
_client
:
openai
.
OpenAI
Methods
create
create
(
body
,
options
?
)
:
APIPromise
<
ChatCompletion
>
Creates a model response for the given chat conversation.
Parameters
body
:
openai
.
OpenAI
.
Chat
.
Completions
.
ChatCompletionCreateParamsNonStreaming
Optional
options
:
RequestOptions
<
unknown
>
Returns
APIPromise
<
ChatCompletion
>
create
(
body
,
options
?
)
:
APIPromise
<
Stream
<
ChatCompletionChunk
>
>
Parameters
body
:
openai
.
OpenAI
.
Chat
.
Completions
.
ChatCompletionCreateParamsStreaming
Optional
options
:
RequestOptions
<
unknown
>
Returns
APIPromise
<
Stream
<
ChatCompletionChunk
>
>
create
(
body
,
options
?
)
:
APIPromise
<
ChatCompletion
|
Stream
<
ChatCompletionChunk
>
>
Parameters
body
:
ChatCompletionCreateParamsBase
Optional
options
:
RequestOptions
<
unknown
>
Returns
APIPromise
<
ChatCompletion
|
Stream
<
ChatCompletionChunk
>
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_client
create
@skeet-framework/ai
ChatCompletion
ChatCompletionChunk
openai
InstanceType
NamingEnum
SkeetAiMode
OpenAI
SkeetAI
Stream
VertexAI
AIPrompt
ChatCompletion
ChatCompletionChunk
SkeetAIOptions
AIExample
AIType
AiInstance
ChatCompletionMessageParam
Example
InputOutput
OpenAIMessage
Loading...
Generated using
TypeDoc
Creates a model response for the given chat conversation.