langchain.js
Preparing search index...
@langchain/openai
DallEAPIWrapper
Class DallEAPIWrapper
A tool for generating images with Open AIs Dall-E 2 or 3 API.
Hierarchy (
View Summary
)
BaseDynamicToolInput
DallEAPIWrapper
Index
Constructors
constructor
Properties
client
description
name
tool
Name
Methods
lc_
name
Constructors
constructor
new
DallEAPIWrapper
(
fields
?:
DallEAPIWrapperParams
)
:
DallEAPIWrapper
Parameters
Optional
fields
:
DallEAPIWrapperParams
Returns
DallEAPIWrapper
Properties
Protected
client
client
:
OpenAI
description
description
:
string
= "A wrapper around OpenAI DALL-E API. Useful for when you need to generate images from a text description. Input should be an image description."
name
name
:
string
= "dalle_api_wrapper"
Static
Readonly
tool
Name
toolName
:
"dalle_api_wrapper"
Methods
Static
lc_
name
lc_name
()
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
client
description
name
tool
Name
Methods
lc_
name
langchain.js
Loading...
A tool for generating images with Open AIs Dall-E 2 or 3 API.