litellm/tests/unit/search
Claude 604e8b57c9
fix(cost): reproduce main when Rust declines a Claude cost_per_token or a tiered search
The Anthropic and Bedrock cost_per_token fallbacks for a call Rust leaves
to Python called generic_cost_per_token alone, so they dropped the geo and
speed uplifts, and Bedrock billed an unreadable geo value with no uplift
where main raised and moved on to the next candidate. They now run main's
own body. cost_per_token also stops sending the reported web search count
to Rust, since it never bills the search fee and a row without a search
price made Rust decline the whole call.

The search kind read a row's flat query rate ahead of its tiered_pricing,
while main reads the tiers first, so a row listing both now answers
NotPorted and keeps main's tier pick.
2026-11-18 10:48:15 +00:00
..
__init__.py fix(cost): price AgentCore web search at $7 per 1,000 queries (#46571) 2026-10-14 18:30:39 -07:00
test_main.py fix(cost): reproduce main when Rust declines a Claude cost_per_token or a tiered search 2026-11-18 10:48:15 +00:00