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 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 LocalModelPackageItem ¶
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 OllamaConfig ¶
type OllamaConfig struct {
Address string `json:"address"`
}
type SimpleItem ¶
Click to show internal directories.
Click to hide internal directories.