Documentation
¶
Index ¶
- type Replicate
- func (r *Replicate) CreateFileFromBytes(ctx context.Context, data []byte, options *replicate.CreateFileOptions) (*replicate.File, error)
- func (r *Replicate) CreatePrediction(ctx context.Context, input replicate.PredictionInput, ...) (*replicate.Prediction, error)
- func (r *Replicate) CreatePredictionWithModel(ctx context.Context, modelOwner string, modelName string, ...) (*replicate.Prediction, error)
- func (r *Replicate) DeleteFile(ctx context.Context, fileID string) error
- func (r *Replicate) DownloadFromID(id, dstPath string, fileEntry int) error
- func (r *Replicate) GetOutputFromID(id string) (any, error)
- func (r *Replicate) Run(ctx context.Context, input replicate.PredictionInput, ...) (replicate.PredictionOutput, error)
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 (*Replicate) CreatePrediction ¶
func (*Replicate) CreatePredictionWithModel ¶
func (*Replicate) DeleteFile ¶
func (*Replicate) DownloadFromID ¶
Click to show internal directories.
Click to hide internal directories.