ol.llx.ai.impl.models
platforms: clj, cljs
calculate-cost
clj
platforms: clj
(calculate-cost model usage)
Calculates usage cost totals for model rates and usage token counts.
Returns a map with :input, :output, :cache-read, :cache-write, and :total.
cljs
platforms: cljs
(calculate-cost model usage)
Calculates usage cost totals for model rates and usage token counts.
Returns a map with :input, :output, :cache-read, :cache-write, and :total.
supports-xhigh?
clj
platforms: clj
(supports-xhigh? model)
Returns true when model supports xhigh reasoning effort.
Supports explicit capability flags and known model/API compatibility rules.
cljs
platforms: cljs
(supports-xhigh? model)
Returns true when model supports xhigh reasoning effort.
Supports explicit capability flags and known model/API compatibility rules.