mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test_openai_responses_api_web_search_cost_tracking
This commit is contained in:
parent
81033dc8c9
commit
f74640cb99
1 changed files with 3 additions and 2 deletions
|
|
@ -86,8 +86,9 @@ class StandardBuiltInToolCostTracking:
|
|||
return search_context_pricing.get("search_context_size_medium", 0.0)
|
||||
elif web_search_options.get("search_context_size", None) == "high":
|
||||
return search_context_pricing.get("search_context_size_high", 0.0)
|
||||
else:
|
||||
return 0.0
|
||||
return StandardBuiltInToolCostTracking.get_default_cost_for_web_search(
|
||||
model_info
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def get_default_cost_for_web_search(model_info: ModelInfo) -> float:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue