go.bigb.es/claudio

v0.7.0
Doc Versions Source

Constants

const EnterByHandCategory = "✏ Enter model ID"

EnterByHandCategory is the special category label for manual model ID entry.

Functions

f func AllModelIDs

src
func AllModelIDs(models []NIMModel) map[string]bool

AllModelIDs returns a set of all model IDs for validation.

f func CategorizeModels

src
func CategorizeModels(models []NIMModel) ([]string, map[string][]NIMModel)

CategorizeModels groups models into Featured, Popular, Newest, and Enter by hand categories.

f func GroupPopularByProvider

src
func GroupPopularByProvider(models []NIMModel) ([]string, map[string][]NIMModel)

GroupPopularByProvider groups popular models by their provider prefix.

Types

T type NIMModel

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

NIMModel represents a model available via the NVIDIA NIM API.

f func FilterChatModels

src

FilterChatModels returns only models suitable for chat/coding use.

f func ListModels

src
func ListModels(apiKey string) ([]NIMModel, error)

ListModels fetches available models from the NVIDIA NIM API.

m func (NIMModel) DisplayName

src
func (m NIMModel) DisplayName() string

DisplayName returns a human-friendly name for the model.

Source Files