§
    ÒÁ³gÎ  ã                  óf  — d dl mZ d dlmZmZ d dlZddlmZ ddlm	Z	m
Z
mZmZmZmZ ddlmZmZmZmZ ddlmZ dd	lmZmZ dd
lmZmZ ddlmZ ddlmZ ddl m!Z! ddgZ" G d„ de¦  «        Z# G d„ de¦  «        Z$ G d„ d¦  «        Z% G d„ d¦  «        Z& G d„ d¦  «        Z' G d„ d¦  «        Z(dS )é    )Úannotations)ÚMappingÚcastNé   )Ú_legacy_response)Ú	NOT_GIVENÚBodyÚQueryÚHeadersÚNotGivenÚ	FileTypes)Úextract_filesÚmaybe_transformÚdeepcopy_minimalÚ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   — e Zd Zedd„¦   «         Zedd„¦   «         Zdddedœdd„ZdS )r   ÚreturnÚPartsWithRawResponsec                ó    — t          | ¦  «        S ©a  
        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
        )r   ©Úselfs    ú\/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/openai/resources/uploads/parts.pyÚwith_raw_responsezParts.with_raw_response   s   € õ $ DÑ)Ô)Ð)ó    ÚPartsWithStreamingResponsec                ó    — t          | ¦  «        S ©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
        )r&   r!   s    r#   Úwith_streaming_responsezParts.with_streaming_response&   s   € õ *¨$Ñ/Ô/Ð/r%   N©Úextra_headersÚextra_queryÚ
extra_bodyÚtimeoutÚ	upload_idÚstrÚdatar   r+   úHeaders | Noner,   úQuery | Noner-   úBody | Noner.   ú'float | httpx.Timeout | None | NotGivenr   c               ód  — |st          d|›�¦  «        ‚t          d|i¦  «        }t          t          t          t
          t          f         |¦  «        dgg¬¦  «        }ddi|pi ¥}|                      d|› d�t          |t          j
        ¦  «        |t          ||||¬¦  «        t          ¬	¦  «        S )
á½  
        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 r1   ©ÚpathsúContent-Typeúmultipart/form-dataú	/uploads/ú/partsr*   ©ÚbodyÚfilesÚoptionsÚcast_to)Ú
