Skip to content

Downloads the latest model pricing data from GitHub and saves it to the local cache. Call this to refresh the snapshot-backed estimates used by token_usage() and related functions. These are published list prices for supported providers, not actual charges billed by the API. The cache is stored in the directory returned by tools::R_user_dir("ellmer", which = "cache").

Usage

models_update_prices()

Value

Invisibly returns TRUE if the cache was updated, or FALSE if the cached data was already up to date. Throws an error if the download fails.