+
    ^eòj]t  ã                  ó¼  a € 0 t $ ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	 ^ RI
HtHtHtHtHtHtHtHtHtHt ^ RIHtHtHtHt ^ RIt^ RIt^ RIt^RIHt ^RIH t H!t!H"t"H#t#H$t$ ^RI%H&t&H't' ^R	I(H)t)H*t*H+t+ ^R
I,H-t-H.t. ^RI/H0t0H1t1H2t2H3t3 ^RI4H5t5H6t6 ]'       d   ^RI(H7t7 ^RI8H9t9 ]! R4      t:]! R4      t;]! R4      t<]! RRR7      t=]! RRR7      t>]P~                  ! ]@4      tAR]BR&    ! R R]];,          4      tC ! R R]C];,          4      tD ! R R]C];,          4      tE ! R R ]D]F,          4      tG ! R! R"]E]F,          4      tH ! R# R$]D]F,          4      tI ! R% R&]E]F,          4      tJ ! R' R(]K4      tL ! R) R*]54      tM ! R+ R,]]=,          4      tN ! R- R.]]>,          4      tOR/ R0 ltPR1 R2 ltQR3 R4 ltRR5 R6 ltSR7 R8 ltTR9 R: ltUR; R< ltVR= R> ltWR? R@ ltXR# )Aé    )ÚannotationsN)ÚTracebackType)
ÚTYPE_CHECKINGÚAnyÚUnionÚGenericÚTypeVarÚCallableÚIteratorÚAsyncIteratorÚcastÚoverload)Ú	AwaitableÚ	ParamSpecÚoverrideÚ
get_origin)ÚNoneType)Úis_givenÚextract_type_argÚis_annotated_typeÚis_type_alias_typeÚextract_type_var_from_base)Úhttp_response_typesÚstream_consumed_exceptions)Ú	BaseModelÚis_basemodelÚadd_request_id)ÚRAW_RESPONSE_HEADERÚOVERRIDE_CAST_TO_HEADER)ÚStreamÚAsyncStreamÚis_stream_class_typeÚextract_stream_chunk_type)ÚOpenAIErrorÚAPIResponseValidationError)ÚFinalRequestOptions)Ú
BaseClientÚPÚRÚ_TÚ_APIResponseTzAPIResponse[Any])ÚboundÚ_AsyncAPIResponseTzAsyncAPIResponse[Any]zlogging.LoggerÚlogc                  óX  € ] tR t^1t$ R]R&   R]R&   R]R&   R]R&   R	]R
&   R]R&   R]R&   R]R&    R^ /R R llt]R R l4       t]R R l4       t]R R l4       t	]R R l4       t
]R R l4       t]R R l4       t]R R  l4       t]R! R" l4       t]R# R$ l4       tR%R&/R' R( lltR)tR&# )*ÚBaseAPIResponseútype[R]Ú_cast_toúBaseClient[Any, Any]Ú_clientzdict[type[Any], Any]Ú_parsed_by_typeÚboolÚ_is_sse_streamú1type[Stream[Any]] | type[AsyncStream[Any]] | NoneÚ_stream_clsr&   Ú_optionsúhttpx.ResponseÚhttp_responseÚintÚretries_takenc               ó8   € V ^8„  d   QhRRRRRRRRR	R
RRRRRR/# )é   Úrawr;   Úcast_tor1   Úclientr3   Ústreamr6   Ú
stream_clsr8   Úoptionsr&   r>   r=   ÚreturnÚNone© )Úformats   "Ú‡/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/openai/_response.pyÚ__annotate__ÚBaseAPIResponse.__annotate__>   s]   € ÷ +ñ +ð ð+ð ð	+ð
 %ð+ð ð+ð Fð+ð %ð+ð ð+ð 
ñ+ó    c               	óh   € W n         W0n        / V n        W@n        WPn        W`n        Wn        Wpn        R # ©N)r2   r4   r5   r7   r9   r:   r<   r>   )ÚselfrA   rB   rC   rD   rE   rF   r>   s   &$$$$$$$rK   Ú__init__ÚBaseAPIResponse.__init__>   s3   € ð  ŒØŒØ!ˆÔØ$ÔØ%ÔØŒØ ÔØ*ÖrN   c               ó   € V ^8„  d   QhRR/# )r@   rG   zhttpx.HeadersrI   )rJ   s   "rK   rL   rM   S   s   € ÷ *ñ *˜ñ *rN   c                	ó.   € V P                   P                  # rP   )r<   Úheaders©rQ   s   &rK   rV   ÚBaseAPIResponse.headersR   s   € à×!Ñ!×)Ñ)Ð)rN   c               ó   € V ^8„  d   QhRR/# )r@   rG   zhttpx.RequestrI   )rJ   s   "rK   rL   rM   W   s   € ÷ *ñ *˜mñ *rN   c                ó.   € V P                   P                  # )zHReturns the httpx Request instance associated with the current response.)r<   ÚrequestrW   s   &rK   Úhttp_requestÚBaseAPIResponse.http_requestV   ó   € ð ×!Ñ!×)Ñ)Ð)rN   c               ó   € V ^8„  d   QhRR/# )r@   rG   r=   rI   )rJ   s   "rK   rL   rM   \   s   € ÷ .ñ .˜Sñ .rN   c                	ó.   € V P                   P                  # rP   )r<   Ústatus_coderW   s   &rK   ra   ÚBaseAPIResponse.status_code[   s   € à×!Ñ!×-Ñ-Ð-rN   c               ó   € V ^8„  d   QhRR/# )r@   rG   z	httpx.URLrI   )rJ   s   "rK   rL   rM   `   s   € ÷ &ñ &�Yñ &rN   c                ó.   € V P                   P                  # )z/Returns the URL for which the request was made.)r<   ÚurlrW   s   &rK   re   ÚBaseAPIResponse.url_   s   € ð ×!Ñ!×%Ñ%Ð%rN   c               ó   € V ^8„  d   QhRR/# ©r@   rG   ÚstrrI   )rJ   s   "rK   rL   rM   e   s   € ÷ (ñ (˜ñ (rN   c                	ó.   € V P                   P                  # rP   )r\   ÚmethodrW   s   &rK   rk   ÚBaseAPIResponse.methodd   s   € à× Ñ ×'Ñ'Ð'rN   c               ó   € V ^8„  d   QhRR/# rh   rI   )rJ   s   "rK   rL   rM   i   s   € ÷ /ñ /˜cñ /rN   c                	ó.   € V P                   P                  # rP   )r<   Úhttp_versionrW   s   &rK   ro   ÚBaseAPIResponse.http_versionh   s   € à×!Ñ!×.Ñ.Ð.rN   c               ó   € V ^8„  d   QhRR/# )r@   rG   zdatetime.timedeltarI   )rJ   s   "rK   rL   rM   m   s   € ÷ *ñ *Ð+ñ *rN   c                ó.   € V P                   P                  # )zCThe time taken for the complete request/response cycle to complete.)r<   ÚelapsedrW   s   &rK   rs   ÚBaseAPIResponse.elapsedl   r^   rN   c               ó   € V ^8„  d   QhRR/# )r@   rG   r6   rI   )rJ   s   "rK   rL   rM   r   s   € ÷ ,ñ ,˜4ñ ,rN   c                ó.   € V P                   P                  # )zùWhether or not the response body has been closed.

