Spaces:
Runtime error
Runtime error
File size: 465 Bytes
857a91b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | package models
import (
"context"
"github.com/agent-matrix/matrix-runtime/internal/hf"
)
// Inspect resolves and inspects a model identifier. Only Hugging Face
// (hf:namespace/name) identifiers are supported in the MVP.
func Inspect(ctx context.Context, model, revision, hfToken string) (*hf.Metadata, error) {
ref, err := hf.ParseRef(model, revision)
if err != nil {
return nil, err
}
client := hf.NewClient(hfToken)
return client.Inspect(ctx, ref)
}
|