v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.13
LangChain.js
langchain-openai
OpenAIClient
Chat
Completions
Class Completions
Hierarchy
APIResource
Completions
Index
Constructors
constructor
Methods
create
Constructors
constructor
new
Completions
(
client
)
:
OpenAIClient
.
Chat
.
Completions
Parameters
client
:
OpenAI
Returns
OpenAIClient
.
Chat
.
Completions
Methods
create
create
(
body
,
options
?
)
:
APIPromise
<
ChatCompletion
>
Creates a model response for the given chat conversation.
Parameters
body
:
OpenAIClient
.
Chat
.
Completions
.
ChatCompletionCreateParamsNonStreaming
Optional
options
:
RequestOptions
<
unknown
>
Returns
APIPromise
<
ChatCompletion
>
create
(
body
,
options
?
)
:
APIPromise
<
Stream
<
ChatCompletionChunk
>
>
Parameters
body
:
OpenAIClient
.
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
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
LangChain.js - v0.2.13
Loading...
Creates a model response for the given chat conversation.