litellm/tests/unit/search
Claude 40c99aac92
feat(cost): price search calls in Rust
The pricing core gains a search handler: queries at the first table's
input_cost_per_query (a configured per-query price ahead of the catalog
row), Parallel AI requests at their mode's row plus the results past the
included ones, and discount and margin when the query asks for them, as
the search branch of completion_cost always did. Model Catalog marks a
row whose tiered_pricing prices by requested results, which answers
NotPorted and keeps main's tier pick in Python.

search_provider_cost_per_query and the completion_cost search branch go
through the new search_cost adapter. parallel_ai_search_cost and its
request rate lookup are deleted, the request and result counting stays
in the Parallel AI module. Parity fixtures were captured once from main's
Python.
2026-11-19 18:01:26 +00:00
..
__init__.py
test_main.py feat(cost): price search calls in Rust 2026-11-19 18:01:26 +00:00