Documentation
¶
Overview ¶
Package model re-exports internal/model's LLM model-metadata registry (context windows, pricing, capability flags such as vision support) for external consumers that need to query or extend it directly - e.g. pkg/pdfsmart/vision.Config.Registry, which uses this to gate the vision-LLM fallback behind the configured model actually supporting image content blocks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Global = internalmodel.Global
Global is the package-level registry populated at startup by internal/providers - the same instance internal/pdfsmart/vision.Config defaults to when Registry is left nil.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
type Capabilities = internalmodel.Capabilities
Capabilities describes what a specific model variant can do.
type ContextWindow ¶
type ContextWindow = internalmodel.ContextWindow
ContextWindow describes the token budget for a model.
type Metadata ¶
type Metadata = internalmodel.Metadata
Metadata aggregates all model-level metadata.
type Pricing ¶
type Pricing = internalmodel.Pricing
Pricing holds per-token costs in USD per 1 million tokens (MTok). Zero values mean pricing is unknown or not applicable.
type Registry ¶
type Registry = internalmodel.Registry
Registry is a lookup table from (provider, modelID) → Metadata. It is safe for concurrent reads; writes happen only at init time via Register or the package-level Global variable.