If this is False then there is response data that has not been read yet.
You must either fully consume the response body or call `.close()`
before discarding the response to prevent resource leaks.
)r<   Ú	is_closedrW   s   &rK   rw   ÚBaseAPIResponse.is_closedq   s   € ð ×!Ñ!×+Ñ+Ð+rN   c               ó   € V ^8„  d   QhRR/# rh   rI   )rJ   s   "rK   rL   rM   |   s   € ÷ 
ñ 
˜#ñ 
rN   c           	     	ó˜   € R V P                   P                   RV P                   RV P                  P                   RV P
                   R2	# )Ú<z [Ú z] type=Ú>)Ú	__class__Ú__name__ra   r<   Úreason_phraser2   rW   s   &rK   Ú__repr__ÚBaseAPIResponse.__repr__{   sP   € ð �—‘×'Ñ'Ð(¨¨4×+;Ñ+;Ð*<¸A¸d×>PÑ>P×>^Ñ>^Ð=_Ð_fÐgk×gtÑgtÐfuÐuvÐwð	
rN   ÚtoNc               ó    € V ^8„  d   QhRRRR/# ©r@   rƒ   ztype[_T] | NonerG   zR | _TrI   )rJ   s   "rK   rL   rM   �   s   € ÷ S
ñ S
˜Oð S
°vñ S
rN   c               	óZ  € Ve   TMV P                   p\        V4      '       d   VP                  pV'       d   \        V4      '       d   \	        V^ 4      p\        V4      ;'       g    TpV P                  '       Edl   V'       d|   \        V4      '       g   \        R\         R\         24      h\        \        V! \        VRR7      V P                  \        \        V P                   4      V P"                  R7      4      # V P$                  '       dc   \        \&        V P%                  \        V P$                  4      V P                  \        \        V P                   4      V P"                  R7      4      # \        RV P                   P(                  4      pVf   \+        4       h\        \&        V! VV P                  \        \        V P                   4      V P"                  R7      4      # V\,        J d   \        \&        R 4      # V P                  pV\.        8X  d   \        \&        VP0                  4      # V\2        8X  d   \        \&        VP4                  4      # V\6        8X  d$   \        \&        \7        VP0                  4      4      # V\8        8X  d$   \        \&        \9        VP0                  4      4      # V\:        8X  d,   \        \&        VP0                  P=                  4       R8H  4      # \>        P@                  ! V4      '       d(   VPB                  R8X  d   \        \&        V! V4      4      # V\D        8X  d   \G        R	4      h\I        4       p\>        P@                  ! V4      '       d3   \K        W64      '       d"   W&9  d   \M        R
4      h\        \&        V4      # \>        P@                  ! V4      '       dB   \K        V\N        4      '       g,   \K        V\P        PN                  4      '       d   \        R4      hV\R        Jd   V\T        J gu   V\V        J gk   V\X        J ga   \K        V\N        4      '       gK   \G        RV R\N         R\V         R\T         R\X         R\,         R\.         R\Z        P\                   R24      hVP^                  Pa                  RR4      Pc                  R4      vrxVPe                  R4      '       g…   \g        V4      '       d0    VPi                  4       p	V P                   Pk                  V	VVR7      # V P                   Pt                  '       d   \w        VRV R2VP0                  R7      hVP0                  # VPi                  4       p	V P                   Pk                  V	VVR7      #   \l         d+   p
\n        Pq                  R\s        T
4      T
4        R p
?
L¢R p
?
ii ; i)Nz/Expected custom parse type to be a subclass of z or zUExpected custom stream type to be passed with a type argument, e.g. Stream[ChunkType])Úfailure_message)rB   ÚresponserC   rF   r8   ÚtrueÚHttpxBinaryResponseContentz+Unexpected state - cast_to is `APIResponse`zASubclasses of HTTP response classes cannot be passed to `cast_to`zVPydantic models must subclass our base model type, e.g. `from openai import BaseModel`zUnsupported type, expected z to be a subclass of z, Ú.zcontent-typeÚ*Ú;Újson)ÚdatarB   rˆ   z5Could not read JSON from response data due to %s - %szMExpected Content-Type response header to be `application/json` but received `z
` instead.)rˆ   ÚmessageÚbody)<r2   r   Ú	__value__r   r   r   r7   r"   Ú	TypeErrorr    r!   r   r*   r#   r<   r   r4   r:   r9   r)   Ú_default_stream_clsÚMissingStreamClassErrorr   ri   ÚtextÚbytesÚcontentr=   Úfloatr6   ÚlowerÚinspectÚisclassr   ÚAPIResponseÚRuntimeErrorr   Ú
issubclassÚ
ValueErrorr   ÚpydanticÚobjectÚlistÚdictr   ÚhttpxÚResponserV   ÚgetÚsplitÚendswithr   rŽ   Ú_process_response_dataÚ	Exceptionr.   ÚdebugÚtypeÚ_strict_response_validationr%   )rQ   rƒ   rB   ÚoriginrE   rˆ   Úresponse_typesÚcontent_typeÚ_r�   Úexcs   &$         rK   Ú_parseÚBaseAPIResponse._parse�   së  € Øš‘"¨D¯M©Mˆô ˜g×&Ò&Ø×'Ñ'ˆG÷ Ô(¨×1Ò1Ü& w°Ó2ˆGä˜GÓ$×/Ð/¨ˆà××ÑßÜ+¨B×/Ò/Ü#Ð&UÔV\ÐU]Ð]aÔbmÐanÐ$oÓpÐpäÜÙÜ 9Øð -Dô!ð "&×!3Ñ!3Ü#¤C¨¯©Ó6Ø $§¡ôóð ð ××ÐÜÜØ×$Ñ$Ü 9¸$×:JÑ:JÓ KØ!%×!3Ñ!3Ü#¤C¨¯©Ó6Ø $§¡ð	 %ó óð ô ÐQÐSW×S_ÑS_×SsÑSsÓtˆJØÒ!Ü-Ó/Ð/äÜÙØ#Ø!×/Ñ/Ü¤ T§\¡\Ó2Ø ŸM™Mô	óð ð ”hÓÜœ˜4“=Ð à×%Ñ%ˆØ”cŒ>Üœ˜8Ÿ=™=Ó)Ð)à”eÔÜœ˜8×+Ñ+Ó,Ð,à”cŒ>Üœœ3˜xŸ}™}Ó-Ó.Ð.à”eÔÜœœ5 §¡Ó/Ó0Ð0à”dŒ?Üœ˜8Ÿ=™=×.Ñ.Ó0°FÑ:Ó;Ð;ô �?Š?˜7×#Ò#¨×(8Ñ(8Ð<XÔ(XÜœ™7 8Ó,Ó-Ð-à”[Ô ÜÐLÓMÐMä,Ó.ˆÜ�?Š?˜6×"Ò"¤z°&×'IÒ'Ið Ô,Ü Ð!dÓeÐeÜœ˜8Ó$Ð$ô �OŠOØ÷ò ô ˜v¤y×1Ò1Ü˜6¤8×#5Ñ#5×6Ò6äÐtÓuÐuð œ6Ó!Øœd“NØœd“NØœe“OÜ˜v¤y×1Ò1äØ-¨g¨YÐ6KÌIÈ;ÐVXÔY]ÐX^Ð^`ÔaeÐ`fÐfhÔinÐhoÐoqÔrzÐq{Ð{}ô  Bð  ~Cð  CGô  HM÷  HVñ  HVð  GWð  WXð  Yóð ð $×+Ñ+×/Ñ/°ÀÓD×JÑJÈ3ÓOÐˆØ×$Ñ$ V×,Ò,Ü˜G×$Ò$ð	Ø#Ÿ=™=›?�Dð  Ÿ<™<×>Ñ>Ø!Ø 'Ø!)ð ?ó ð ð �|‰|×7×7Ð7Ü0Ø%ØkÐlxÐkyð  zDð  EØ!Ÿ™ôð ð —=‘=Ð à�}‰}‹ˆà�|‰|×2Ñ2ØØØð 3ó 
ð 	
øô/ !ô gÜ—I‘IÐUÔW[Ð\_ÓW`Ðbe×fÑfûðgús   ÓU5 Õ5V*Ö  V%Ö%V*)r2   r4   r7   r:   r5   r9   r<   r>   )r   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__annotations__rR   ÚpropertyrV   r\   ra   re   rk   ro   rs   rw   r   r�   r´   Ú__static_attributes__rI   rN   rK   r0   r0   1   s  ‡ ØÓØ!Ó!Ø)Ó)ØÓØBÓBØ!Ó!à!Ó!àÓØMð+ð ÷+ð( ô*ó ð*ð ô*ó ð*ð ô.ó ð.ð ô&ó ð&ð ô(ó ð(ð ô/ó ð/ð ô*ó ð*ð ô,ó ð,ð ô
ó ð
ð
S
¨d÷ S
ó S
rN   r0   c                  óÈ   € ] tR tRt]R R l4       t]R R l4       t]R R l4       tRR	/R
 R lltR R ltR R lt	R R lt
R R ltRR R lltRR R lltR R ltRtR	# )r�   i  c               ó   € V ^8„  d   QhRR/# ©r@   rG   z
str | NonerI   )rJ   s   "rK   rL   ÚAPIResponse.__annotate__  ó   € ÷ >ñ >˜Jñ >rN   c                	óL   € V P                   P                  P                  R 4      # ©zx-request-id©r<   rV   r§   rW   s   &rK   Ú
request_idÚAPIResponse.request_id  ó   € à×!Ñ!×)Ñ)×-Ñ-¨nÓ=Ð=rN   c               ó    € V ^8„  d   QhRRRR/# ©r@   rƒ   ztype[_T]rG   r*   rI   )rJ   s   "rK   rL   r¿     s   € ×/Ñ/˜8Ð/¨Ñ/rN   c               	ó   € R # rP   rI   ©rQ   rƒ   s   &$rK   ÚparseÚAPIResponse.parse  s   € Ù,/rN   c               ó   € V ^8„  d   QhRR/# ©r@   rG   r)   rI   )rJ   s   "rK   rL   r¿      s   € ×Ñ�qÑrN   c                	ó   € R # rP   rI   rW   s   &rK   rË   rÌ     s   € ÙrN   rƒ   Nc               ó    € V ^8„  d   QhRRRR/# r…   rI   )rJ   s   "rK   rL   r¿   "  s   € ÷ .ñ .˜?ð .°fñ .rN   c               óâ  € Ve   TMV P                   pV P                  P                  V4      pVe   V# V P                  '       g   V P	                  4        V P                  VR7      p\        V P                  P                  4      '       d   V P                  P                  V4      p\        V\        4      '       d   \        W@P                  4       W@P                  V&   \        \        V4      # )aá  Returns the rich python representation of this response's data.

For lower-level control, see `.read()`, `.json()`, `.iter_bytes()`.

You can customise the type that the response is parsed into through
the `to` argument, e.g.

```py
from openai import BaseModel


class MyModel(BaseModel):
    foo: str


obj = response.parse(to=MyModel)
print(obj.foo)
```

We support parsing:
  - `BaseModel`
  - `dict`
  - `list`
  - `Union`
  - `str`
  - `int`
  - `float`
  - `httpx.Response`
©rƒ   ©r2   r5   r§   r7   Úreadr´   r   r:   Úpost_parserÚ
isinstancer   r   rÄ   r   r)   ©rQ   rƒ   Ú	cache_keyÚcachedÚparseds   &$   rK   rË   rÌ   "  sµ   € ð< š.‘B¨d¯m©mˆ	Ø×%Ñ%×)Ñ)¨)Ó4ˆØÒØˆMà×"×"Ð"Ø�I‰IŒKà—‘ �Ó#ˆÜ�D—M‘M×-Ñ-×.Ò.Ø—]‘]×.Ñ.¨vÓ6ˆFä�fœi×(Ò(Ü˜6§?¡?Ô3à*0×Ñ˜YÑ'Ü”A�v‹ÐrN   c               ó   € V ^8„  d   QhRR/# ©r@   rG   r—   rI   )rJ   s   "rK   rL   r¿   R  s   € ÷ 3ñ 3�eñ 3rN   c                ó|   €  V P                   P                  4       #   \        4        d   p\        4       ThRp?ii ; i©z,Read and return the binary response content.N)r<   rÔ   r   ÚStreamAlreadyConsumed©rQ   r³   s   & rK   rÔ   ÚAPIResponse.readR  s<   € ð	3Ø×%Ñ%×*Ñ*Ó,Ð,øÜ)Ó+ô 	3ô (Ó)¨sÐ2ûð		3ús   ‚ œ;«6¶;c               ó   € V ^8„  d   QhRR/# rh   rI   )rJ   s   "rK   rL   r¿   \  s   € ÷ 'ñ '�cñ 'rN   c                óN   € V P                  4        V P                  P                  # )ú3Read and decode the response content into a string.©rÔ   r<   r–   rW   s   &rK   r–   ÚAPIResponse.text\  s   € à�	‰	ŒØ×!Ñ!×&Ñ&Ð&rN   c               ó   € V ^8„  d   QhRR/# ©r@   rG   r¢   rI   )rJ   s   "rK   rL   r¿   a  s   € ÷ )ñ )�fñ )rN   c                óV   € V P                  4        V P                  P                  4       # )ú*Read and decode the JSON response content.©rÔ   r<   rŽ   rW   s   &rK   rŽ   ÚAPIResponse.jsona  s    € à�	‰	ŒØ×!Ñ!×&Ñ&Ó(Ð(rN   c               ó   € V ^8„  d   QhRR/# ©r@   rG   rH   rI   )rJ   s   "rK   rL   r¿   f  s   € ÷ #ñ #�tñ #rN   c                ó:   € V P                   P                  4        R# ©zqClose the response and release the connection.

Automatically called if the response body is read to completion.
N)r<   ÚcloserW   s   &rK   rñ   ÚAPIResponse.closef  s   € ð
 	×Ñ× Ñ Ö"rN   c               ó    € V ^8„  d   QhRRRR/# )r@   Ú
chunk_sizeú
int | NonerG   zIterator[bytes]rI   )rJ   s   "rK   rL   r¿   m  s   € ÷ ñ  Zð ¸?ñ rN   c              #  óZ   "  € V P                   P                  V4       F  pVx € K	  	  R# 5i©z|
A byte-iterator over the decoded response content.

This automatically handles gzip, deflate and brotli encoded responses.
N)r<   Ú
iter_bytes©rQ   rô   Úchunks   && rK   rø   ÚAPIResponse.iter_bytesm  s'   é € ð ×'Ñ'×2Ñ2°:Ö>ˆEØŒKó ?ùó   ‚)+c               ó    € V ^8„  d   QhRRRR/# )r@   rô   rõ   rG   úIterator[str]rI   )rJ   s   "rK   rL   r¿   v  s   € ÷ ñ  Jð ¸-ñ rN   c              #  óZ   "  € V P                   P                  V4       F  pVx € K	  	  R# 5i©z†A str-iterator over the decoded response content
that handles both gzip, deflate, etc but also detects the content's
string encoding.
N)r<   Ú	iter_textrù   s   && rK   r  ÚAPIResponse.iter_textv  s'   é € ð
 ×'Ñ'×1Ñ1°*Ö=ˆEØŒKó >ùrü   c               ó   € V ^8„  d   QhRR/# )r@   rG   rþ   rI   )rJ   s   "rK   rL   r¿   ~  s   € ÷ ñ ˜Mñ rN   c              #  óX   "  € V P                   P                  4        F  pVx € K	  	  R# 5i©z;Like `iter_text()` but will only yield chunks for each lineN)r<   Ú
iter_lines©rQ   rú   s   & rK   r  ÚAPIResponse.iter_lines~  s#   é € à×'Ñ'×2Ñ2Ö4ˆEØŒKó 5ùs   ‚(*rI   rP   ©r   r¶   r·   r¸   rº   rÄ   r   rË   rÔ   r–   rŽ   rñ   rø   r  r  r»   rI   rN   rK   r�   r�     sg   † Øô>ó ð>ð Ü/ó Ø/àÜó Øð.¨T÷ .õ`3õ'õ
)õ
#÷÷÷ñ rN   r�   c                  óÈ   € ] tR tRt]R R l4       t]R R l4       t]R R l4       tRR	/R
 R lltR R ltR R lt	R R lt
