litellm/litellm-rust/crates/cost/tests
Yujong Lee 63cc59930c
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
test(cost): pin strip_unregistered_leading_segments region handling against Python
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 01:22:53 -07:00
..
generate_python_fixtures.py refactor(cost): dispatch providers and call types through mirrored enums 2026-09-23 17:20:00 -07:00
generate_python_reference.py feat(rust): add standalone cost calculator (#42604) 2026-09-22 22:50:28 +00:00
non_token.rs test(cost): run every test through rstest 2026-09-23 18:19:04 -07:00
pricing_allocations.rs test(cost): run every test through rstest 2026-09-23 18:19:04 -07:00
pricing_grammar.rs test(cost): run every test through rstest 2026-09-23 18:19:04 -07:00
python_a2a_mcp_cost.rs fix(cost): match Python service-tier suffixes and enforce mirrors markers 2026-09-23 16:39:31 -07:00
python_anthropic_cost.rs fix(cost): resolve built-in tool pricing and model keys the way Python does 2026-09-23 19:00:37 -07:00
python_anthropic_usage.rs fix(cost): read Anthropic thinking and cache-creation detail counts as pydantic ints 2026-09-23 20:07:46 -07:00
python_azure_ai_cost.rs refactor(cost): form cost_calculator.rs as the public token entry surface 2026-09-23 17:43:37 -07:00
python_azure_ai_image_cost.rs fix(cost): price Azure AI pixel images through default_image_cost_calculator 2026-09-23 20:16:30 -07:00
python_background_cost_polling.rs fix(cost): match Python service-tier suffixes and enforce mirrors markers 2026-09-23 16:39:31 -07:00
python_base_rate_selection.rs fix(cost): read threshold keys the way Python splits them 2026-09-23 19:41:21 -07:00
python_bedrock_common_utils.rs feat(cost): port get_model_info key resolution and get_llm_provider inference 2026-09-23 22:43:03 -07:00
python_bedrock_image_cost.rs test(cost): pin every provider model list and rule edge case against Python 2026-09-23 23:16:44 -07:00
python_billed_token_rates.rs fix(cost): map Together models to their size category once, before cost_per_token 2026-09-23 19:31:49 -07:00
python_call_dispatch.rs fix(cost): map Together models to their size category once, before cost_per_token 2026-09-23 19:31:49 -07:00
python_completion_cost.rs fix(cost): read discount and margin config the way Python applies it 2026-09-23 20:01:05 -07:00
python_completion_input.rs feat(cost): port get_model_info key resolution and get_llm_provider inference 2026-09-23 22:43:03 -07:00
python_completion_response.rs feat(cost): port get_model_info key resolution and get_llm_provider inference 2026-09-23 22:43:03 -07:00
python_cost_breakdown.rs fix(cost): match Python service-tier suffixes and enforce mirrors markers 2026-09-23 16:39:31 -07:00
python_cost_calculator.rs fix(cost): read batch rates with Python's _batch_rate conversion 2026-09-23 20:19:38 -07:00
python_custom_pricing.rs test(cost): cover custom pricing guards and the Fireworks cache default coercion 2026-09-23 18:32:01 -07:00
python_dashscope_cost.rs test(cost): restore the provider tests dropped when cost_per_token left the catalog 2026-09-23 18:14:52 -07:00
python_fal_ai_image_cost.rs feat(cost): port get_model_info key resolution and get_llm_provider inference 2026-09-23 22:43:03 -07:00
python_fireworks_cost.rs fix(cost): match Python's Vertex character routing and Fireworks size parsing 2026-09-23 19:16:12 -07:00
python_fixture_replay.rs test(cost): run every test through rstest 2026-09-23 18:19:04 -07:00
python_fixtures.json refactor(cost): dispatch providers and call types through mirrored enums 2026-09-23 17:20:00 -07:00
python_gemini_cost.rs fix(cost): match Python service-tier suffixes and enforce mirrors markers 2026-09-23 16:39:31 -07:00
python_generic_cost.rs fix(cost): match Python service-tier suffixes and enforce mirrors markers 2026-09-23 16:39:31 -07:00
python_generic_input.rs fix(cost): coerce off-peak rates, uplift multipliers, and media durations like Python 2026-09-23 19:39:54 -07:00
python_generic_output.rs fix(cost): match Python service-tier suffixes and enforce mirrors markers 2026-09-23 16:39:31 -07:00
python_generic_provider_routes.rs test(cost): restore the provider tests dropped when cost_per_token left the catalog 2026-09-23 18:14:52 -07:00
python_generic_reference.rs test(cost): run every test through rstest 2026-09-23 18:19:04 -07:00
python_generic_usage.rs fix(cost): parse chat and Responses usage the way Python's Usage does 2026-09-23 19:38:44 -07:00
python_groq_cost.rs fix(cost): match Python service-tier suffixes and enforce mirrors markers 2026-09-23 16:39:31 -07:00
python_guardrail_cost.rs fix(cost): validate guardrail entries with pydantic's lax float and bool 2026-09-23 20:06:40 -07:00
python_image_cost_router.rs fix(cost): count and size images in the router the way Python resolves them 2026-09-23 18:24:45 -07:00
python_image_response_cost.rs refactor(cost): move catalog methods into the modules that mirror their Python functions 2026-09-23 18:09:27 -07:00
python_interactions_usage.rs fix(cost): match Python service-tier suffixes and enforce mirrors markers 2026-09-23 16:39:31 -07:00
python_model_info.rs test(cost): kill the surviving mutants in model lookup and provider inference 2026-09-24 00:19:40 -07:00
python_model_lookup.rs feat(cost): port get_model_info key resolution and get_llm_provider inference 2026-09-23 22:43:03 -07:00
python_model_selection.rs test(cost): pin strip_unregistered_leading_segments region handling against Python 2026-09-24 01:22:53 -07:00
python_off_peak.rs fix(cost): coerce off-peak rates, uplift multipliers, and media durations like Python 2026-09-23 19:39:54 -07:00
python_openai_cost.rs refactor(cost): convert provider rates through python-compat's float() and int() 2026-09-23 19:53:10 -07:00
python_openai_image_cost.rs fix(cost): count and size images in the router the way Python resolves them 2026-09-23 18:24:45 -07:00
python_per_second.rs test(cost): restore the provider tests dropped when cost_per_token left the catalog 2026-09-23 18:14:52 -07:00
python_perplexity_cost.rs test(cost): restore the provider tests dropped when cost_per_token left the catalog 2026-09-23 18:14:52 -07:00
python_pricing_pinning.rs test(cost): run every test through rstest 2026-09-23 18:19:04 -07:00
python_prompt_caching_savings.rs refactor(cost): move catalog methods into the modules that mirror their Python functions 2026-09-23 18:09:27 -07:00
python_provider_cache.rs test(cost): cover custom pricing guards and the Fireworks cache default coercion 2026-09-23 18:32:01 -07:00
python_provider_routes.rs fix(cost): pass each provider only the pricing flags Python forwards 2026-09-23 19:13:23 -07:00
python_ptu_pricing.rs test(cost): pin PTU team id, count, rate, and start coercion against Python 2026-09-23 18:33:48 -07:00
python_realtime_cost.rs refactor(cost): move catalog methods into the modules that mirror their Python functions 2026-09-23 18:09:27 -07:00
python_reference.tsv feat(rust): add standalone cost calculator (#42604) 2026-09-22 22:50:28 +00:00
python_regional_uplift.rs fix(cost): apply regional uplifts one at a time like generic_cost_per_token 2026-09-23 20:11:32 -07:00
python_responses_usage.rs fix(cost): parse chat and Responses usage the way Python's Usage does 2026-09-23 19:38:44 -07:00
python_retrieval_cost.rs refactor(cost): derive enum names with strum and errors with thiserror 2026-09-23 18:13:19 -07:00
python_search_cost.rs fix(cost): compare search result tiers as Python numbers 2026-09-23 20:07:08 -07:00
python_speech_cost.rs fix(cost): read Lyria speech prices from the vertex_ai key before model lookup 2026-09-23 19:32:16 -07:00
python_tiered_pricing.rs refactor(cost): convert provider rates through python-compat's float() and int() 2026-09-23 19:53:10 -07:00
python_together_cost.rs fix(cost): map Together models to their size category once, before cost_per_token 2026-09-23 19:31:49 -07:00
python_tool_call_cost_tracking.rs fix(cost): match Python service-tier suffixes and enforce mirrors markers 2026-09-23 16:39:31 -07:00
python_tool_cost_dispatch.rs fix(cost): resolve built-in tool pricing and model keys the way Python does 2026-09-23 19:00:37 -07:00
python_transcription_usage.rs fix(cost): match Python service-tier suffixes and enforce mirrors markers 2026-09-23 16:39:31 -07:00
python_usage_dispatch.rs fix(cost): parse chat and Responses usage the way Python's Usage does 2026-09-23 19:38:44 -07:00
python_vertex_cost.rs fix(cost): match Python's Vertex character routing and Fireworks size parsing 2026-09-23 19:16:12 -07:00
python_wire_contract.rs test(cost): drop a wire contract line that only existed for coverage 2026-09-23 18:30:13 -07:00
python_xai_cost.rs refactor(cost): convert provider rates through python-compat's float() and int() 2026-09-23 19:53:10 -07:00
python_zero_cost_diagnostic.rs feat(cost): port get_model_info key resolution and get_llm_provider inference 2026-09-23 22:43:03 -07:00