litellm/tests/unit/llms/voyage
Claude c787e3d5e6
feat(cost): price rerank, vector store search and OCR calls in Rust
The pricing core gains a handler per kind: rerank (search units at the
query rate, total tokens for the Jina AI, Scaleway and Voyage configs),
vector store search (one query on the row the store's config names) and
OCR (credits, pages and annotation pages, online and batch, with the
deployment's tables read ahead of the catalog row). calculate now bills
the output and feature meters the core declared but ignored: returned
images by size, generated seconds by resolution, video seconds, videos,
billable units, input seconds and input pixels.

Python keeps rerank_cost, vector_store_search_cost, ocr_cost and
ocr_batch_cost as thin adapters over NativeModelCostMap.price_units and
maps an unpriced call to the legacy 0.0 or ValueError. The rerank and
vector store configs' calculate_*_cost methods are deleted. Parity
fixtures were captured once from main's Python.
2026-11-19 18:01:26 +00:00
..
embedding fix(llms): sanitize trailing slashes in provider get_complete_url (#42887) 2026-10-15 02:59:46 -07:00
rerank feat(cost): price rerank, vector store search and OCR calls in Rust 2026-11-19 18:01:26 +00:00
__init__.py test: add __init__.py to every tests/unit directory this migration touches 2026-09-20 11:52:09 +00:00
test_common_utils.py fix(voyage): honor VOYAGE_API_BASE for embeddings (#52645) 2026-11-18 14:38:57 -08:00
test_voyage_contextual_embedding.py test: migrate phase 14 wave 2 provider tests to tests/unit 2026-09-20 11:01:40 +00:00
test_voyage_multimodal_embedding.py feat(voyage): rebrand to VoyageAI by MongoDB and route MongoDB keys to ai.mongodb.com (#41812) 2026-10-08 13:12:47 -07:00