Documentation
¶
Index ¶
- func BasisProvider(provider string) string
- func CanonicalProvider(provider string) string
- func LoadBuiltIn() (modeldb.Catalog, error)
- func LoadMergedBuiltIn() (modeldb.Catalog, error)
- func LookupServices(provider string) []string
- func MustLoadBuiltIn() modeldb.Catalog
- func NewDockerMRRuntimeSource(client *http.Client, baseURL string) modeldb.Source
- func NewOllamaRuntimeSource(client *http.Client, baseURL string) modeldb.Source
- func Resolve(ctx context.Context, sources ...modeldb.RegisteredSource) (modeldb.ResolvedCatalog, error)
- func ResolveMerged(ctx context.Context, sources ...modeldb.RegisteredSource) (modeldb.ResolvedCatalog, error)
- func ResolveWithBase(ctx context.Context, base modeldb.Catalog, sources ...modeldb.RegisteredSource) (modeldb.ResolvedCatalog, error)
- type ResolvedSnapshot
- type Snapshot
- type WireModelIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasisProvider ¶
BasisProvider returns the creator/basis service used when a provider exposes another service's models without owning the canonical offering metadata. For example, the codex provider offers OpenAI-created models but remains a distinct service/provider for routing and capability overlay purposes.
func CanonicalProvider ¶
func LoadBuiltIn ¶
func LoadMergedBuiltIn ¶
LoadMergedBuiltIn remains as a compatibility shim for callers that still use the old overlay entry point. modeldb v0.11.x now carries the built-in OpenAI/Codex/OpenRouter exposure data we need, so there is no extra merge phase left in llm.
func LookupServices ¶
LookupServices returns catalog service IDs to consult for a configured provider/service. The exact service is checked first; if a basis service is different, it is appended as a fallback instead of collapsing them.
func MustLoadBuiltIn ¶
func NewOllamaRuntimeSource ¶
func Resolve ¶
func Resolve(ctx context.Context, sources ...modeldb.RegisteredSource) (modeldb.ResolvedCatalog, error)
func ResolveMerged ¶
func ResolveMerged(ctx context.Context, sources ...modeldb.RegisteredSource) (modeldb.ResolvedCatalog, error)
func ResolveWithBase ¶
func ResolveWithBase(ctx context.Context, base modeldb.Catalog, sources ...modeldb.RegisteredSource) (modeldb.ResolvedCatalog, error)
Types ¶
type ResolvedSnapshot ¶
type ResolvedSnapshot = modeldb.ResolvedCatalog
type WireModelIdentity ¶
type WireModelIdentity struct {
Creator string
Family string
Series string
Version string
Variant string
}
func ResolveWireModelIdentity ¶
func ResolveWireModelIdentity(provider, model string) (WireModelIdentity, bool)
func ResolveWireModelIdentityFromCatalog ¶
func ResolveWireModelIdentityFromCatalog(cat modeldb.Catalog, provider, model string) (WireModelIdentity, bool)