R R ltRR R lltRR R lltR R ltRtR	# )ÚAsyncAPIResponsei„  c               ó   € V ^8„  d   QhRR/# r¾   rI   )rJ   s   "rK   rL   ÚAsyncAPIResponse.__annotate__†  rÀ   rN   c                	óL   € V P                   P                  P                  R 4      # rÂ   rÃ   rW   s   &rK   rÄ   ÚAsyncAPIResponse.request_id…  rÆ   rN   c               ó    € V ^8„  d   QhRRRR/# rÈ   rI   )rJ   s   "rK   rL   r  Š  s   € ×5Ñ5 Ð5¨bÑ5rN   c             ƒ  	ó   "  € R # 5irP   rI   rÊ   s   &$rK   rË   ÚAsyncAPIResponse.parse‰  s   é € Ù25ùó   ‚c               ó   € V ^8„  d   QhRR/# rÎ   rI   )rJ   s   "rK   rL   r  �  s   € ×#Ñ#˜QÑ#rN   c              ƒ  	ó   "  € R # 5irP   rI   rW   s   &rK   rË   r  Œ  s   é € Ù #ùr  rƒ   Nc               ó    € V ^8„  d   QhRRRR/# r…   rI   )rJ   s   "rK   rL   r  �  s   € ÷ ,ñ , ð ,¸Fñ ,rN   c             ƒ  óþ  "  € Ve   TMV P                   pV P                  P                  V4      pVe   V# V P                  '       g   V P	                  4       G Rj  x€L
  V P                  VR7      p\        V P                  P                  4      '       d   V P                  P                  V4      p\        V\        4      '       d   \        W@P                  4       W@P                  V&   \        \        V4      #  LŸ5i)aË  Returns the rich python representation of this response's data.

