v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.14
LangChain.js
langchain-openai
OpenAIClient
Moderations
Class Moderations
Hierarchy
APIResource
Moderations
Index
Constructors
constructor
Methods
create
Constructors
constructor
new
Moderations
(
client
)
:
Moderations
Parameters
client
:
OpenAI
Returns
Moderations
Methods
create
create
(
body
,
options
?
)
:
APIPromise
<
ModerationCreateResponse
>
Classifies if text is potentially harmful.
Parameters
body
:
ModerationCreateParams
Optional
options
:
RequestOptions
<
unknown
>
Returns
APIPromise
<
ModerationCreateResponse
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
LangChain.js - v0.2.14
Loading...
Classifies if text is potentially harmful.