ai_local

package
v1.5.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheType

type CacheType string
const (
	CacheTypeService CacheType = "service"
)

func FromCacheType

func FromCacheType(s int) CacheType

func (CacheType) Int

func (c CacheType) Int() int

func (CacheType) String

func (c CacheType) String() string

type CreateLocalModel

type CreateLocalModel struct {
	Id       string
	Name     string
	Provider string
	State    int
}

type CreateLocalModelInstallState

type CreateLocalModelInstallState struct {
	Id       string
	Complete int64
	Total    int64
	State    int
	Msg      string
}

type CreateLocalModelPackage

type CreateLocalModelPackage struct {
	Id          string
	Name        string
	Size        string
	Hash        string
	Description string
	Version     string
	Popular     bool
}

type EditLocalModel

type EditLocalModel struct {
	State *int
}

type EditLocalModelInstallState

type EditLocalModelInstallState struct {
	Complete *int64
	Total    *int64
	State    *int
	Msg      *string
}

type EditLocalModelPackage

type EditLocalModelPackage struct {
	Size        *string
	Hash        *string
	Description *string
	Version     *string
	Popular     *bool
}

type ILocalModelCacheService

type ILocalModelCacheService interface {
	List(ctx context.Context, model string, typ CacheType) ([]*LocalModelCache, error)
	Delete(ctx context.Context, model string) error
	Save(ctx context.Context, model string, typ CacheType, target string) error
}

type LocalModel

type LocalModel struct {
	Id       string
	Name     string
	Provider string
	State    int
	CreateAt time.Time
	UpdateAt time.Time
	Creator  string
	Updater  string
}

type LocalModelCache

type LocalModelCache struct {
	Model  string
	Target string
	Type   CacheType
}

type LocalModelInstallState

type LocalModelInstallState struct {
	Id       string
	Complete int64
	Total    int64
	State    int
	Msg      string
	UpdateAt time.Time
}

type LocalModelPackage

type LocalModelPackage struct {
	Id          string
	Name        string
	Size        string
	Hash        string
	Description string
	Version     string
	IsPopular   bool
}

Jump to

Keyboard shortcuts

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