Package org.mockserver.llm.cost
Class LlmPricing.PricingEntry
java.lang.Object
org.mockserver.llm.cost.LlmPricing.PricingEntry
- Enclosing class:
- LlmPricing
Input/output list price in USD per million tokens.
-
Constructor Summary
ConstructorsConstructorDescriptionPricingEntry(double inputPerMillion, double outputPerMillion) PricingEntry(double inputPerMillion, double outputPerMillion, boolean approximate) -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublebooleanTrue when these rates are an admitted placeholder / approximation (e.g. gpt-5* mapped to the nearest known tier) rather than a verified provider list price.
-
Constructor Details
-
PricingEntry
public PricingEntry(double inputPerMillion, double outputPerMillion) -
PricingEntry
public PricingEntry(double inputPerMillion, double outputPerMillion, boolean approximate)
-
-
Method Details
-
getInputPerMillion
public double getInputPerMillion() -
getOutputPerMillion
public double getOutputPerMillion() -
isApproximate
public boolean isApproximate()True when these rates are an admitted placeholder / approximation (e.g. gpt-5* mapped to the nearest known tier) rather than a verified provider list price. Any cost derived from an approximate rate must be presented as an estimate, not fact.
-