Repository navigation
fix(pricing): Kimi K3 Bedrock rates + cost fallback for omp/pi via LiteLLM - #192
Merged
aarora79 merged 1 commit intoSep 24, 2026
Merged
Conversation
…n agent reports no cost Two fixes so omp-via-LiteLLM runs record a real dollar cost instead of null: 1. Add moonshotai.kimi-k3 to bedrock_pricing.py ($3.00/$15.00 per 1M input/output, Global CRIS Standard tier, sourced from the Bedrock pricing page on 2026-09-23). 2. In _metrics_from_result, when the agent reports no cost (omp and pi report $0 through the LiteLLM proxy because it doesn't relay Bedrock pricing), fall back to bedrock_pricing.cost_usd -- the same lookup the codex path already uses. Models not in the table still get null, so vLLM runs (hardware-derived cost) are unaffected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
moonshotai.kimi-k3tobedrock_pricing.pywith Global CRIS Standard tier rates ($3.00/$15.00 per 1M input/output, $0.30/$3.75 cache read/write), sourced from the Bedrock pricing page on 2026-09-23._metrics_from_resultnow falls back tobedrock_pricing.cost_usd-- the same lookup the codex path already uses. Models not in the table still getnull, so vLLM runs (hardware-derived cost) are unaffected.Test plan
uv run python -m unittest tests.test_bedrock_pricingpasses (62 tests)_normalize("moonshotai.kimi-k3")resolves to the price table keytotal_cost_usd is None