replicate

package
v0.0.0-...-d6b5ae6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Replicate

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

func NewReplicate

func NewReplicate(token, version string, opts ...replicate.ClientOption) (*Replicate, error)

func (*Replicate) CreateFileFromBytes

func (r *Replicate) CreateFileFromBytes(ctx context.Context, data []byte, options *replicate.CreateFileOptions) (*replicate.File, error)

func (*Replicate) CreatePrediction

func (r *Replicate) CreatePrediction(ctx context.Context, input replicate.PredictionInput, webhook *replicate.Webhook, stream bool) (*replicate.Prediction, error)

func (*Replicate) CreatePredictionWithModel

func (r *Replicate) CreatePredictionWithModel(ctx context.Context, modelOwner string, modelName string, input replicate.PredictionInput, webhook *replicate.Webhook, stream bool) (*replicate.Prediction, error)

func (*Replicate) DeleteFile

func (r *Replicate) DeleteFile(ctx context.Context, fileID string) error

func (*Replicate) DownloadFromID

func (r *Replicate) DownloadFromID(id, dstPath string, fileEntry int) error

func (*Replicate) GetOutputFromID

func (r *Replicate) GetOutputFromID(id string) (any, error)

func (*Replicate) Run

Jump to

Keyboard shortcuts

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