MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_default_model_pricing_all_positive

Function test_default_model_pricing_all_positive

core/src/telemetry.rs:710–724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

708
709 #[test]
710 fn test_default_model_pricing_all_positive() {
711 let pricing = default_model_pricing();
712 for (model, price) in pricing.iter() {
713 assert!(
714 price.input_per_million > 0.0,
715 "Model {} has non-positive input cost",
716 model
717 );
718 assert!(
719 price.output_per_million > 0.0,
720 "Model {} has non-positive output cost",
721 model
722 );
723 }
724 }
725
726 #[test]
727 fn test_default_model_pricing_output_greater_than_input() {

Callers

nothing calls this directly

Calls 1

default_model_pricingFunction · 0.85

Tested by

no test coverage detected