v0.3
v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js
LangChain.js
@langchain/openai
OpenAIClient
Completions
Class Completions
Hierarchy
APIResource
Completions
Index
Constructors
constructor
Methods
create
Constructors
constructor
new
Completions
(
client
)
:
OpenAIClient
.
Completions
Parameters
client
:
OpenAI
Returns
OpenAIClient
.
Completions
Methods
create
create
(
body
,
options
?
)
:
APIPromise
<
Completion
>
Creates a completion for the provided prompt and parameters.
Parameters
body
:
OpenAIClient
.
Completions
.
CompletionCreateParamsNonStreaming
Optional
options
:
RequestOptions
<
unknown
>
Returns
APIPromise
<
Completion
>
create
(
body
,
options
?
)
:
APIPromise
<
Stream
<
Completion
>
>
Parameters
body
:
OpenAIClient
.
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
Methods
create
LangChain.js
Loading...
Creates a completion for the provided prompt and parameters.