go.bigb.es/claudio

v0.7.0
Doc Versions Source

Types

T type ListResponse

src
type ListResponse struct {
	Object string  `json:"object"`
	Data   []Model `json:"data"`
}

ListResponse is the response from the /v1/models endpoint.

T type Model

src
type Model struct {
	ID      string `json:"id"`
	Object  string `json:"object"`
	Created int64  `json:"created"`
	OwnedBy string `json:"owned_by"`
}

Model represents an LM Studio model from the /v1/models endpoint.

f func ListModels

src
func ListModels(baseURL string) ([]Model, error)

ListModels fetches available models from the LM Studio server.

m func (Model) DisplayName

src
func (m Model) DisplayName() string

DisplayName returns a human-friendly name for the model.

Source Files