Preparing search index...
The search index is not available
openai-advanced
openai-advanced
OpenAI
Completions
Class Completions
Hierarchy
APIResource
Completions
Index
Constructors
constructor
Properties
_client
Methods
create
Constructors
constructor
new
Completions
(
client
)
:
OpenAI
.
Completions
Parameters
client
:
OpenAI
Returns
OpenAI
.
Completions
Properties
Protected
_client
_client
:
OpenAI
Methods
create
create
(
body
,
options
?
)
:
APIPromise
<
Completion
>
Creates a completion for the provided prompt and parameters.
Parameters
body
:
OpenAI
.
Completions
.
CompletionCreateParamsNonStreaming
Optional
options
:
RequestOptions
<
unknown
>
Returns
APIPromise
<
Completion
>
create
(
body
,
options
?
)
:
APIPromise
<
Stream
<
Completion
>
>
Parameters
body
:
OpenAI
.
Completions
.
CompletionCreateParamsStreaming
Optional
options
:
RequestOptions
<
unknown
>
Returns
APIPromise
<
Stream
<
Completion
>
>
create
(
body
,
options
?
)
:
APIPromise
<
Completion
|
Stream
<
Completion
>
>
Parameters
body
:
CompletionCreateParamsBase
Optional
options
:
RequestOptions
<
unknown
>
Returns
APIPromise
<
Completion
|
Stream
<
Completion
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_client
Methods
create
openai-advanced
Loading...
Creates a completion for the provided prompt and parameters.