Documentation
¶
Overview ¶
Package modelcatalog reads public models.dev metadata. Authenticated Cloud relay catalogs have a different contract and must not be decoded here.
Index ¶
Constants ¶
View Source
const (
DefaultURL = "https://models.dev/api.json"
)
Variables ¶
View Source
var ( ErrSourceNotFound = errors.New("model catalog source not found") ErrProtocol = errors.New("unsupported model catalog protocol") )
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
ModelID string `json:"model_id"`
Name string `json:"name,omitempty"`
Type models.ModelType `json:"type"`
Config models.ModelConfig `json:"config"`
}
Model is a normalized preview/import entry, never a persisted tenant model.
Click to show internal directories.
Click to hide internal directories.