Documentation
¶
Overview ¶
Package pricing calculates per-call costs without mutating catalog entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyConfigCost ¶
ApplyConfigCost overlays a config-declared price table (USD per 1M tokens) onto the catalogue entry, returning m untouched when there is no override. It never mutates m: the store caches entries shared across sessions. When the model is uncatalogued (m == nil) a minimal entry is synthesized so the call is still priced — this is the escape hatch for custom endpoints that models.dev cannot describe.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.