transformer

package
v0.0.8-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 NewDallE

func NewDallE() *DallE

func (*DallE) AsFile

func (d *DallE) AsFile(path string) *DallE

func (*DallE) AsImage

func (d *DallE) AsImage() *DallE

func (*DallE) AsURL

func (d *DallE) AsURL() *DallE

func (*DallE) Transform

func (d *DallE) Transform(ctx context.Context, input string) (any, error)

func (*DallE) WithClient

func (d *DallE) WithClient(client *openai.Client) *DallE

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL