vllm

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dimension

func Dimension(model string) (int, error)

Dimension returns the dimension of the model.

Types

type Client

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

Client wraps OpenAI client.

func NewClient

func NewClient(url string, log logr.Logger) *Client

NewClient creates a new OpenAI client.

func (*Client) Embed

func (c *Client) Embed(ctx context.Context, modelName, prompt string) ([]float32, error)

Embed creates embeddings.

func (*Client) PullModel

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

PullModel pulls a model.

Jump to

Keyboard shortcuts

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