replicate

package
v0.0.0-...-b7aeced Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*Config
	// contains filtered or unexported fields
}

func New

func New(model string, options ...Option) (*Client, error)

func (*Client) Run

type Config

type Config struct {
	// contains filtered or unexported fields
}

func (*Config) Options

func (c *Config) Options() []replicate.ClientOption

type FileOutput

type FileOutput = replicate.FileOutput

type Option

type Option func(*Config)

func WithClient

func WithClient(client *http.Client) Option

func WithModel

func WithModel(model string) Option

func WithToken

func WithToken(token string) Option

type PredictionInput

type PredictionInput = replicate.PredictionInput

type PredictionOutput

type PredictionOutput = replicate.PredictionOutput

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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