§
    ÒÁ³gu  ã                  óv  — d dl mZ d dlmZmZmZ d dlZddlmZ ddl	m
Z
 ddlmZmZmZmZmZ ddl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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)ÚListÚUnionÚIterableNé   )Ú_legacy_response)Úmoderation_create_params)Ú	NOT_GIVENÚBodyÚQueryÚHeadersÚNotGiven)Úmaybe_transformÚasync_maybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapper)Úmake_request_options)ÚModerationModel)ÚModerationCreateResponse)ÚModerationMultiModalInputParamÚModerationsÚAsyncModerationsc                  óT   — e Zd Zedd„¦   «         Zedd„¦   «         Zedddedœdd„ZdS )r   ÚreturnÚModerationsWithRawResponsec                ó    — 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    úZ/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/openai/resources/moderations.pyÚwith_raw_responsezModerations.with_raw_response   s   € õ *¨$Ñ/Ô/Ð/ó    Ú ModerationsWithStreamingResponsec                ó    — 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#Moderations.with_streaming_response&   s   € õ 0°Ñ5Ô5Ð5r%   N©ÚmodelÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutÚinputú?Union[str, List[str], Iterable[ModerationMultiModalInputParam]]r+   ú&Union[str, ModerationModel] | NotGivenr,   úHeaders | Noner-   úQuery | Noner.   úBody | Noner/   ú'float | httpx.Timeout | None | NotGivenr   c          
     ó–   — |                       dt          ||dœt          j        ¦  «        t	          ||||¬¦  «        t
          ¬¦  «        S )áª  Classifies if text and/or image inputs are potentially harmful.

        Learn more in
        the [moderation guide](https://platform.openai.com/docs/guides/moderation).

        Args:
          input: Input (or inputs) to classify. Can be a single string, an array of strings, or
              an array of multi-modal input objects similar to other models.

          model: The content moderation model you would like to use. Learn more in
              [the moderation guide](https://platform.openai.com/docs/guides/moderation), and
              learn about available models
              [here](https://platform.openai.com/docs/models#moderation).

          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
        ú/moderations©r0   r+   ©r,   r-   r.   r/   ©ÚbodyÚoptionsÚcast_to)Ú_postr   r	   ÚModerationCreateParamsr   r   ©r"   r0   r+   r,   r-   r.   r/   s          r#   ÚcreatezModerations.create/   sl   € ðD �zŠzØÝ à"Ø"ðð õ )Ô?ñô õ )Ø+¸ÐQ[Ðelðñ ô õ -ð ñ 
ô 
ð 	
r%   )r   r   )r   r&   ©r0   r1   r+   r2   r,   r3   r-   r4   r.   r5   r/   r6   r   r   ©Ú__name__Ú
__module__Ú__qualname__r   r$   r)   r
   rC   © r%   r#   r   r      s„   € € € € € Øð0ð 0ð 0ñ „_ð0ð ð6ð 6ð 6ñ „_ð6ð 9Bð )-Ø$(Ø"&Ø;Dð/
ð /
ð /
ð /
ð /
ð /
ð /
ð /
r%   c                  óT   — e Zd Zedd„¦   «         Zedd„¦   «         Zedddedœdd„ZdS )r   r   ÚAsyncModerationsWithRawResponsec                ó    — t          | ¦  «        S r    )rK   r!   s    r#   r$   z"AsyncModerations.with_raw_responseb   s   € õ /¨tÑ4Ô4Ð4r%   Ú%AsyncModerationsWithStreamingResponsec                ó    — t          | ¦  «        S r(   )rM   r!   s    r#   r)   z(AsyncModerations.with_streaming_responsel   s   € õ 5°TÑ:Ô:Ð:r%   Nr*   r0   r1   r+   r2   r,   r3   r-   r4   r.   r5   r/   r6   r   c          
   ƒ  ó²   K  — |                       dt          ||dœt          j        ¦  «        ƒ d{V —†t	          ||||¬¦  «        t
          ¬¦  «        ƒ d{V —†S )r8   r9   r:   Nr;   r<   )r@   r   r	   rA   r   r   rB   s          r#   rC   zAsyncModerations.createu   s¬   è è € ðD —Z’ZØÝ,à"Ø"ðð õ )Ô?ñô ð ð ð ð ð ð õ )Ø+¸ÐQ[Ðelðñ ô õ -ð  ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
