modelsyncer

package
v0.93.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S

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

S is a syncer.

func New

func New(
	om ollamaManager,
	s3Client s3Client,
	miClient modelInternalClient,
) *S

New creates a syncer..

func (*S) DeleteModel added in v0.91.0

func (s *S) DeleteModel(ctx context.Context, modelID string) error

DeleteModel deletes a model.

func (*S) ListSyncedModelIDs added in v0.88.0

func (s *S) ListSyncedModelIDs(ctx context.Context) []string

ListSyncedModelIDs lists all models that have been synced.

func (*S) PullModel added in v0.56.0

func (s *S) PullModel(ctx context.Context, modelID string) error

PullModel downloads and registers a model from model manager.

Jump to

Keyboard shortcuts

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