fix(pricing): add kimi-k3 to the pricing fallback#709
Open
ozymandiashh wants to merge 1 commit into
Open
Conversation
kimi-k3 usage (reachable via the hermes provider) rendered $0 because the model is in neither the LiteLLM snapshot nor the fallback. Adds the official Moonshot rates: $3.00/1M input, $15.00/1M output, $0.30/1M cache read (https://platform.kimi.ai/docs/pricing/chat-k3), with a calculateCost pin.
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.
kimi-k3 usage renders $0: the model id is in neither the bundled LiteLLM snapshot nor
pricing-fallback.json(verified across all 143 kimi/moonshot keys). Observed on real data: 14 kimi-k3 calls via the hermes provider priced at $0 that reprice to $18.29 with the correct rates.Adds the official Moonshot rates to the fallback: $3.00/1M input, $15.00/1M output, $0.30/1M cache read (source: https://platform.kimi.ai/docs/pricing/chat-k3, figures verified against the live page), plus a
calculateCostpin in tests.Noted while verifying, not included:
kimi-k2.7-code(bare id, without the-highspeedsuffix that IS priced) also shows up unpriced on real data; left out pending an official figure.