§
    D›j   ã                  ó~  — 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	 ddl
mZmZmZ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)ÚUnionÚIterableNé   )Ú_legacy_response)Úmoderation_create_params)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚSequenceNotStrÚomitÚ	not_given)Ú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                  óX   — e Zd ZdZedd„¦   «         Zedd„¦   «         Zedddedœdd„Z	dS )r   ú]
    Given text and/or image inputs, classifies if those inputs are potentially harmful.
    Ú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    úY/home/lighthouse/health/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úIUnion[str, SequenceNotStr[str], Iterable[ModerationMultiModalInputParam]]r.   ú"Union[str, ModerationModel] | Omitr/   úHeaders | Noner0   úQuery | Noner1   úBody | Noner2   ú'float | httpx.Timeout | None | NotGivenr   c               óœ   — |                       dt          ||dœt          j        ¦  «        t	          ||||ddi¬¦  «        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©r3   r.   Úbearer_authT©r/   r0   r1   r2   Úsecurity©ÚbodyÚoptionsÚcast_to)Ú_postr   r   ÚModerationCreateParamsr   r   ©r%   r3   r.   r/   r0   r1   r2   s          r&   ÚcreatezModerations.create0   su   € ðD �zŠzØÝ à"Ø"ðð õ )Ô?ñô õ )Ø+Ø'Ø%ØØ'¨Ð.ðñ ô õ -ð! ñ 
ô 
ð 	
r(   )r    r!   )r    r)   ©r3   r4   r.   r5   r/   r6   r0   r7   r1   r8   r2   r9   r    r   ©
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r'   r,   r   r   rH   © r(   r&   r   r      s�   € € € € € ðð ð ð0ð 0ð 0ñ „_ð0ð ð6ð 6ð 6ñ „_ð6ð 59ð )-Ø$(Ø"&Ø;Dð3
ð 3
ð 3
ð 3
ð 3
ð 3
ð 3
ð 3
r(   c                  óX   — e Zd ZdZedd„¦   «         Zedd„¦   «         Zedddedœdd„Z	dS )r   r   r    ÚAsyncModerationsWithRawResponsec                ó    — t          | ¦  «        S r#   )rQ   r$   s    r&   r'   z"AsyncModerations.with_raw_responsek   s   € õ /¨tÑ4Ô4Ð4r(   Ú%AsyncModerationsWithStreamingResponsec                ó    — t          | ¦  «        S r+   )rS   r$   s    r&   r,   z(AsyncModerations.with_streaming_responseu   s   € õ 5°TÑ:Ô:Ð:r(   Nr-   r3   r4   r.   r5   r/   r6   r0   r7   r1   r8   r2   r9   r   c             ƒ  ó¸   K  — |                       dt          ||dœt          j        ¦  «        ƒ d{V —†t	          ||||ddi¬¦  «        t
          ¬¦  «        ƒ d{V —†S )r;   r<   r=   Nr>   Tr?   rA   )rE   r   r   rF   r   r   rG   s          r&   rH   zAsyncModerations.create~   sµ   è è € ðD —Z’ZØÝ,à"Ø"ðð õ )Ô?ñô ð ð ð ð ð ð õ )Ø+Ø'Ø%ØØ'¨Ð.ðñ ô õ -ð!  ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
ð 	
r(   )r    rQ   )r    rS   rI   rJ   rO   r(   r&   r   r   f   s�   € € € € € ðð ð ð5ð 5ð 5ñ „_ð5ð ð;ð ;ð ;ñ „_ð;ð 59ð )-Ø$(Ø"&Ø;Dð3
ð 3
ð 3
ð 3
ð 3
ð 3
ð 3
ð 3
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_wrapperrH   ©r%   rW   s     r&   Ú__init__z#ModerationsWithRawResponse.__init__µ   s(   € Ø'ˆÔå&Ô>ØÔñ
ô 
ˆŒˆˆr(   N©rW   r   r    rX   ©rK   rL   rM   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_wrapperrH   r]   s     r&   r^   z(AsyncModerationsWithRawResponse.__init__¾   s(   € Ø'ˆÔå&ÔDØÔñ
ô 
ˆŒˆˆ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   rH   r]   s     r&   r^   z)ModerationsWithStreamingResponse.__init__Ç   s%   € Ø'ˆÔå2ØÔñ
ô 
ˆŒˆˆ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   rH   r]   s     r&   r^   z.AsyncModerationsWithStreamingResponse.__init__Ð   s%   € Ø'ˆÔå8ØÔñ
ô 
ˆŒˆˆr(   Nre   r`   rO   r(   r&   rS   rS   Ï   ra   r(   rS   )-Ú
__future__r   Útypingr   r   ÚhttpxÚ r   Útypesr   Ú_typesr	   r
   r   r   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!   rQ   r)   rS   rO   r(   r&   ú<module>ry      sX  ðð #Ð "Ð "Ð "Ð "Ð "à "Ð "Ð "Ð "Ð "Ð "Ð "Ð "à €€€à Ð Ð Ð Ð Ð Ø ,Ð ,Ð ,Ð ,Ð ,Ð ,Ø ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZØ ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ø %Ð %Ð %Ð %Ð %Ð %Ø 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àÐ,Ð
-€ðK
ð K
ð K
ð K
ð K
�/ñ K
ô K
ð K
ð\K
ð K
ð K
ð K
ð K
Ð'ñ K
ô K
ð K
ð\
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð 
ð 
r(   