Ë
    ÷¾™hv  ã                   óR   — d Z ddlmZmZ ddlmZ erddlmZ dedddee	e	f   fd	„Z
y
)zS
Helper util for handling bedrock-specific cost calculation
- e.g.: prompt caching
é    )ÚTYPE_CHECKINGÚTuple©Úgeneric_cost_per_token)ÚUsageÚmodelÚusager   Úreturnc                 ó   — t        | |d¬«      S )z§
    Calculates the cost per token for a given model, prompt tokens, and completion tokens.

    Follows the same logic as Anthropic's cost per token calculation.
    Úbedrock)r   r	   Úcustom_llm_providerr   )r   r	   s     úa/var/www/Befach/backend/env/lib/python3.12/site-packages/litellm/llms/bedrock/cost_calculation.pyÚcost_per_tokenr      s   € ô "Ø˜5°iôð ó    N)Ú__doc__Útypingr   r   Ú.litellm.litellm_core_utils.llm_cost_calc.utilsr   Úlitellm.types.utilsr   ÚstrÚfloatr   © r   r   ú<module>r      s;   ðñ÷
 (å QáÝ)ð˜#ð  gð °%¸¸u¸Ñ2Eô r   