Ë
    uPêjÅ  ã                   óZ   — d Z ddlmZ ddlmZ erddlmZ ddeddd	edz  d
ee	e	f   fd„Z
y)zS
Helper util for handling bedrock-specific cost calculation
- e.g.: prompt caching
é    )ÚTYPE_CHECKING©Úgeneric_cost_per_token)ÚUsageNÚmodelÚusager   Úservice_tierÚ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   r   r	   s      új/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/llms/bedrock/cost_calculation.pyÚcost_per_tokenr      s   € ô "ØØØ%Ø!ô	ð ó    )N)Ú__doc__Útypingr   Ú.litellm.litellm_core_utils.llm_cost_calc.utilsr   Úlitellm.types.utilsr   ÚstrÚtupleÚfloatr   © r   r   ú<module>r      sJ   ðñõ
 !å QáÝ)ñ˜#ð  gð ¸SÀ4¹Zð ÐSXÐY^Ð`eÐYeÑSfô r   