Documentation ¶
Index ¶
- Variables
- func New(client *discord.Client, channelID string, debug bool, replicateToken string) (ai.Client, error)
- type Client
- func (c *Client) Concurrency() int
- func (c *Client) Imagine(ctx context.Context, prompt string) (*ai.Preview, error)
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Upscale(ctx context.Context, preview *ai.Preview, index int) (string, error)
- func (c *Client) Variation(ctx context.Context, preview *ai.Preview, index int) (*ai.Preview, error)
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrActionRequired = errors.New("action required to continue")
View Source
var ErrBannedPrompt = errors.New("banned prompt")
View Source
var ErrCompleteTask = errors.New("please complete the task")
View Source
var ErrInvalidLink = errors.New("invalid link")
View Source
var ErrInvalidParameter = errors.New("invalid parameter")
Errors parsed from messages
View Source
var ErrJobQueued = errors.New("job queued")
Other errors
View Source
var ErrPendingMod = errors.New("pending mod message")
View Source
var ErrQueueFull = errors.New("queue full")
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.