ð 	
r%   )r   rK   )r   rM   rD   rE   rI   r%   r#   r   r   a   s„   € € € € € Øð5ð 5ð 5ñ „_ð5ð ð;ð ;ð ;ñ „_ð;ð 9Bð )-Ø$(Ø"&Ø;Dð/
ð /
ð /
ð /
ð /
ð /
ð /
ð /
r%   c                  ó   — e Zd Zdd„ZdS )r   Úmoderationsr   r   ÚNonec                óP   — || _         t          j        |j        ¦  «        | _        d S ©N)Ú_moderationsr   Úto_raw_response_wrapperrC   ©r"   rQ   s     r#   Ú__init__z#ModerationsWithRawResponse.__init__¨   s(   € Ø'ˆÔå&Ô>ØÔñ
ô 
ˆŒˆˆr%   N©rQ   r   r   rR   ©rF   rG   rH   rX   rI   r%   r#   r   r   §   ó(   € € € € € ð
ð 
ð 
ð 
ð 
ð 
r%   r   c                  ó   — e Zd Zdd„ZdS )rK   rQ   r   r   rR   c                óP   — || _         t          j        |j        ¦  «        | _        d S rT   )rU   r   Úasync_to_raw_response_wrapperrC   rW   s     r#   rX   z(AsyncModerationsWithRawResponse.__init__±   s(   € Ø'ˆÔå&ÔDØÔñ
ô 
ˆŒˆˆr%   N©rQ   r   r   rR   rZ   rI   r%   r#   rK   rK   °   r[   r%   rK   c                  ó   — e Zd Zdd„ZdS )r&   rQ   r   r   rR   c                óF   — || _         t          |j        ¦  «        | _        d S rT   )rU   r   rC   rW   s     r#   rX   z)ModerationsWithStreamingResponse.__init__º   s%   € Ø'ˆÔå2ØÔñ
ô 
ˆŒˆˆr%   NrY   rZ   rI   r%   r#   r&   r&   ¹   r[   r%   r&   c                  ó   — e Zd Zdd„ZdS )rM   rQ   r   r   rR   c                óF   — || _         t          |j        ¦  «        | _        d S rT   )rU   r   rC   rW   s     r#   rX   z.AsyncModerationsWithStreamingResponse.__init__Ã   s%   € Ø'ˆÔå8ØÔñ
ô 
ˆŒˆˆr%   Nr_   rZ   rI   r%   r#   rM   rM   Â   r[   r%   rM   )+Ú
__future__r   Útypingr   r   r   ÚhttpxÚ r   Útypesr	   Ú_typesr
   r   r   r   r   Ú_utilsr   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   Ú_base_clientr   Útypes.moderation_modelr   Ú types.moderation_create_responser   Ú(types.moderation_multi_modal_input_paramr   Ú__all__r   r   r   rK   r&   rM   rI   r%   r#   ú<module>rs      s^  ðð #Ð "Ð "Ð "Ð "Ð "à (Ð (Ð (Ð (Ð (Ð (Ð (Ð (Ð (Ð (à €€€à Ð Ð Ð Ð Ð Ø ,Ð ,Ð ,Ð ,Ð ,Ð ,Ø >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >ðð ð ð ð ð ð ð ð &Ð %Ð %Ð %Ð %Ð %Ø 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9Ø XÐ XÐ XÐ XÐ XÐ XÐ XÐ XØ /Ð /Ð /Ð /Ð /Ð /Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø GÐ GÐ GÐ GÐ GÐ GØ UÐ UÐ UÐ UÐ UÐ UàÐ,Ð
-€ðC
ð C
ð C
ð C
ð C
�/ñ C
ô C
ð C
ðLC
ð C
ð C
ð C
ð C
Ð'ñ C
ô C
ð C
ðL
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð 
ð 
r%   