ai_local_dto

package
v1.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalModelStateNormal         LocalModelState = "normal"
	LocalModelStateDisable        LocalModelState = "disabled"
	LocalModelStateDeployingError LocalModelState = "deploying_error"
	LocalModelStateError          LocalModelState = "error"
	LocalModelStateDeploying      LocalModelState = "deploying"

	DeployStateDownload          DeployState = "download"
	DeployStateDeploy            DeployState = "deploy"
	DeployStateInitializing      DeployState = "initializing"
	DeployStateFinish            DeployState = "finish"
	DeployStateDownloadError     DeployState = "download error"
	DeployStateDeployError       DeployState = "deploy error"
	DeployStateInitializingError DeployState = "initializing error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelDeploy

type CancelDeploy struct {
	Model string `json:"model"`
}

type DeployInput

type DeployInput struct {
	Model   string `json:"model"`
	Service string `json:"service"`
	Team    string `json:"team"`
}

type DeployState

type DeployState string

func FromDeployState

func FromDeployState(state int) DeployState

func (DeployState) Int

func (d DeployState) Int() int

func (DeployState) String

func (d DeployState) String() string

type LocalModelItem

type LocalModelItem struct {
	Id         string          `json:"id"`
	Name       string          `json:"name"`
	State      LocalModelState `json:"state"`
	APICount   int64           `json:"api_count"`
	Provider   string          `json:"provider"`
	UpdateTime auto.TimeLabel  `json:"update_time"`
	CanDelete  bool            `json:"can_delete"`
}

type LocalModelPackageItem

type LocalModelPackageItem struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	Size      string `json:"size"`
	IsPopular bool   `json:"is_popular"`
}

type LocalModelState

type LocalModelState string

func FromLocalModelState

func FromLocalModelState(state int) LocalModelState

func (LocalModelState) Int

func (l LocalModelState) Int() int

func (LocalModelState) String

func (l LocalModelState) String() string

type ModelInfo

type ModelInfo struct {
	Current     int64  `json:"current"`
	Total       int64  `json:"total"`
	LastMessage string `json:"last_message"`
}

type OllamaConfig

type OllamaConfig struct {
	Address string `json:"address"`
}

type SimpleItem

type SimpleItem struct {
	Id            string `json:"id"`
	Name          string `json:"name"`
	DefaultConfig string `json:"default_config"`
}

type Update

type Update struct {
	Disable bool `json:"disable"`
}

Jump to

Keyboard shortcuts

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