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 ¶
LoadLoRAAdapter loads a LoRA adapter from the given path.
func (*HTTPClient) UnloadLoRAAdapter ¶
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.
Click to show internal directories.
Click to hide internal directories.