Ë
    uPêjO  ã                   óT   — d Z ddlmZmZ ddlmZ ddlmZ erddlmZ deddd	e	fd
„Z
y)a  
Groq-specific cost helpers.

Groq bills the built-in browser tool per executed action
(https://groq.com/pricing): `browser.search` at $5 per 1k and
`browser.open` at $1 per 1k. The Groq chat transformation counts both
action kinds off `executed_tools` into `usage.server_tool_use`.
é    )ÚTYPE_CHECKINGÚFinal)Ú(GROQ_BROWSER_VISIT_WEBSITE_COST_PER_CALL)ÚUsage)Ú	ModelInfoÚusageÚ
model_infor   Úreturnc                 óÎ   — |j                  d«      }|r|j                  dd«      nd}t        | dd «      }|€y|j                  xs d}|j                  xs d}||z  |t        z  z   S )NÚsearch_context_cost_per_queryÚsearch_context_size_mediumg        Úserver_tool_user   )ÚgetÚgetattrÚweb_search_requestsÚbrowser_open_requestsr   )r   r	   Úsearch_costsÚcost_per_searchr   ÚsearchesÚopenss          úf/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/llms/groq/cost_calculator.pyÚcost_per_web_search_requestr      sw   € Ø$Ÿ.™.Ð)HÓI€LÙT`˜\×-Ñ-Ð.JÈCÔPÐfi€OÜ$ UÐ,=¸tÓD€OØÐØØ%×9Ñ9Ò>¸Q€HØ"×8Ñ8Ò=¸A€EØ�oÑ%¨Ô0XÑ(XÑXÐXó    N)Ú__doc__Útypingr   r   Úlitellm.constantsr   Úlitellm.types.utilsr   r   Úfloatr   © r   r   ú<module>r       s9   ðñ÷ (å FÝ %áÝ-ðY uð Y¸+ð YÈ%ô Yr   