model

package
v1.94.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "model",
	Short: "Manage AI models",
}

Cmd is the root command for model subcommands.

Functions

This section is empty.

Types

type ModelCreateCmd

type ModelCreateCmd struct {
	exocmd.CliCommandSettings `cli-cmd:"-"`

	Name             string      `cli-arg:"#" cli-usage:"NAME (e.g. swiss-ai/Apertus-8B-Instruct-2509)"`
	HuggingfaceToken string      `cli-flag:"huggingface-token" cli-usage:"Huggingface token if required by the model"`
	Zone             v3.ZoneName `cli-short:"z" cli-usage:"zone"`
	// contains filtered or unexported fields
}

func (*ModelCreateCmd) CmdAliases

func (c *ModelCreateCmd) CmdAliases() []string

func (*ModelCreateCmd) CmdLong

func (c *ModelCreateCmd) CmdLong() string

func (*ModelCreateCmd) CmdPreRun

func (c *ModelCreateCmd) CmdPreRun(cmd *cobra.Command, args []string) error

func (*ModelCreateCmd) CmdRun

func (c *ModelCreateCmd) CmdRun(_ *cobra.Command, _ []string) error

func (*ModelCreateCmd) CmdShort

func (c *ModelCreateCmd) CmdShort() string

type ModelDeleteCmd

type ModelDeleteCmd struct {
	exocmd.CliCommandSettings `cli-cmd:"-"`

	Models []string    `cli-arg:"#" cli-usage:"ID or NAME..."`
	Force  bool        `cli-short:"f" cli-usage:"don't prompt for confirmation"`
	Zone   v3.ZoneName `cli-short:"z" cli-usage:"zone"`
	// contains filtered or unexported fields
}

func (*ModelDeleteCmd) CmdAliases

func (c *ModelDeleteCmd) CmdAliases() []string

func (*ModelDeleteCmd) CmdLong

func (c *ModelDeleteCmd) CmdLong() string

func (*ModelDeleteCmd) CmdPreRun

func (c *ModelDeleteCmd) CmdPreRun(cmd *cobra.Command, args []string) error

func (*ModelDeleteCmd) CmdRun

func (c *ModelDeleteCmd) CmdRun(_ *cobra.Command, _ []string) error

func (*ModelDeleteCmd) CmdShort

func (c *ModelDeleteCmd) CmdShort() string

type ModelListCmd

type ModelListCmd struct {
	exocmd.CliCommandSettings `cli-cmd:"-"`

	Zone v3.ZoneName `cli-short:"z" cli-usage:"zone"`
	// contains filtered or unexported fields
}

func (*ModelListCmd) CmdAliases

func (c *ModelListCmd) CmdAliases() []string

func (*ModelListCmd) CmdLong

func (c *ModelListCmd) CmdLong() string

func (*ModelListCmd) CmdPreRun

func (c *ModelListCmd) CmdPreRun(cmd *cobra.Command, args []string) error

func (*ModelListCmd) CmdRun

func (c *ModelListCmd) CmdRun(_ *cobra.Command, _ []string) error

func (*ModelListCmd) CmdShort

func (c *ModelListCmd) CmdShort() string

type ModelListItemOutput

type ModelListItemOutput struct {
	ID        v3.UUID                         `json:"id"`
	Name      string                          `json:"name"`
	Zone      v3.ZoneName                     `json:"zone"`
	State     v3.ListModelsResponseEntryState `json:"state" outputLabel:"Status"`
	ModelSize string                          `json:"model_size" outputLabel:"Size"`
}

type ModelListOutput

type ModelListOutput []ModelListItemOutput

func (*ModelListOutput) ToJSON

func (o *ModelListOutput) ToJSON()

func (*ModelListOutput) ToTable

func (o *ModelListOutput) ToTable()

func (*ModelListOutput) ToText

func (o *ModelListOutput) ToText()

type ModelShowCmd

type ModelShowCmd struct {
	exocmd.CliCommandSettings `cli-cmd:"-"`

	Model string      `cli-arg:"#" cli-usage:"ID or NAME"`
	Zone  v3.ZoneName `cli-short:"z" cli-usage:"zone"`
	// contains filtered or unexported fields
}

func (*ModelShowCmd) CmdAliases

func (c *ModelShowCmd) CmdAliases() []string

func (*ModelShowCmd) CmdLong

func (c *ModelShowCmd) CmdLong() string

func (*ModelShowCmd) CmdPreRun

func (c *ModelShowCmd) CmdPreRun(cmd *cobra.Command, args []string) error

func (*ModelShowCmd) CmdRun

func (c *ModelShowCmd) CmdRun(_ *cobra.Command, _ []string) error

func (*ModelShowCmd) CmdShort

func (c *ModelShowCmd) CmdShort() string

type ModelShowOutput

type ModelShowOutput struct {
	ID        v3.UUID                  `json:"id"`
	Name      string                   `json:"name"`
	State     v3.GetModelResponseState `json:"state" outputLabel:"Status"`
	ModelSize string                   `json:"model_size" outputLabel:"Size"`
	CreatedAt string                   `json:"created_at"`
	UpdatedAt string                   `json:"updated_at"`
}

func (*ModelShowOutput) ToJSON

func (o *ModelShowOutput) ToJSON()

func (*ModelShowOutput) ToTable

func (o *ModelShowOutput) ToTable()

func (*ModelShowOutput) ToText

func (o *ModelShowOutput) ToText()

Jump to

Keyboard shortcuts

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