modelcatalog

package
v0.40.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasisProvider

func BasisProvider(provider string) string

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 CanonicalProvider(provider string) string

func LoadBuiltIn

func LoadBuiltIn() (modeldb.Catalog, error)

func LoadMergedBuiltIn

func LoadMergedBuiltIn() (modeldb.Catalog, error)

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

func LookupServices(provider string) []string

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 MustLoadBuiltIn() modeldb.Catalog

func NewDockerMRRuntimeSource

func NewDockerMRRuntimeSource(client *http.Client, baseURL string) modeldb.Source

func NewOllamaRuntimeSource

func NewOllamaRuntimeSource(client *http.Client, baseURL string) modeldb.Source

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 Snapshot

type Snapshot = modeldb.Catalog

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL