% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prices.R
\name{models_update_prices}
\alias{models_update_prices}
\title{Update cached model pricing data}
\usage{
models_update_prices()
}
\value{
Invisibly returns \code{TRUE} if the cache was updated, or \code{FALSE} if
the cached data was already up to date. Throws an error if the download
fails.
}
\description{
Downloads the latest model pricing data from GitHub and saves it to the
local cache. Call this to refresh the prices used by \code{\link[=token_usage]{token_usage()}} and
related functions with the latest pricing data. The cache is stored in the
directory returned by \code{tools::R_user_dir("ellmer", which = "cache")}.
}