For lower-level control, see `.read()`, `.json()`, `.iter_bytes()`.

You can customise the type that the response is parsed into through
the `to` argument, e.g.

```py
from openai import BaseModel


class MyModel(BaseModel):
    foo: str


obj = response.parse(to=MyModel)
print(obj.foo)
```

We support parsing:
  - `BaseModel`
  - `dict`
  - `list`
  - `Union`
  - `str`
  - `httpx.Response`
NrÒ   rÓ   r×   s   &$   rK   rË   r  �  sÃ   é € ð8 š.‘B¨d¯m©mˆ	Ø×%Ñ%×)Ñ)¨)Ó4ˆØÒØˆMà×"×"Ð"Ø—)‘)“+×Ðà—‘ �Ó#ˆÜ�D—M‘M×-Ñ-×.Ò.Ø—]‘]×.Ñ.¨vÓ6ˆFä�fœi×(Ò(Ü˜6§?¡?Ô3à*0×Ñ˜YÑ'Ü”A�v‹Ðñ ùs   ‚AC=ÁC=ÁC;ÁB C=c               ó   € V ^8„  d   QhRR/# rÜ   rI   )rJ   s   "rK   rL   r  ½  s   € ÷ 3ñ 3˜Eñ 3rN   c              ƒ  ó˜   "  €  V P                   P                  4       G Rj  x€L
 #  L  \        4        d   p\        4       ThRp?ii ; i5irÞ   )r<   Úareadr   rß   rà   s   & rK   rÔ   ÚAsyncAPIResponse.read½  sD   é € ð	3Ø×+Ñ+×1Ñ1Ó3×3Ð3Ñ3øÜ)Ó+ô 	3ô (Ó)¨sÐ2ûð		3üs0   ‚A
„( ¡&¢( ¥A
¦( ¨A·AÁAÁA
c               ó   € V ^8„  d   QhRR/# rh   rI   )rJ   s   "rK   rL   r  Ç  s   € ÷ 'ñ '˜Cñ 'rN   c              ƒ  ój   "  € V P                  4       G Rj  x€L
  V P                  P                  #  L5i)rä   Nrå   rW   s   &rK   r–   ÚAsyncAPIResponse.textÇ  s+   é € à�i‰i‹k×ÐØ×!Ñ!×&Ñ&Ð&ñ 	ùs   ‚3–1—3c               ó   € V ^8„  d   QhRR/# rè   rI   )rJ   s   "rK   rL   r  Ì  s   € ÷ )ñ )˜Fñ )rN   c              ƒ  ór   "  € V P                  4       G Rj  x€L
  V P                  P                  4       #  L5i)rê   Nrë   rW   s   &rK   rŽ   ÚAsyncAPIResponse.jsonÌ  s.   é € à�i‰i‹k×ÐØ×!Ñ!×&Ñ&Ó(Ð(ñ 	ùs   ‚7–5—7c               ó   € V ^8„  d   QhRR/# rî   rI   )rJ   s   "rK   rL   r  Ñ  s   € ÷ *ñ *˜Tñ *rN   c              ƒ  óV   "  € V P                   P                  4       G Rj  x€L
  R#  L5irð   )r<   ÚacloserW   s   &rK   rñ   ÚAsyncAPIResponse.closeÑ  s   é € ð
 × Ñ ×'Ñ'Ó)×)Ô)ùs   ‚) '¡)c               ó    € V ^8„  d   QhRRRR/# )r@   rô   rõ   rG   zAsyncIterator[bytes]rI   )rJ   s   "rK   rL   r  Ø  s   € ÷ ñ ¨:ð ÐAUñ rN   c               ól   "  € V P                   P                  V4        Rj  x€L
  pV5x € K   LDR# 5ir÷   )r<   Úaiter_bytesrù   s   && rK   rø   ÚAsyncAPIResponse.iter_bytesØ  s4   é € ð  ×-Ñ-×9Ñ9¸*ÔE÷ 	ð 	�%Ø�Kñ	ÒEùó   ‚4ž1¢/£1¦	4¯1±4c               ó    € V ^8„  d   QhRRRR/# )r@   rô   rõ   rG   úAsyncIterator[str]rI   )rJ   s   "rK   rL   r  á  s   € ÷ ñ ¨*ð Ð@Rñ rN   c               ól   "  € V P                   P                  V4        Rj  x€L
  pV5x € K   LDR# 5ir   )r<   Ú
