mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
* fix(hosted_vllm): calculate rerank query and token costs * refactor(cost): read rerank prices through the cached lookup with unset rates kept for every provider * fix(hosted_vllm): fall back to the rerank query price when the token price is 0 Every per-query rerank row in the cost map sets input_cost_per_token to 0.0, so a deployment copying that shape billed $0 instead of its query price * test(hosted_vllm): pin a zero cost when a token-priced rerank response has no token count * fix(hosted_vllm): bill the rerank query price when the server sends no token count * test(hosted_vllm): type the usage parameter in the no-token-count rerank test --------- Co-authored-by: TrungSherlock <trungnguyenquochn2202@gmail.com> Co-authored-by: Trungsherlock <51025542+Trungsherlock@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| chat | ||
| embedding | ||
| image_edit | ||
| responses | ||
| videos | ||
| __init__.py | ||
| test_hosted_vllm_rerank_transformation.py | ||