Ë
    ÝªgØ  ã                   óR   — d Z ddlmZ ddlmZ ddlmZ dedefd„Zdedee	   fd	„Z
y
)z5
Contains utils used by OpenAI compatible endpoints 
é    )ÚOptional)ÚRequest©Ú_read_request_bodyÚdeployment_dictÚreturnc                 ó®   — | d   j                  dd«       | d   j                  dd«       | d   j                  dd«       | d   j                  dd«       | S )a  
    Removes sensitive information from a deployment dictionary.

    Args:
        deployment_dict (dict): The deployment dictionary to remove sensitive information from.

    Returns:
        dict: The modified deployment dictionary with sensitive information removed.
    Úlitellm_paramsÚapi_keyNÚvertex_credentialsÚaws_access_key_idÚaws_secret_access_key)Úpop)r   s    úe/var/www/openai/venv/lib/python3.12/site-packages/litellm/proxy/common_utils/openai_endpoint_utils.pyÚ%remove_sensitive_info_from_deploymentr      se   € ð Ð$Ñ%×)Ñ)¨)°TÔ:ØÐ$Ñ%×)Ñ)Ð*>ÀÔEØÐ$Ñ%×)Ñ)Ð*=¸tÔDØÐ$Ñ%×)Ñ)Ð*AÀ4ÔHàÐó    Úrequestc              ƒ   óR   K  — t        | ¬«      ƒ d{  –—† xs i }d|v r|d   S y7 Œ­w)z`
    Get the `custom_llm_provider` from the request body

    Safely reads the request body
    )r   NÚcustom_llm_providerr   )r   Úrequest_bodys     r   Ú)get_custom_llm_provider_from_request_bodyr      s7   è ø€ ô  2¸'ÔB×BÒHÀb€LØ Ñ,ØÐ1Ñ2Ð2Øð Cús   ‚'’%“'N)Ú__doc__Útypingr   Úfastapir   Ú-litellm.proxy.common_utils.http_parsing_utilsr   Údictr   Ústrr   © r   r   Ú<module>r      s@   ðñõ å å Lð¸4ð ÀDó ð$	¸Wð 	ÈÐRUÉô 	r   