o
    ưiK                     @   sJ   d Z ddlmZ ddlmZ ddlmZ dededeeef fdd	Z	d
S )zN
Cost calculator for DeepSeek Chat models. 

Handles prompt caching scenario.
    )Tuplegeneric_cost_per_token)Usagemodelusagereturnc                 C   s   t | |d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.
    Zdeepseek)r   r   Zcustom_llm_providerr   )r   r    r	   \/home/app/Keep/.python/lib/python3.10/site-packages/litellm/llms/deepseek/cost_calculator.pycost_per_token   s   r   N)
__doc__typingr   Z.litellm.litellm_core_utils.llm_cost_calc.utilsr   Zlitellm.types.utilsr   strfloatr   r	   r	   r	   r
   <module>   s
    "