client

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 8 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
}

Client is the client for the Docker Model Runner

func NewClient

func NewClient(baseURL string) *Client

NewClient creates a new client for the Docker Model Runner

func (*Client) InspectModel

func (c *Client) InspectModel(ctx context.Context, namespace string, name string) (*types.ModelResponse, error)

InspectModel returns a model that is already pulled using the Docker Model Runner format. The name of the model is in the format of <name>:<tag>. The namespace and name defines Models as OCI Artifacts in Docker Hub, therefore the namespace is the organization and the name is the repository. E.g. "ai/smollm2:360M-Q4_K_M". See Models_as_OCI_Artifacts for more information.

func (*Client) ListModels

func (c *Client) ListModels(ctx context.Context) ([]types.ModelResponse, error)

ListModels lists all models that are already pulled using the Docker Model Runner format.

func (*Client) OpenAIEndpoint

func (c *Client) OpenAIEndpoint() string

OpenAIEndpoint returns the OpenAI endpoint for the Docker Model Runner

func (*Client) PullModel

func (c *Client) PullModel(ctx context.Context, fullyQualifiedModelName string) error

PullModel creates a model in the Docker Model Runner, by pulling the model from Docker Hub.

Jump to

Keyboard shortcuts

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