Package com.embabel.common.ai.model
Interface PricingModel
-
- All Implemented Interfaces:
public interface PricingModelRepresents a pricing model for an LLM. The models are usually per token pricing, differentiating between input and output tokens, or all you can eat, where there's an hourly rate for the model running whether or not it is in use. See OpenAI pricing
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPricingModel.Companion
-
Method Summary
Modifier and Type Method Description abstract DoubleusdPerInputToken()abstract DoubleusdPerOutputToken()DoublecostOf(Integer inputTokens, Integer outputTokens)DoublecostOf(Usage usage)-
-
Method Detail
-
usdPerInputToken
abstract Double usdPerInputToken()
-
usdPerOutputToken
abstract Double usdPerOutputToken()
-
-
-
-