dalle

package
v0.0.0-...-5c6b341 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateImageResponseFormatURL     = "url"
	CreateImageResponseFormatB64JSON = "b64_json"
)

Variables

This section is empty.

Functions

func Generations

func Generations(content, format string) (string, error)

func GenerationsWithConfig

func GenerationsWithConfig(content, format string, config *config.Configuration) (string, error)

Types

type DEData

type DEData struct {
	Url     string `json:"url"`
	B64Json string `json:"b64_json"`
}

type DEError

type DEError struct {
	Message string `json:"message"`
}

type DERequest

type DERequest struct {
	Prompt         string `json:"prompt"`
	N              int    `json:"n"`
	Size           string `json:"size"`
	ResponseFormat string `json:"response_format"`
	User           string `json:"user"`
}

type DEResponse

type DEResponse struct {
	Created int64    `json:"created"`
	Data    []DEData `json:"data"`
	Error   DEError  `json:"error"`
}

Jump to

Keyboard shortcuts

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