Ë
    òÏjÀ  ã                  óx   — d Z ddlmZ ddlZddlmZ ddlZdd„ZerddlZdgZ
y e«       rddl	ZdgZ
yddlZdgZ
y)uU  Resolve the `httpx` library matching the installed `openai` SDK.

`openai>=3` is backed by `httpx2` (an API-identical drop-in for `httpx`),
`openai<3` by `httpx`. Transport/config objects injected into the SDK client
are built from the same library, so this module re-exports whichever one the
installed SDK version defaults to.

Import `httpx` from here **only** for objects handed to the OpenAI SDK client
(e.g. a custom transport, `Limits`, `Proxy`, or `http_client=`). Standalone HTTP
code should import `httpx` directly.

Note: the SDK's `DefaultHttpxClient`/`DefaultAsyncHttpxClient` classes are *not*
re-exported here â€” they are subclassable in both SDK versions (backed by
`httpx2` on `openai>=3`), so subclass `openai.DefaultHttpxClient` directly. The
`DefaultHttpx2Client` names are factory functions, not classes, and cannot be
subclassed.
é    )ÚannotationsN)ÚTYPE_CHECKINGc            
     ó¤   — t        j                  dt        t        t        dd«      «      «      } | duxr t        | j                  d«      «      dk\  S )zDWhether the installed `openai` SDK defaults to `httpx2` (openai>=3).z\D*(\d+)Ú__version__Ú Né   é   )ÚreÚmatchÚstrÚgetattrÚopenaiÚintÚgroup)r   s    úU/var/www/html/gaurav-v2/venv/lib/python3.12/site-packages/langchain_openai/_compat.pyÚ_sdk_uses_httpx2r      sD   € ô �H‰H�[¤#¤g¬f°mÀRÓ&HÓ"IÓJ€EØ˜ÐÒ9¤ U§[¡[°£^Ó!4¸Ñ!9Ð9ó    Úhttpx)ÚreturnÚbool)Ú__doc__Ú
__future__r   r
   Útypingr   r   r   r   Úhttpx2Ú__all__© r   r   Ú<module>r      sP   ðñõ$ #ã 	Ý  ã ó:ñ ó ð ˆ)�ñ ÔÛð ˆ)�ó àˆ)�r   