ó
    ûÞ jˆ!  ã                  óL  • S SK Jr  S SKJrJr  S SKrSSKJr  SSKJ	r	  SSK
JrJrJrJrJrJr  SSKJrJrJrJr  SS	KJr  SS
KJrJr  SSKJrJr  SSKJr  SSK J!r!  SSK"J#r#  SS/r$ " S S\5      r% " S S\5      r& " S S5      r' " S S5      r( " S S5      r) " S S5      r*g)é    )Úannotations)ÚMappingÚcastNé   )Ú_legacy_response)Údeepcopy_with_paths)ÚBodyÚQueryÚHeadersÚNotGivenÚ	FileTypesÚ	not_given)Úextract_filesÚpath_templateÚmaybe_transformÚasync_maybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapper)Úmake_request_options)Úpart_create_params)Ú
UploadPartÚPartsÚ
AsyncPartsc                  ór   • \ rS rSrSr\S	S j5       r\S
S j5       rSSS\S.             SS jjr	Sr
g)r   é   ú4Use Uploads to upload large files in multiple parts.c                ó   • [        U 5      $ ©zï
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers
)ÚPartsWithRawResponse©Úselfs    ÚX/var/www/html/gaurav/venv/lib/python3.13/site-packages/openai/resources/uploads/parts.pyÚwith_raw_responseÚParts.with_raw_response   s   € ô $ DÓ)Ð)ó    c                ó   • [        U 5      $ ©z´
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/openai/openai-python#with_streaming_response
)ÚPartsWithStreamingResponser#   s    r%   Úwith_streaming_responseÚParts.with_streaming_response$   s   € ô *¨$Ó/Ð/r(   N©Úextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc               óB  • U(       d  [        SU< 35      e[        SU0S//5      n[        [        [        [
        [        4   U5      S//S9nSS0U=(       d    0 EnU R                  [        SUS9[        U[        R                  5      U[        UUUUSS	0S
9[        S9$ )á=  
Adds a
[Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an
[Upload](https://platform.openai.com/docs/api-reference/uploads/object) object.
A Part represents a chunk of bytes from the file you are trying to upload.

Each Part can be at most 64 MB, and you can add Parts until you hit the Upload
maximum of 8 GB.

It is possible to add multiple Parts in parallel. You can decide the intended
order of the Parts when you
[complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete).

Args:
  data: The chunk of bytes for this Part.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
ú8Expected a non-empty value for `upload_id` but received Údata©ÚpathsúContent-Typeúmultipart/form-dataú/uploads/{upload_id}/parts©Ú	upload_idÚbearer_authT©r/   r0   r1   r2   Úsecurity©ÚbodyÚfilesÚoptionsÚcast_to)Ú
ValueErrorr   r   r   r   ÚstrÚobjectÚ_postr   r   r   ÚPartCreateParamsr   r   ©	r$   r=   r6   r/   r0   r1   r2   rB   rC   s	            r%   ÚcreateÚParts.create-   s¿   € öH ÜÐWÐXaÑWdÐeÓfÐfÜ" F¨D >°V°H°:Ó>ˆÜœd¤7¬3´¨;Ñ#7¸Ó>ÈÀxÀjÑQˆð (Ð)>ÐXÀ=×CVÐTVÐXˆØ�z‰zÜÐ6À)ÑLÜ  Ô'9×'JÑ'JÓKØÜ(Ø+Ø'Ø%ØØ'¨Ð.ñô ð ð 
ð 	
r(   © )Úreturnr"   )rO   r+   ©r=   rG   r6   r   r/   zHeaders | Noner0   zQuery | Noner1   zBody | Noner2   z(float | httpx2.Timeout | None | NotGivenrO   r   ©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r&   r,   r   rL   Ú__static_attributes__rN   r(   r%   r   r      s‡   † Ù>àó*ó ð*ð ó0ó ð0ð )-Ø$(Ø"&Ø<Eñ8
àð8
ð ð	8
ð &ð8
ð "ð8
ð  ð8
ð :ð8
ð 
÷8
ð 8
r(   c                  ór   • \ rS rSrSr\S	S j5       r\S
S j5       rSSS\S.             SS jjr	Sr
g)r   éh   r   c                ó   • [        U 5      $ r!   )ÚAsyncPartsWithRawResponser#   s    r%   r&   ÚAsyncParts.with_raw_responsek   s   € ô )¨Ó.Ð.r(   c                ó   • [        U 5      $ r*   )ÚAsyncPartsWithStreamingResponser#   s    r%   r,   Ú"AsyncParts.with_streaming_responseu   s   € ô /¨tÓ4Ð4r(   Nr.   c             ƒ  ór  #   • U(       d  [        SU< 35      e[        SU0S//5      n[        [        [        [
        [        4   U5      S//S9nSS0U=(       d    0 EnU R                  [        SUS9[        U[        R                  5      I Sh  v•N U[        UUUUS	S
0S9[        S9I Sh  v•N $  N" N7f)r4   r5   r6   r7   r9   r:   r;   r<   Nr>   Tr?   rA   )rF   r   r   r   r   rG   rH   rI   r   r   r   rJ   r   r   rK   s	            r%   rL   ÚAsyncParts.create~   sÒ   é € öH ÜÐWÐXaÑWdÐeÓfÐfÜ" F¨D >°V°H°:Ó>ˆÜœd¤7¬3´¨;Ñ#7¸Ó>ÈÀxÀjÑQˆð (Ð)>ÐXÀ=×CVÐTVÐXˆØ—Z‘ZÜÐ6À)ÑLÜ,¨TÔ3E×3VÑ3VÓW×WØÜ(Ø+Ø'Ø%ØØ'¨Ð.ñô ð  ð 
÷ 
ð 	
áWñ
ùs$   ‚BB7ÂB3
ÂB7Â.B5Â/B7Â5B7rN   )rO   r[   )rO   r^   rP   rQ   rN   r(   r%   r   r   h   s‡   † Ù>àó/ó ð/ð ó5ó ð5ð )-Ø$(Ø"&Ø<Eñ8
àð8
ð ð	8
ð &ð8
ð "ð8
ð  ð8
ð :ð8
ð 
÷8
ð 8
r(   c                  ó   • \ rS rSrSS jrSrg)r"   é¹   c                óZ   • Xl         [        R                  " UR                  5      U l        g ©N)Ú_partsr   Úto_raw_response_wrapperrL   ©r$   Úpartss     r%   Ú__init__ÚPartsWithRawResponse.__init__º   s    € ØŒä&×>Ò>Ø�L‰Ló
ˆ�r(   ©rf   rL   N©ri   r   rO   ÚNone©rR   rS   rT   rU   rj   rW   rN   r(   r%   r"   r"   ¹   ó   † ÷
r(   r"   c                  ó   • \ rS rSrSS jrSrg)r[   éÂ   c                óZ   • Xl         [        R                  " UR                  5      U l        g re   )rf   r   Úasync_to_raw_response_wrapperrL   rh   s     r%   rj   Ú"AsyncPartsWithRawResponse.__init__Ã   s    € ØŒä&×DÒDØ�L‰Ló
ˆ�r(   rl   N©ri   r   rO   rn   ro   rN   r(   r%   r[   r[   Â   rp   r(   r[   c                  ó   • \ rS rSrSS jrSrg)r+   éË   c                óD   • Xl         [        UR                  5      U l        g re   )rf   r   rL   rh   s     r%   rj   Ú#PartsWithStreamingResponse.__init__Ì   s   € ØŒä2Ø�L‰Ló
ˆ�r(   rl   Nrm   ro   rN   r(   r%   r+   r+   Ë   rp   r(   r+   c                  ó   • \ rS rSrSS jrSrg)r^   éÔ   c                óD   • Xl         [        UR                  5      U l        g re   )rf   r   rL   rh   s     r%   rj   Ú(AsyncPartsWithStreamingResponse.__init__Õ   s   € ØŒä8Ø�L‰Ló
ˆ�r(   rl   Nrv   ro   rN   r(   r%   r^   r^   Ô   rp   r(   r^   )+Ú
__future__r   Útypingr   r   Úhttpx2Ú r   Ú_filesr   Ú_typesr	   r
   r   r   r   r   Ú_utilsr   r   r   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   Ú_base_clientr   Útypes.uploadsr   Útypes.uploads.upload_partr   Ú__all__r   r   r"   r[   r+   r^   rN   r(   r%   Ú<module>r�      s…   ðõ #ç  ã å  Ý )ß J× Jß ZÓ ZÝ &ß :ß YÝ 0Ý /Ý 3à�LÐ
!€ôN
ˆOô N
ôbN
Ð!ô N
÷b
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r(   