Ë
    uPêj-  ã                   ó0   — d Z ddlmZ ddlZdededefd„Zy)zDShared helpers for OpenAI-compatible container API URL construction.é    )ÚFinalNÚapi_baseÚpath_suffixÚreturnc                 óÌ   — |j                  d«      sd|› �}t        j                  | «      }|j                  j	                  d«      › |› �}t        |j                  |¬«      «      S )a{  Append ``path_suffix`` to the path of ``api_base``, keeping the query string last.

    Azure (and some bases) pass ``api_base`` like
    ``https://host/openai/v1/containers?api-version=v1``. Naive string concat would
    produce ``...?api-version=v1/cntr_...`` which is invalid; this uses ``httpx.URL``
    so the result is ``.../containers/cntr_.../files?api-version=v1``.
    ú/)Úpath)Ú
startswithÚhttpxÚURLr	   ÚrstripÚstrÚ	copy_with)r   r   ÚparsedÚnew_paths       úi/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/llms/openai/containers/utils.pyÚjoin_container_api_base_pathr      sc   € ð ×!Ñ! #Ô&Ø˜+˜Ð'ˆÜ—I‘I˜hÓ'€FØŸ™×+Ñ+¨CÓ0Ð1°+°Ð?€HÜˆv×Ñ XÐÓ.Ó/Ð/ó    )Ú__doc__Útypingr   r   r   r   © r   r   ú<module>r      s(   ðÙ Jå ã ð0¨3ð 0¸Sð 0ÀSô 0r   