aiter_textrù   s   && rK   r  ÚAsyncAPIResponse.iter_textá  s4   é € ð
  ×-Ñ-×8Ñ8¸ÔD÷ 	ð 	�%Ø�Kñ	ÒDùr*  c               ó   € V ^8„  d   QhRR/# )r@   rG   r,  rI   )rJ   s   "rK   rL   r  é  s   € ÷ ñ Ð"4ñ rN   c               ój   "  € V P                   P                  4         Rj  x€L
  pV5x € K   LDR# 5ir  )r<   Úaiter_linesr  s   & rK   r  ÚAsyncAPIResponse.iter_linesé  s0   é € à×-Ñ-×9Ñ9Ô;÷ 	ð 	�%Ø�Kñ	Ò;ùs   ‚3�0¡.¢0¥	3®0°3rI   rP   r	  rI   rN   rK   r  r  „  sg   † Øô>ó ð>ð Ü5ó Ø5àÜ#ó Ø#ð,°4÷ ,õ\3õ'õ
)õ
*÷÷÷ñ rN   r  c                  ó&   € ] tR tRtRtR R ltRtR# )ÚBinaryAPIResponseiï  á#  Subclass of APIResponse providing helpers for dealing with binary data.

Note: If you want to stream the response data instead of eagerly reading it
all at once then you should use `.with_streaming_response` when making
the API request, e.g. `.with_streaming_response.get_binary_response()`
c               ó    € V ^8„  d   QhRRRR/# ©r@   Úfileústr | os.PathLike[str]rG   rH   rI   )rJ   s   "rK   rL   ÚBinaryAPIResponse.__annotate__÷  s   € ÷ ñ à$ðð 
ñrN   c                óº   € \        VRR7      ;_uu_ 4       pV P                  4        F  pVP                  V4       K  	  RRR4       R#   + '       g   i     R# ; i©a6  Write the output to the given file.

Accepts a filename or any path-like object, e.g. pathlib.Path

Note: if you want to stream the data to the file instead of writing
all at once then you should use `.with_streaming_response` when making
the API request, e.g. `.with_streaming_response.get_binary_response()`
Úwb©ÚmodeN©Úopenrø   Úwrite)rQ   r9  Úfr�   s   &&  rK   Úwrite_to_fileÚBinaryAPIResponse.write_to_file÷  s>   € ô �$˜T×"Õ" aØŸ™Ö)�Ø—‘˜–ñ *÷ #×"×"Ò"ús   –)A	Á	A	rI   N©r   r¶   r·   r¸   Ú__doc__rE  r»   rI   rN   rK   r5  r5  ï  s   † ñ÷ñ rN   r5  c                  ó&   € ] tR tRtRtR R ltRtR# )ÚAsyncBinaryAPIResponsei  r6  c               ó    € V ^8„  d   QhRRRR/# r8  rI   )rJ   s   "rK   rL   Ú#AsyncBinaryAPIResponse.__annotate__  s   € ÷ $ñ $à$ð$ð 
ñ$rN   c              ƒ  óh  "  € \         P                  ! V4      pVP                  RR7      G Rj  x€L
 ;_uu_4       GRj  x€L
 pV P                  4         Rj  x€L
  pVP	                  V4      G Rj  x€L
  K%   LJ L; L$ LD'RRR4      GRj  x€L 
  R#   + GRj  x€L 
 '       g   i     R# ; i5ir=  ©ÚanyioÚPathrB  rø   rC  )rQ   r9  ÚpathrD  r�   s   &&   rK   rE  Ú$AsyncBinaryAPIResponse.write_to_file  s~   é € ô �zŠz˜$ÓˆØŸ™¨˜Ó-×-×-×-Ð-°Ø"Ÿo™oÔ/÷ $ð $�dØ—g‘g˜d“m×#Ò#ó .ñ$Ù#ð 0÷ .×-×-×-×-Ô-üs’   ‚,B2®A9¯B2¿A;Á B2ÁBÁBÁA=
ÁBÁBÁ2A?
Á3BÁ9B2Á;B2Á=BÁ?BÂBÂB2ÂBÂB2ÂB/	ÂBÂ
B/	Â'B/	Â)	B2rI   NrG  rI   rN   rK   rJ  rJ    s   † ñ÷$ñ $rN   rJ  c                  ó*   € ] tR tRtRR/R R lltRtR# )ÚStreamedBinaryAPIResponsei"  rô   Nc               ó$   € V ^8„  d   QhRRRRRR/# ©r@   r9  r:  rô   rõ   rG   rH   rI   )rJ   s   "rK   rL   Ú&StreamedBinaryAPIResponse.__annotate__#  s(   € ÷ ñ à$ðð ð	ð
 
ñrN   c               ó¼   € \        VRR7      ;_uu_ 4       pV P                  V4       F  pVP                  V4       K  	  RRR4       R#   + '       g   i     R# ; i©zeStreams the output to the given file.

Accepts a filename or any path-like object, e.g. pathlib.Path
r>  r?  NrA  )rQ   r9  rô   rD  r�   s   &&$  rK   Ústream_to_fileÚ(StreamedBinaryAPIResponse.stream_to_file#  s@   € ô �$˜T×"Õ" aØŸ™¨
Ö3�Ø—‘˜–ñ 4÷ #×"×"Ò"ús   –*A
Á
A	rI   ©r   r¶   r·   r¸   rZ  r»   rI   rN   rK   rT  rT  "  s   † ðð "&÷	ó rN   rT  c                  ó*   € ] tR tRtRR/R R lltRtR# )ÚAsyncStreamedBinaryAPIResponsei2  rô   Nc               ó$   € V ^8„  d   QhRRRRRR/# rV  rI   )rJ   s   "rK   rL   Ú+AsyncStreamedBinaryAPIResponse.__annotate__3  s(   € ÷ $ñ $à$ð$ð ð	$ð
 
ñ$rN   c             ƒ  ój  "  € \         P                  ! V4      pVP                  RR7      G Rj  x€L
 ;_uu_4       GRj  x€L
 pV P                  V4        Rj  x€L
  pVP	                  V4      G Rj  x€L
  K%   LK L< L$ LD'RRR4      GRj  x€L 
  R#   + GRj  x€L 
 '       g   i     R# ; i5irY  rN  )rQ   r9  rô   rQ  rD  r�   s   &&$   rK   rZ  Ú-AsyncStreamedBinaryAPIResponse.stream_to_file3  s€   é € ô �zŠz˜$ÓˆØŸ™¨˜Ó-×-×-×-Ð-°Ø"Ÿo™o¨jÔ9÷ $ð $�dØ—g‘g˜d“m×#Ò#ó .ñ$Ù#ð :÷ .×-×-×-×-Ô-üs’   ‚,B3®A:¯B3¿A<Á B3ÁBÁBÁA>
