manager

package
v0.228.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type M

type M interface {
	// Run starts llm service.
	Run() error
	// CreateNewModel creates a new model with the given name and spec.
	CreateNewModel(modelName string, spec *ModelSpec) error
	// WaitForReady waits for the llm service to be ready.
	WaitForReady() error
	// DeleteModel deletes the model.
	DeleteModel(ctx context.Context, modelName string) error

	UpdateModelTemplateToLatest(modelname string) error

	IsReady() (bool, string)
}

M manages llm service.

type ModelSpec

type ModelSpec struct {
	From        string
	AdapterPath string
}

ModelSpec is the specification for a new model.

Jump to

Keyboard shortcuts

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