+
    Q?j	                    @   ^ RI Ht ^ RIt^ RIHtHtHt ^ RIt^RIH	t	H
t
  ! R R]4      tR R ltR	 R
 ltR R ltR R ltR R ltR R ltR R ltR R ltR R ltR R ltR R ltR R ltR R  ltR! R" ltR# R$ ltR% R& ltR' R( ltR) R* ltR+ R, ltR# )-    )annotationsN)AnyProtocolcast)DEFAULT_TIMEOUTDEFAULT_CONNECTION_LIMITSc                      ] tR t^t$ R]R&   R]R&   R]R&   R]R&   R	]R
&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   RtR# )_LegacyHttpxModuleztype[httpx2.Auth]Authztype[httpx2.Client]Clientztype[httpx2.AsyncClient]AsyncClientztype[httpx2.URL]URLztype[httpx2.Response]Responseztype[httpx2.Timeout]Timeoutztype[httpx2.Limits]Limitsztype[httpx2.TimeoutException]TimeoutExceptionztype[httpx2.HTTPStatusError]HTTPStatusErrorztype[httpx2.StreamConsumed]StreamConsumedztype[httpx2.RequestNotRead]RequestNotRead N)__name__
__module____qualname____firstlineno____annotations____static_attributes__r       w/home/vela/workspace/domain/tn-silver/web/tn-site/.runtime/imagegen-venv/lib/python3.14/site-packages/openai/_httpx2.pyr
   r
      sD    
))	##!!3311////r   r
   c                   V ^8  d   QhRR/# )   returnz_LegacyHttpxModule | Noner   )formats   "r   __annotate__r#      s     L L7 Lr   c                 l    \         P                  P                  R 4      p V e   \        \        V 4      # R# )httpxN)sysmodulesgetr   r
   modules    r   _loaded_legacy_httpxr+      s,    [[__W%F/5/A4"F+KtKr   c                    V ^8  d   QhRRRR/# r    valueobjectr!   boolr   )r"   s   "r   r#   r#      s     , , ,D ,r   c                6    \        V \        P                  4      # N)
isinstancehttpx2r   r.   s   &r   is_httpx2_sync_clientr6      s    eV]]++r   c                    V ^8  d   QhRRRR/# r-   r   )r"   s   "r   r#   r#   "   s     1 1& 1T 1r   c                6    \        V \        P                  4      # r2   )r3   r4   r   r5   s   &r   is_httpx2_async_clientr9   "   s    eV//00r   c                    V ^8  d   QhRRRR/# r-   r   )r"   s   "r   r#   r#   &   s     C Cv C$ Cr   c                X    \        4       pVR J;'       d    \        WP                  4      # r2   )r+   r3   r   r.   r*   s   & r   is_legacy_httpx_sync_clientr=   &   s&    !#FBB*UMM"BBr   c                    V ^8  d   QhRRRR/# r-   r   )r"   s   "r   r#   r#   +   s     H H H4 Hr   c                X    \        4       pVR J;'       d    \        WP                  4      # r2   )r+   r3   r   r<   s   & r   is_legacy_httpx_async_clientr@   +   s(    !#FGG*U4F4F"GGr   c                    V ^8  d   QhRRRR/# )r    r.   zstr | httpx2.URLr!   z
httpx2.URLr   )r"   s   "r   r#   r#   0   s     	 	/ 	J 	r   c                   \        V \        P                  4      '       d   V # \        4       pT pVe;   \        W!P                  4      '       d    \        P                  ! \	        V4      4      # \        P                  ! V 4      # r2   )r3   r4   r   r+   str)r.   r*   legacy_values   &  r   normalize_httpx_urlrE   0   s\    %$$!#F LjzzBBzz#l+,,::er   c                   V ^8  d   QhRR/# )r    r!   z!tuple[type[httpx2.Response], ...]r   )r"   s   "r   r#   r#   <   s     X X> Xr   c                 x    \        4       p V f   \        P                  3# \        P                  V P                  3# r2   )r+   r4   r   r)   s    r   http_response_typesrH   <   s-    !#F!'FOOWfoov5WWr   c                    V ^8  d   QhRRRR/# r    r.   zfloat | httpx2.Timeout | Noner!   r   )r"   s   "r   r#   r#   A   s      #@ Eb r   c                    \        4       pVe@   \        WP                  4      '       d%   \        P                  ! R/ V P	                  4       B # V # Nr   )r+   r3   r   r4   as_dictr<   s   & r   normalize_httpx_timeoutrN   A   s;    !#Fj??~~000Lr   c                    V ^8  d   QhRRRR/# rJ   r   )r"   s   "r   r#   r#   H   s     * *$A *Fc *r   c                    \        V 4      # r2   )rN   r5   s   &r   normalize_httpx2_timeoutrQ   H   s    "5))r   c                    V ^8  d   QhRRRR/# rJ   r   )r"   s   "r   r#   r#   L   s      *G Li r   c                    \        4       pVeA   \        V \        P                  4      '       d!   VP                  ! R/ V P	                  4       B # V # rL   )r+   r3   r4   r   rM   r<   s   & r   normalize_legacy_httpx_timeoutrT   L   s=    !#Fj??~~000Lr   c                    V ^8  d   QhRRRR/# r    r.   zhttpx2.Authr!   r   )r"   s   "r   r#   r#   S   s        r   c                ~    \        4       pVe/   \        V 4      VP                  J d   \        P                  ! 4       # V # r2   )r+   typer   r4   r<   s   & r   normalize_httpx2_authrY   S   s0    !#Fd5kV[[8{{}Lr   c                    V ^8  d   QhRRRR/# rV   r   )r"   s   "r   r#   r#   Z   s      { { r   c                |    \        4       pVe.   \        V 4      \        P                  J d   VP                  4       # V # r2   )r+   rX   r4   r   r<   s   & r   normalize_legacy_httpx_authr\   Z   s0    !#Fd5kV[[8{{}Lr   c                   V ^8  d   QhRR/# )r    r!   z)tuple[type[httpx2.TimeoutException], ...]r   )r"   s   "r   r#   r#   a   s     p pE pr   c                 x    \        4       p V f   \        P                  3# \        P                  V P                  3# r2   )r+   r4   r   r)   s    r   timeout_exceptionsr_   a   s4    !#F)/F##%of>U>UW]WnWn=oor   c                   V ^8  d   QhRR/# )r    r!   z(tuple[type[httpx2.HTTPStatusError], ...]r   )r"   s   "r   r#   r#   f   s     m mC mr   c                 x    \        4       p V f   \        P                  3# \        P                  V P                  3# r2   )r+   r4   r   r)   s    r   status_exceptionsrb   f   s4    !#F(.F""$lV=S=SU[UkUk<llr   c                   V ^8  d   QhRR/# )r    r!   z'tuple[type[httpx2.StreamConsumed], ...]r   )r"   s   "r   r#   r#   k   s     j j$K jr   c                 x    \        4       p V f   \        P                  3# \        P                  V P                  3# r2   )r+   r4   r   r)   s    r   stream_consumed_exceptionsre   k   4    !#F'-~F!!#iF<Q<QSYShSh;iir   c                   V ^8  d   QhRR/# )r    r!   z'tuple[type[httpx2.RequestNotRead], ...]r   )r"   s   "r   r#   r#   p   s     j j%L jr   c                 x    \        4       p V f   \        P                  3# \        P                  V P                  3# r2   )r+   r4   r   r)   s    r   request_not_read_exceptionsri   p   rf   r   c                    V ^8  d   QhRRRR/# )r    kwargszdict[str, Any]r!   Noner   )r"   s   "r   r#   r#   u   s     0 0 0D 0r   c                b   \        V P                  R \        4      4      V R &   V P                  R\        4      p\	        4       pVeS   \        WP                  4      '       d8   \        P                  ! VP                  VP                  VP                  R7      pWR&   V P                  RR4       R# )timeoutlimitsN)max_connectionsmax_keepalive_connectionskeepalive_expiryfollow_redirectsT)rQ   r(   r   r   r+   r3   r   r4   rp   rq   rr   
setdefault)rk   ro   r*   s   &  r   _set_httpx2_defaultsru   u   s    0I1WXF9ZZ";<F!#Fj??"22&,&F&F#44

 8
($/r   c                    V ^8  d   QhRRRR/# )r    rk   r   r!   zhttpx2.Clientr   )r"   s   "r   r#   r#      s     # ## #- #r   c                 D    \        V 4       \        P                  ! R/ V B # )z<Create an HTTPX2 client with the SDK's recommended defaults.r   )ru   r4   r   rk   s   ,r   DefaultHttpx2Clientry      s     =="6""r   c                    V ^8  d   QhRRRR/# )r    rk   r   r!   zhttpx2.AsyncClientr   )r"   s   "r   r#   r#      s     ( (s (/A (r   c                 D    \        V 4       \        P                  ! R/ V B # )zBCreate an async HTTPX2 client with the SDK's recommended defaults.r   )ru   r4   r   rx   s   ,r   DefaultAsyncHttpx2Clientr|      s     '''r   )
__future__r   r&   typingr   r   r   r4   
_constantsr   r   r
   r+   r6   r9   r=   r@   rE   rH   rN   rQ   rT   rY   r\   r_   rb   re   ri   ru   ry   r|   r   r   r   <module>r      s    " 
 & &  B0 0L
,1C
H
	X
*p
m
j
j
0#(r   