ÁBÁBÁ3B 
Á4BÁ:B3Á<B3Á>BÂ BÂBÂB3ÂBÂB3ÂB0	ÂBÂ
B0	Â(B0	Â*	B3rI   r\  rI   rN   rK   r^  r^  2  s   † ð$ð "&÷	$ó $rN   r^  c                  ó.   a € ] tR tRtR V 3R lltRtV ;t# )r•   iC  c               ó   € V ^8„  d   QhRR/# rî   rI   )rJ   s   "rK   rL   Ú$MissingStreamClassError.__annotate__D  s   € ÷ 
ñ 
˜$ñ 
rN   c                	ó&   <€ \         SV `  R 4       R# )zzThe `stream` argument was set to `True` but the `stream_cls` argument was not given. See `openai._streaming` for referenceN©ÚsuperrR   )rQ   r~   s   &€rK   rR   Ú MissingStreamClassError.__init__D  s   ø€ Ü‰Ñð Iö	
rN   rI   )r   r¶   r·   r¸   rR   r»   Ú__classcell__©r~   s   @rK   r•   r•   C  s   ø† ÷
ö 
rN   r•   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )rß   iJ  a  
Attempted to read or stream content, but the content has already
been streamed.

This can happen if you use a method like `.iter_lines()` and then attempt
to read th entire response body afterwards, e.g.

```py
response = await client.post(...)
async for line in response.iter_lines():
    ...  # do something with `line`

content = await response.read()
# ^ error
```

If you want this behaviour you'll need to either manually accumulate the response
content or call `await response.read()` before iterating over the stream.
c               ó   € V ^8„  d   QhRR/# rî   rI   )rJ   s   "rK   rL   Ú"StreamAlreadyConsumed.__annotate___  s   € ÷ 
"ñ 
"˜$ñ 
"rN   c                	ó*   <€ R p\         SV `  V4       R# )a&  Attempted to read or stream some content, but the content has already been streamed. This could be due to attempting to stream the response content more than once.

You can fix this by manually accumulating the response content while streaming or by calling `.read()` before starting to stream.Nrg  )rQ   r�   r~   s   & €rK   rR   ÚStreamAlreadyConsumed.__init___  s   ø€ ðAð 	ô 	‰Ñ˜Ö!rN   rI   )r   r¶   r·   r¸   rH  rR   r»   rj  rk  s   @rK   rß   rß   J  s   ø† ñ÷(
"ö 
"rN   rß   c                  ó>   € ] tR tRtRtR R ltR R ltR R ltR	tR
# )ÚResponseContextManageril  ú—Context manager for ensuring that a request is not made
until it is entered and that the response will always be closed
when the context manager exits
c               ó    € V ^8„  d   QhRRRR/# )r@   Úrequest_funczCallable[[], _APIResponseT]rG   rH   rI   )rJ   s   "rK   rL   Ú#ResponseContextManager.__annotate__r  s   € ÷ 5ñ 5Ð%@ð 5ÀTñ 5rN   c                	ó    € Wn         R V n        R # rP   ©Ú_request_funcÚ!_ResponseContextManager__response)rQ   ru  s   &&rK   rR   ÚResponseContextManager.__init__r  s   € Ø)ÔØ04ˆŽrN   c               ó   € V ^8„  d   QhRR/# )r@   rG   r+   rI   )rJ   s   "rK   rL   rv  v  s   € ÷ ñ ˜=ñ rN   c                	óD   € V P                  4       V n        V P                  # rP   rx  rW   s   &rK   Ú	__enter__Ú ResponseContextManager.__enter__v  s   € Ø×,Ñ,Ó.ˆŒØ�‰ÐrN   c               ó(   € V ^8„  d   QhRRRRRRRR/# ©	r@   Úexc_typeztype[BaseException] | Noner³   zBaseException | NoneÚexc_tbzTracebackType | NonerG   rH   rI   )rJ   s   "rK   rL   rv  z  s2   € ÷ $ñ $à,ð$ð "ð$ð %ð	$ð
 
ñ$rN   c                	óZ   € V P                   e   V P                   P                  4        R # R # rP   )rz  rñ   ©rQ   r‚  r³   rƒ  s   &&&&rK   Ú__exit__ÚResponseContextManager.__exit__z  s#   € ð �?‰?Ò&Ø�O‰O×!Ñ!Ö#ñ 'rN   )Ú
__responsery  N)	r   r¶   r·   r¸   rH  rR   r~  r†  r»   rI   rN   rK   rr  rr  l  s   † ñõ
5õ÷$ñ $rN   rr  c                  ó>   € ] tR tRtRtR R ltR R ltR R ltR	tR
# )ÚAsyncResponseContextManageri„  rs  c               ó    € V ^8„  d   QhRRRR/# )r@   Úapi_requestúAwaitable[_AsyncAPIResponseT]rG   rH   rI   )rJ   s   "rK   rL   Ú(AsyncResponseContextManager.__annotate__Š  s   € ÷ :ñ :Ð$Að :Àdñ :rN   c                	ó    € Wn         R V n        R # rP   ©Ú_api_requestÚ&_AsyncResponseContextManager__response)rQ   rŒ  s   &&rK   rR   Ú$AsyncResponseContextManager.__init__Š  s   € Ø'ÔØ59ˆŽrN   c               ó   € V ^8„  d   QhRR/# )r@   rG   r-   rI   )rJ   s   "rK   rL   rŽ  Ž  s   € ÷ ñ Ð"4ñ rN   c              ƒ  	óX   "  € V P                   G R j  x€L
 V n        V P                  #  L5irP   r�  rW   s   &rK   Ú
