Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions litellm/model_prices_and_context_window_backup.json
Original file line number Diff line number Diff line change
Expand Up @@ -22126,11 +22126,11 @@
}
},
"bing_grounding/search": {
"input_cost_per_query": 0.035,
"input_cost_per_query": 0.014,
"litellm_provider": "bing_grounding",
"mode": "search",
"metadata": {
"notes": "Grounding with Bing Search (G1 SKU): $35 per 1,000 transactions. Tokens for the Foundry model deployment that runs the grounded search are billed separately on that deployment."
"notes": "Grounding with Bing Search (G1 SKU): $14 per 1,000 transactions. Tokens for the Foundry model deployment that runs the grounded search are billed separately on that deployment."
}
},
"tinyfish/search": {
Expand Down
4 changes: 2 additions & 2 deletions model_prices_and_context_window.json
Original file line number Diff line number Diff line change
Expand Up @@ -22126,11 +22126,11 @@
}
},
"bing_grounding/search": {
"input_cost_per_query": 0.035,
"input_cost_per_query": 0.014,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Existing pricing test fails

The connection-mode test loads the updated local price map, but still expects $0.035. It now receives $0.014, so its assertion fails and blocks the test suite. Update the existing runtime test alongside this price change

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated test_connection_mode_tracks_the_g1_cost to assert 0.014.

"litellm_provider": "bing_grounding",
"mode": "search",
"metadata": {
"notes": "Grounding with Bing Search (G1 SKU): $35 per 1,000 transactions. Tokens for the Foundry model deployment that runs the grounded search are billed separately on that deployment."
"notes": "Grounding with Bing Search (G1 SKU): $14 per 1,000 transactions. Tokens for the Foundry model deployment that runs the grounded search are billed separately on that deployment."
}
},
"tinyfish/search": {
Expand Down
4 changes: 3 additions & 1 deletion tests/search_tests/test_bing_grounding_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,6 @@ def test_connection_mode_tracks_the_g1_cost(self, monkeypatch: pytest.MonkeyPatc
):
response = litellm.search(query="pricing check", search_provider="bing_grounding")

assert response._hidden_params["response_cost"] == pytest.approx(0.035)
# Microsoft Grounding with Bing Search pricing, accessed 2026-09-24:
# https://www.microsoft.com/en-us/bing/apis/grounding-pricing
assert response._hidden_params["response_cost"] == pytest.approx(0.014)
Loading