models

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpTransport *http.Client) *Client

func (*Client) GetByID

func (c *Client) GetByID(id string) (*Model, error)

func (*Client) GetByName

func (c *Client) GetByName(name string) (*Model, error)

func (*Client) List

func (c *Client) List() ([]Model, error)

type Model

type Model struct {
	ID            string                 `json:"id"`
	Name          string                 `json:"name"`
	Args          map[string]interface{} `json:"args"`
	Alias         string                 `json:"alias"`
	ImageName     string                 `json:"image_name,omitempty"`
	InferenceCost float32                `json:"inference_cost,omitempty"`
	IsAsync       bool                   `json:"is_async,omitempty"`
}

Jump to

Keyboard shortcuts

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