ValueErrorr   r   r   r   r0   ÚobjectÚ_postr   r   ÚPartCreateParamsr   r   ©	r"   r/   r1   r+   r,   r-   r.   r@   rA   s	            r#   ÚcreatezParts.create/   s×   € ðH ð 	gÝÐeÐXaÐeÐeÑfÔfÐfÝ ¨ Ñ/Ô/ˆÝ�d¥7­3µ¨;Ô#7¸Ñ>Ô>ÈÀxÀjÐQÑQÔQˆð (Ð)>ÐXÀ=ÐCVÐTVÐXˆØ�zŠzØ)˜	Ð)Ð)Ð)Ý  Õ'9Ô'JÑKÔKØÝ(Ø+¸ÐQ[Ðelðñ ô õ ð ñ 
ô 
ð 	
r%   )r   r   )r   r&   ©r/   r0   r1   r   r+   r2   r,   r3   r-   r4   r.   r5   r   r   ©Ú__name__Ú
__module__Ú__qualname__r   r$   r)   r   rI   © r%   r#   r   r      s~   € € € € € Øð*ð *ð *ñ „_ð*ð ð0ð 0ð 0ñ „_ð0ð )-Ø$(Ø"&Ø;Dð4
ð 4
ð 4
ð 4
ð 4
ð 4
ð 4
ð 4
r%   c                  óR   — e Zd Zedd„¦   «         Zedd„¦   «         Zdddedœdd„ZdS )r   r   ÚAsyncPartsWithRawResponsec                ó    — t          | ¦  «        S r    )rQ   r!   s    r#   r$   zAsyncParts.with_raw_responseg   s   € õ )¨Ñ.Ô.Ð.r%   ÚAsyncPartsWithStreamingResponsec                ó    — t          | ¦  «        S r(   )rS   r!   s    r#   r)   z"AsyncParts.with_streaming_responseq   s   € õ /¨tÑ4Ô4Ð4r%   Nr*   r/   r0   r1   r   r+   r2   r,   r3   r-   r4   r.   r5   r   c             ƒ  ó€  K  — |st          d|›�¦  «        ‚t          d|i¦  «        }t          t          t          t
          t          f         |¦  «        dgg¬¦  «        }ddi|pi ¥}|                      d|› d�t          |t          j
        ¦  «        ƒ d{V —†|t          ||||¬	¦  «        t          ¬
¦  «        ƒ d{V —†S )r7   r8   r1   r9   r;   r<   r=   r>   Nr*   r?   )rD   r   r   r   r   r0   rE   rF   r   r   rG   r   r   rH   s	            r#   rI   zAsyncParts.createz   s  è è € ðH ð 	gÝÐeÐXaÐeÐeÑfÔfÐfÝ ¨ Ñ/Ô/ˆÝ�d¥7­3µ¨;Ô#7¸Ñ>Ô>ÈÀxÀjÐQÑQÔQˆð (Ð)>ÐXÀ=ÐCVÐTVÐXˆØ—Z’ZØ)˜	Ð)Ð)Ð)Ý,¨TÕ3EÔ3VÑWÔWÐWÐWÐWÐWÐWÐWØÝ(Ø+¸ÐQ[Ðelðñ ô õ ð  ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
ð 	
r%   )r   rQ   )r   rS   rJ   rK   rO   r%   r#   r   r   f   s~   € € € € € Øð/ð /ð /ñ „_ð/ð ð5ð 5ð 5ñ „_ð5ð )-Ø$(Ø"&Ø;Dð4
ð 4
ð 4
ð 4
ð 4
ð 4
ð 4
ð 4
r%   c                  ó   — e Zd Zdd„ZdS )r   Úpartsr   r   ÚNonec                óP   — || _         t          j        |j        ¦  «        | _        d S ©N)Ú_partsr   Úto_raw_response_wrapperrI   ©r"   rW   s     r#   Ú__init__zPartsWithRawResponse.__init__²   s&   € ØˆŒå&Ô>ØŒLñ
ô 
ˆŒˆˆr%   N©rW   r   r   rX   ©rL   rM   rN   r^   rO   r%   r#   r   r   ±   ó(   € € € € € ð
ð 
ð 
ð 
ð 
ð 
r%   r   c                  ó   — e Zd Zdd„ZdS )rQ   rW   r   r   rX   c                óP   — || _         t          j        |j        ¦  «        | _        d S rZ   )r[   r   Úasync_to_raw_response_wrapperrI   r]   s     r#   r^   z"AsyncPartsWithRawResponse.__init__»   s&   € ØˆŒå&ÔDØŒLñ
ô 
ˆŒˆˆr%   N©rW   r   r   rX   r`   rO   r%   r#   rQ   rQ   º   ra   r%   rQ   c                  ó   — e Zd Zdd„ZdS )r&   rW   r   r   rX   c                óF   — || _         t          |j        ¦  «        | _        d S rZ   )r[   r   rI   r]   s     r#   r^   z#PartsWithStreamingResponse.__init__Ä   s#   € ØˆŒå2ØŒLñ
ô 
ˆŒˆˆr%   Nr_   r`   rO   r%   r#   r&   r&   Ã   ra   r%   r&   c                  ó   — e Zd Zdd„ZdS )rS   rW   r   r   rX   c                óF   — || _         t          |j        ¦  «        | _        d S rZ   )r[   r   rI   r]   s     r#   r^   z(AsyncPartsWithStreamingResponse.__init__Í   s#   € ØˆŒå8ØŒLñ
ô 
ˆŒˆˆr%   Nre   r`   rO   r%   r#   rS   rS   Ì   ra   r%   rS   ))Ú
__future__r   Útypingr   r   ÚhttpxÚ r   Ú_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   rQ   r&   rS   rO   r%   r#   ú<module>rw      sM  ðð #Ð "Ð "Ð "Ð "Ð "à  Ð  Ð  Ð  Ð  Ð  Ð  Ð  à €€€à  Ð  Ð  Ð  Ð  Ð  Ø JÐ JÐ JÐ JÐ JÐ JÐ JÐ JÐ JÐ JÐ JÐ JÐ JÐ JÐ JÐ Jðð ð ð ð ð ð ð ð ð ð ð ð 'Ð &Ð &Ð &Ð &Ð &Ø :Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ø YÐ YÐ YÐ YÐ YÐ YÐ YÐ YØ 0Ð 0Ð 0Ð 0Ð 0Ð 0Ø /Ð /Ð /Ð /Ð /Ð /Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3à�LÐ
!€ðH
ð H
ð H
ð H
ð H
ˆOñ H
ô H
ð H
ðVH
ð H
ð H
ð H
ð H
Ð!ñ H
ô H
ð H
ðV
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð 
ð 
r%   