Repository navigation
Conversation
|
|
|
| "max_tokens": 8192, | ||
| "max_input_tokens": 262144, | ||
| "max_output_tokens": 8192, |
There was a problem hiding this comment.
Output limit is too low The existing
moonshot/kimi-k2.5 record allows 262,144 output tokens, but this new record sets the limit to 8,192. For a request using the bare model name, get_max_tokens returns 8,192, and budget estimation caps its output reservation there even if the request allows more. That can understate the request’s potential spend.
| "max_tokens": 8192, | |
| "max_input_tokens": 262144, | |
| "max_output_tokens": 8192, | |
| "max_tokens": 262144, | |
| "max_input_tokens": 262144, | |
| "max_output_tokens": 262144, |
Knowledge Base Used:
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| "kimi-k2.5": { | ||
| "max_tokens": 8192, | ||
| "max_input_tokens": 262144, | ||
| "max_output_tokens": 8192, | ||
| "input_cost_per_token": 0.0000006, | ||
| "output_cost_per_token": 0.000003, | ||
| "litellm_provider": "moonshot", | ||
| "mode": "chat" | ||
| }, |
There was a problem hiding this comment.
Model metadata is incomplete The existing
moonshot/kimi-k2.5 record includes a cached-input rate and flags for reasoning, vision, and tool use, but this bare-name record omits them. A caller looking up kimi-k2.5 receives the incomplete record, so capability checks can treat supported features as unavailable and cached-input pricing can differ depending on which model name is used.
Knowledge Base Used: Provider adapters and capabilities
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Registry disposition is recorded in #48188. The bare model entry lacks verified historical prices and a general routing definition |
TLDR
Problem this solves:
kimi-k2.5is missing from the global cost map.kimi-k2.5usage.How it solves it:
kimi-k2.5inmodel_prices_and_context_window.json.User Flow
Before: a developer calling
kimi-k2.5sees zero token cost/v1/chat/completionswith"model": "kimi-k2.5"./ui/?page=logsand see the request logged at $0.After: the proxy calculates and logs exact token costs
/v1/chat/completionswith"model": "kimi-k2.5"./ui/?page=logsand see the request at non-zero spend.Relevant issues
Closes #43840
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Type
🆕 New Feature
Final Attestation