The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Package models resolves a model id to its context window and its token prices.
WHY THIS EXISTS. A host that only needs a model's window or price used to import proxyapp,
because the resolver lived in proxyapp's facade. proxyapp is also the proxy's composition root,
and Go links whole packages. So that host linked proxy, tenant, dash and every component just to
read one window. Cortex's context-guru plugin did exactly that (issue #1251).
This package is the resolver half of that facade, on its own. Like proxyapp, it is a FACADE:
aliases and thin wrappers over internal/modelinfo, adding no behaviour and moving no code.
proxyapp re-exports these names, so a host built on proxyapp still compiles.
The LiteLLM gateway client is in models/litellm, because it makes a network call and this package
does not (see internal/boundary).
It must never import proxy or proxyapp. TestModelsLinksNoProxy fails if it does.
ExactWindow reports a model's window and whether the answer is exact rather than inferred. The
distinction matters: a fraction-of-window trigger computed from a guessed window is a guess.