inference

package
v2.65.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentMarshalerFunc added in v2.46.0

func DeploymentMarshalerFunc(i any, opt *human.MarshalOpt) (string, error)

func GetCommands

func GetCommands() *core.Commands

func GetGeneratedCommands

func GetGeneratedCommands() *core.Commands

Types

type FetchDeployments added in v2.63.0

type FetchDeployments struct{}

func (*FetchDeployments) Fetch added in v2.63.0

func (f *FetchDeployments) Fetch(
	ctx context.Context,
	region scw.Region,
	projectID string,
) ([]fetch.ResourceResult, error)

Fetch fetches all inference deployments in a given region.

func (*FetchDeployments) LocalityType added in v2.63.0

func (f *FetchDeployments) LocalityType() fetch.LocalityType

func (*FetchDeployments) Namespace added in v2.63.0

func (f *FetchDeployments) Namespace() string

func (*FetchDeployments) Resource added in v2.63.0

func (f *FetchDeployments) Resource() string

type ListServerlessModelsResponse added in v2.59.0

type ListServerlessModelsResponse struct {
	Object string  `json:"object"`
	Data   []Model `json:"data"`
}

type Model added in v2.59.0

type Model struct {
	ID      string `json:"id"`
	Object  string `json:"object"`
	Created int64  `json:"created"`
	OwnedBy string `json:"owned_by"`
}

type ModelCustom added in v2.59.0

type ModelCustom struct {
	ID               string    `json:"id"`
	CreatedAt        time.Time `json:"created_at"`
	OwnedBy          string    `json:"owned_by"`
	ConsumptionMode  string    `json:"consumption_mode"`
	InputTokenPrice  float64   `json:"input_token_price"`
	OutputTokenPrice float64   `json:"output_token_price"`
	Tasks            []string  `json:"tasks"`
	Reasoning        bool      `json:"reasoning"`
}

Jump to

Keyboard shortcuts

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