Documentation
¶
Index ¶
- type DallE
- func (d *DallE) AsFile(path string) *DallE
- func (d *DallE) AsImage() *DallE
- func (d *DallE) AsURL() *DallE
- func (d *DallE) Transform(ctx context.Context, input string) (any, error)
- func (d *DallE) WithClient(client *openai.Client) *DallE
- func (d *DallE) WithImageSize(imageSize DallEImageSize) *DallE
- type DallEImageFormat
- type DallEImageOutput
- type DallEImageSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DallE ¶
type DallE struct {
// contains filtered or unexported fields
}
func (*DallE) WithClient ¶
func (*DallE) WithImageSize ¶
func (d *DallE) WithImageSize(imageSize DallEImageSize) *DallE
type DallEImageFormat ¶
type DallEImageFormat string
const ( DallEImageFormatURL DallEImageFormat = "url" DallEImageFormatFile DallEImageFormat = "file" DallEImageFormatImage DallEImageFormat = "image" )
type DallEImageOutput ¶
type DallEImageOutput any
type DallEImageSize ¶
type DallEImageSize string
const ( DallEImageSize256 DallEImageSize = openai.CreateImageSize256x256 DallEImageSize512 DallEImageSize = openai.CreateImageSize512x512 DallEImageSize1024 DallEImageSize = openai.CreateImageSize1024x1024 )
Click to show internal directories.
Click to hide internal directories.