vllm

package
v1.46.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

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

HTTPClient is a struct that represents an HTTP client.

func NewHTTPClient

func NewHTTPClient(addr string) *HTTPClient

NewHTTPClient creates a new HTTP client with the given address.

func (*HTTPClient) ListModels

func (c *HTTPClient) ListModels(ctx context.Context) (*ListModelsResponse, error)

ListModels lists all models.

func (*HTTPClient) LoadLoRAAdapter

func (c *HTTPClient) LoadLoRAAdapter(ctx context.Context, loraName, loraPath string) (int, error)

LoadLoRAAdapter loads a LoRA adapter from the given path.

func (*HTTPClient) UnloadLoRAAdapter

func (c *HTTPClient) UnloadLoRAAdapter(ctx context.Context, loraName string) (int, error)

UnloadLoRAAdapter unnloads a LoRA adapter from the given path.

type ListModelsResponse

type ListModelsResponse struct {
	Data []*Model `json:"data"`
}

ListModelsResponse is a struct that represents the response from the list models endpoint.

type Model

type Model struct {
	ID string `json:"id"`
	// Parent is set to a base model ID if the model is a LoRA adapter..
	Parent *string `json:"parent"`
}

Model is a struct that represents a model. This mostly follows the OpenAI API format but havs extra field like "parent".

Jump to

Keyboard shortcuts

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