Ë
    uPêj`  ã                   óN   — d Z ddl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
)zN
Helper util for handling amazon nova cost calculation
- e.g.: prompt caching
é    )ÚTYPE_CHECKING©Ú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.
    Úamazon_nova)r   r   Úcustom_llm_providerr   )r   r   s     ún/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/llms/amazon_nova/cost_calculation.pyÚcost_per_tokenr      s   € ô
 "¨°UÐP]Ô^Ð^ó    N)Ú__doc__Útypingr   Ú.litellm.litellm_core_utils.llm_cost_calc.utilsr   Úlitellm.types.utilsr   ÚstrÚtupleÚfloatr   © r   r   ú<module>r      s?   ðñõ
 !å QáÝ)ð_˜#ð _ gð _°%¸¸u¸Ñ2Eô _r   