__aenter__Ú&AsyncResponseContextManager.__aenter__Ž  s$   é € Ø $× 1Ñ 1×1ˆŒØ�‰Ðñ 2ùs   ‚*’(“*c               ó(   € V ^8„  d   QhRRRRRRRR/# r�  rI   )rJ   s   "rK   rL   rŽ  ’  s2   € ÷ *ñ *à,ð*ð "ð*ð %ð	*ð
 
ñ*rN   c              ƒ  	óv   "  € V P                   e%   V P                   P                  4       G R j  x€L
  R # R #  L5irP   )r’  rñ   r…  s   &&&&rK   Ú	__aexit__Ú%AsyncResponseContextManager.__aexit__’  s/   é € ð �?‰?Ò&Ø—/‘/×'Ñ'Ó)×)Ò)ñ 'Ù)ùs   ‚,9®7¯	9)rˆ  r‘  N)	r   r¶   r·   r¸   rH  rR   r–  rš  r»   rI   rN   rK   rŠ  rŠ  „  s   † ñõ
:õ÷*ñ *rN   rŠ  c               ó    € V ^8„  d   QhRRRR/# )r@   ÚfuncúCallable[P, R]rG   z3Callable[P, ResponseContextManager[APIResponse[R]]]rI   )rJ   s   "rK   rL   rL   œ  s   € ÷ ñ  ~ð Ð:mñ rN   c                óL   a € \         P                  ! S 4      R V 3R ll4       pV# )ú•Higher order function that takes one of our bound API methods and wraps it
to support streaming and returning the raw `APIResponse` object directly.
c               ó$   € V ^8„  d   QhRRRRRR/# )r@   ÚargsúP.argsÚkwargsúP.kwargsrG   z&ResponseContextManager[APIResponse[R]]rI   )rJ   s   "rK   rL   Ú2to_streamed_response_wrapper.<locals>.__annotate__¢  s'   € ÷ Xñ X�vð X¨ð XÐ6\ñ XrN   c                 ó
  <€ / \        \        VP                  R 4      4      ;'       g    / CpRV\        &   W!R &   \        P
                  ! S.V O5/ VB p\        \        \        . \        \        ,          3,          V4      4      # ©Úextra_headersrD   )
r   r   r§   r   Ú	functoolsÚpartialrr  r
   r�   r)   ©r¢  r¤  r©  Úmake_requestr�  s   *,  €rK   ÚwrappedÚ-to_streamed_response_wrapper.<locals>.wrapped¡  ss   ø€ à(Z¬D´°f·j±jÀÓ6QÓ,R×,XÐ,XÐVXÐ(ZˆØ-5ˆÔ)Ñ*à"/ˆÑä ×(Ò(¨Ð?°Ò?¸Ñ?ˆä%¤d¬8°B¼ÄA½Ð4FÕ+GÈÓ&VÓWÐWrN   ©rª  Úwraps©r�  r®  s   f rK   Úto_streamed_response_wrapperr³  œ  s)   ø€ ô
 ‡_‚_�TÓ÷Xó ðXð €NrN   c               ó    € V ^8„  d   QhRRRR/# )r@   r�  úCallable[P, Awaitable[R]]rG   z=Callable[P, AsyncResponseContextManager[AsyncAPIResponse[R]]]rI   )rJ   s   "rK   rL   rL   ¯  s   € ÷ ñ Ø
#ðàBñrN   c                óL   a € \         P                  ! S 4      R V 3R ll4       pV# )r   c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r¢  r£  r¤  r¥  rG   z0AsyncResponseContextManager[AsyncAPIResponse[R]]rI   )rJ   s   "rK   rL   Ú8async_to_streamed_response_wrapper.<locals>.__annotate__·  s'   € ÷ _ñ _�vð _¨ð _Ð6fñ _rN   c                 óâ   <€ / \        \        VP                  R 4      4      ;'       g    / CpRV\        &   W!R &   S! V / VB p\	        \        \
        \        \        ,          ,          V4      4      # r¨  )r   r   r§   r   rŠ  r   r  r)   r¬  s   *,  €rK   r®  Ú3async_to_streamed_response_wrapper.<locals>.wrapped¶  sf   ø€ à(Z¬D´°f·j±jÀÓ6QÓ,R×,XÐ,XÐVXÐ(ZˆØ-5ˆÔ)Ñ*à"/ˆÑá˜TÐ, VÑ,ˆä*¬4´	Ô:JÌ1Õ:MÕ0NÐP\Ó+]Ó^Ð^rN   r°  r²  s   f rK   Ú"async_to_streamed_response_wrapperr»  ¯  s)   ø€ ô ‡_‚_�TÓ÷_ó ð_ð €NrN   c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r�  úCallable[P, object]Úresponse_clsútype[_APIResponseT]rG   z2Callable[P, ResponseContextManager[_APIResponseT]]rI   )rJ   s   "rK   rL   rL   Ä  s&   € ÷ ñ Ø
ðà%ðð 8ñrN   c                óP   a a€ \         P                  ! S 4      R V V3R ll4       pV# )á  Higher order function that takes one of our bound API methods and an `APIResponse` class
and wraps the method to support streaming and returning the given response class directly.

Note: the given `response_cls` *must* be concrete, e.g. `class BinaryAPIResponse(APIResponse[bytes])`
c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r¢  r£  r¤  r¥  rG   z%ResponseContextManager[_APIResponseT]rI   )rJ   s   "rK   rL   Ú9to_custom_streamed_response_wrapper.<locals>.__annotate__Ï  s'   € ÷ 	Wñ 	W�vð 	W¨ð 	WÐ6[ñ 	WrN   c                 ó  <€ / \        \        VP                  R 4      4      ;'       g    / CpRV\        &   SV\        &   W!R &   \
        P                  ! S.V O5/ VB p\        \        \        . \        3,          V4      4      # r¨  )
r   r   r§   r   r   rª  r«  rr  r
   r+   ©r¢  r¤  r©  r­  r�  r¾  s   *,  €€rK   r®  Ú4to_custom_streamed_response_wrapper.<locals>.wrappedÎ  sz   ø€ à(Z¬D´°f·j±jÀÓ6QÓ,R×,XÐ,XÐVXÐ(ZˆØ-5ˆÔ)Ñ*Ø1=ˆÔ-Ñ.à"/ˆÑä ×(Ò(¨Ð?°Ò?¸Ñ?ˆä%¤d¬8°B¼Ð4EÕ+FÈÓ&UÓVÐVrN   r°  ©r�  r¾  r®  s   ff rK   Ú#to_custom_streamed_response_wrapperrÈ  Ä  s/   ù€ ô ‡_‚_�TÓ÷	Wð 	Wó ð	Wð €NrN   c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r�  úCallable[P, Awaitable[object]]r¾  útype[_AsyncAPIResponseT]rG   z<Callable[P, AsyncResponseContextManager[_AsyncAPIResponseT]]rI   )rJ   s   "rK   rL   rL   Ý  s'   € ÷ ñ Ø
(ðà*ðð BñrN   c                óP   a a€ \         P                  ! S 4      R V V3R ll4       pV# )rÁ  c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r¢  r£  r¤  r¥  rG   z/AsyncResponseContextManager[_AsyncAPIResponseT]rI   )rJ   s   "rK   rL   Ú?async_to_custom_streamed_response_wrapper.<locals>.__annotate__è  s'   € ÷ 	^ñ 	^�vð 	^¨ð 	^Ð6eñ 	^rN   c                 óÞ   <€ / \        \        VP                  R 4      4      ;'       g    / CpRV\        &   SV\        &   W!R &   S! V / VB p\        \        \        \        ,          V4      4      # r¨  )r   r   r§   r   r   rŠ  r   r-   rÅ  s   *,  €€rK   r®  Ú:async_to_custom_streamed_response_wrapper.<locals>.wrappedç  sk   ø€ à(Z¬D´°f·j±jÀÓ6QÓ,R×,XÐ,XÐVXÐ(ZˆØ-5ˆÔ)Ñ*Ø1=ˆÔ-Ñ.à"/ˆÑá˜TÐ, VÑ,ˆä*¬4´	Ô:LÕ0MÈ|Ó+\Ó]Ð]rN   r°  rÇ  s   ff rK   Ú)async_to_custom_streamed_response_wrapperrÑ  Ý  s/   ù€ ô ‡_‚_�TÓ÷	^ð 	^ó ð	^ð €NrN   c               ó    € V ^8„  d   QhRRRR/# )r@   r�  rž  rG   zCallable[P, APIResponse[R]]rI   )rJ   s   "rK   rL   rL   ö  s   € ÷ ñ  .ð Ð5Pñ rN   c                óL   a € \         P                  ! S 4      R V 3R ll4       pV# )ú‡Higher order function that takes one of our bound API methods and wraps it
to support returning the raw `APIResponse` object directly.
c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r¢  r£  r¤  r¥  rG   zAPIResponse[R]rI   )rJ   s   "rK   rL   Ú-to_raw_response_wrapper.<locals>.__annotate__ü  s!   € ÷ ;ñ ;�vð ;¨ð ;°nñ ;rN   c                 ó¶   <€ / \        \        VP                  R 4      4      ;'       g    / CpRV\        &   W!R &   \        \        \
        ,          S! V / VB 4      # ©r©  rA   )r   r   r§   r   r�   r)   ©r¢  r¤  r©  r�  s   *, €rK   r®  Ú(to_raw_response_wrapper.<locals>.wrappedû  sT   ø€ à(Z¬D´°f·j±jÀÓ6QÓ,R×,XÐ,XÐVXÐ(ZˆØ-2ˆÔ)Ñ*à"/ˆÑä”K¤•N¡D¨$Ð$9°&Ñ$9Ó:Ð:rN   r°  r²  s   f rK   Úto_raw_response_wrapperrÛ  ö  s'   ø€ ô
 ‡_‚_�TÓ÷;ó ð;ð €NrN   c               ó    € V ^8„  d   QhRRRR/# )r@   r�  rµ  rG   z+Callable[P, Awaitable[AsyncAPIResponse[R]]]rI   )rJ   s   "rK   rL   rL     s   € ÷ ñ Ð(Að ÐFqñ rN   c                óL   a € \         P                  ! S 4      R V 3R ll4       pV# )rÔ  c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r¢  r£  r¤  r¥  rG   zAsyncAPIResponse[R]rI   )rJ   s   "rK   rL   Ú3async_to_raw_response_wrapper.<locals>.__annotate__  s'   € ÷ Fñ F˜Vð F¨xð FÐ<Oñ FrN   c               Ÿ  óÒ   <"  € / \        \        VP                  R 4      4      ;'       g    / CpRV\        &   W!R &   \        \        \
        ,          S! V / VB G Rj  x€L
 4      #  L5i)r©  rA   N)r   r   r§   r   r  r)   rÙ  s   *, €rK   r®  Ú.async_to_raw_response_wrapper.<locals>.wrapped  s_   øé € à(Z¬D´°f·j±jÀÓ6QÓ,R×,XÐ,XÐVXÐ(ZˆØ-2ˆÔ)Ñ*à"/ˆÑäÔ$¤QÕ'©t°TÐ/D¸VÑ/D×)DÓEÐEÑ)Dùs   ƒAA'ÁA%
Á	A'r°  r²  s   f rK   Úasync_to_raw_response_wrapperrâ    s)   ø€ ô
 ‡_‚_�TÓ÷Fó ðFð €NrN   c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r�  r½  r¾  r¿  rG   zCallable[P, _APIResponseT]rI   )rJ   s   "rK   rL   rL     s&   € ÷ ñ Ø
ðà%ðð  ñrN   c                óP   a a€ \         P                  ! S 4      R V V3R ll4       pV# )á  Higher order function that takes one of our bound API methods and an `APIResponse` class
and wraps the method to support returning the given response class directly.

Note: the given `response_cls` *must* be concrete, e.g. `class BinaryAPIResponse(APIResponse[bytes])`
c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r¢  r£  r¤  r¥  rG   r+   rI   )rJ   s   "rK   rL   Ú4to_custom_raw_response_wrapper.<locals>.__annotate__#  s!   € ÷ :ñ :�vð :¨ð :°mñ :rN   c                 ó²   <€ / \        \        VP                  R 4      4      ;'       g    / CpRV\        &   SV\        &   W!R &   \        \
        S! V / VB 4      # rØ  )r   r   r§   r   r   r+   ©r¢  r¤  r©  r�  r¾  s   *, €€rK   r®  Ú/to_custom_raw_response_wrapper.<locals>.wrapped"  s[   ø€ à(Z¬D´°f·j±jÀÓ6QÓ,R×,XÐ,XÐVXÐ(ZˆØ-2ˆÔ)Ñ*Ø1=ˆÔ-Ñ.à"/ˆÑä”M¡4¨Ð#8°Ñ#8Ó9Ð9rN   r°  rÇ  s   ff rK   Úto_custom_raw_response_wrapperrë    s,   ù€ ô ‡_‚_�TÓ÷:ð :ó ð:ð €NrN   c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r�  rÊ  r¾  rË  rG   z*Callable[P, Awaitable[_AsyncAPIResponseT]]rI   )rJ   s   "rK   rL   rL   /  s&   € ÷ ñ Ø
(ðà*ðð 0ñrN   c                óP   a a€ \         P                  ! S 4      R V V3R ll4       pV# )rå  c               ó$   € V ^8„  d   QhRRRRRR/# )r@   r¢  r£  r¤  r¥  rG   r�  rI   )rJ   s   "rK   rL   Ú:async_to_custom_raw_response_wrapper.<locals>.__annotate__:  s'   € ÷ Jñ J�vð J¨ð JÐ6Sñ JrN   c                 óÈ   <€ / \        \        VP                  R 4      4      ;'       g    / CpRV\        &   SV\        &   W!R &   \        \
        \        ,          S! V / VB 4      # rØ  )r   r   r§   r   r   r   r-   ré  s   *, €€rK   r®  Ú5async_to_custom_raw_response_wrapper.<locals>.wrapped9  sa   ø€ à(Z¬D´°f·j±jÀÓ6QÓ,R×,XÐ,XÐVXÐ(ZˆØ-2ˆÔ)Ñ*Ø1=ˆÔ-Ñ.à"/ˆÑä”IÔ0Õ1±4¸Ð3HÀÑ3HÓIÐIrN   r°  rÇ  s   ff rK   Ú$async_to_custom_raw_response_wrapperrò  /  s/   ù€ ô ‡_‚_�TÓ÷Jð Jó ðJð €NrN   c               ó    € V ^8„  d   QhRRRR/# )r@   Útypztype[BaseAPIResponse[Any]]rG   r­   rI   )rJ   s   "rK   rL   rL   F  s   € ÷ ñ Ð9ð ¸dñ rN   c           	     óP   € \        V \        R\        \        \        34      ^ R7      # )zôGiven a type like `APIResponse[T]`, returns the generic type variable `T`.

This also handles the case where a concrete subclass is given, e.g.
```py
class MyResponse(APIResponse[bytes]):
    ...

extract_response_type(MyResponse) -> bytes
```
ztuple[type, ...])Úgeneric_basesÚindex)r   r   r0   r�   r  )rô  s   &rK   Úextract_response_typerø  F  s*   € ô &ØÜÐ-´ÄÔN^Ð/_Ó`Øôð rN   )YÚ__conditional_annotations__Ú
__future__r   Úosr›   ÚloggingÚdatetimerª  Útypesr   Útypingr   r   r   r   r	   r
   r   r   r   r   Útyping_extensionsr   r   r   r   rO  r¥   r¡   Ú_typesr   Ú_utilsr   r   r   r   r   Ú_httpx2r   r   Ú_modelsr   r   r   Ú
_constantsr   r   Ú
_streamingr    r!   r"   r#   Ú_exceptionsr$   r%   r&   Ú_base_clientr'   r(   r)   r*   r+   r-   Ú	getLoggerr   r.   r¹   r0   r�   r  r—   r5  rJ  rT  r^  r“   r•   rß   rr  rŠ  r³  r»  rÈ  rÑ  rÛ  râ  rë  rò  rø  )rù  s   @rK   Ú<module>r
     sž  øðß "Ð "ã 	Û Û Û Û Ý ÷÷ ÷ ÷ IÓ Hã Û Û å ß qÕ qß Dß <Ñ <ß Dß \Ó \ß @çÝ,Ý(ñ ˆcƒN€ÙˆCƒL€ÙˆTƒ]€Ù˜Ð/AÔB€ÙÐ1Ð9PÔQÐ à×'Ò'¨Ó1€€^Ó 1ôc
�g˜a•jô c
ôLj�/ !Õ$ô jôZh� qÕ)ô hôV˜ EÕ*ô ô2$Ð-¨eÕ4ô $ô4 ¨EÕ 2ô ô $Ð%5°eÕ%<ô $ô"
˜iô 
ô"˜Kô "ôD$˜W ]Õ3ô $ô0* 'Ð*<Õ"=ô *õ0õ&õ*õ2õ2õ"õ"õ.÷.rN   