Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelManager ¶ added in v0.249.0
type ModelManager interface { CreateNewModelOfGGUF(modelName string, spec *ollama.ModelSpec) error DownloadAndCreateNewModel(ctx context.Context, modelName string, resp *mv1.GetBaseModelPathResponse) error UpdateModelTemplateToLatest(modelname string) error }
ModelManager is an interface for managing models.
type S ¶
type S struct {
// contains filtered or unexported fields
}
S is a syncer.
func New ¶
func New( mm ModelManager, s3Client s3Client, miClient modelClient, ) (*S, error)
New creates a syncer..
func (*S) ListInProgressModels ¶ added in v0.219.0
ListInProgressModels lists all models that are in progress of registration.x
func (*S) ListSyncedModelIDs ¶ added in v0.88.0
ListSyncedModelIDs lists all models that have been synced.
Click to show internal directories.
Click to hide internal directories.