
    h              	       P    d dl mZmZ ddl erd dlmZmZ dedddd	d
ee   fdZ	y)    )TYPE_CHECKINGOptional   )*)	ModelInfoUsagecustom_llm_providerusager   
model_infor   returnc                     | dk(  rddl m}  |||      S | dk(  rddlm}  |||      S | j	                  d      rddlm}  |||      S y	)
z
    Get the cost for a web search request for a given model.

    Args:
        custom_llm_provider: The custom LLM provider.
        usage: The usage object.
        model_info: The model info.
    geminir   )cost_per_web_search_request)r
   r   	anthropic)!get_cost_for_anthropic_web_search)r   r
   	vertex_aiN)gemini.cost_calculatorr   anthropic.cost_calculationr   
startswith vertex_ai.gemini.cost_calculator)r	   r
   r   r   r   %cost_per_web_search_request_vertex_ais         Q/var/www/Befach/backend/env/lib/python3.12/site-packages/litellm/llms/__init__.pyget_cost_for_web_search_requestr   	   sY     h&G*:NN		+Q0JeTT		'	'	4	
 55ZXX    N)
typingr   r    litellm.types.utilsr   r   strfloatr    r   r   <module>r!      s:    * 4%,:Ee_r   