§
    ©eîiR  ã                  ó~  — 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    ú`/home/div/.hermes/hermes-agent/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	          ||||¬¦  «        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.   ©r/   r0   r1   r2   ©ÚbodyÚoptionsÚcast_to)Ú_postr   r   ÚModerationCreateParamsr   r   ©r%   r3   r.   r/   r0   r1   r2   s          r&   ÚcreatezModerations.create0   sl   € ðD �zŠzØÝ à"Ø"ðð õ )Ô?ñô õ )Ø+¸ÐQ[Ðelðñ ô õ -ð ñ 
ô 
ð 	
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   rF   © r(   r&   r   r      s�   € € € € € ðð ð ð0ð 0ð 0ñ „_ð0ð ð6ð 6ð 6ñ „_ð6ð 59ð )-Ø$(Ø"&Ø;Dð/
ð /
ð /
ð /
ð /
ð /
ð /
ð /
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#   )rO   r$   s    r&   r'   z"AsyncModerations.with_raw_responseg   s   € õ /¨tÑ4Ô4Ð4r(   Ú%AsyncModerationsWithStreamingResponsec                ó    — t          | ¦  «        S r+   )rQ   r$   s    r&   r,   z(AsyncModerations.with_streaming_responseq   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	          ||||¬¦  «        t
          ¬¦  «        ƒ d{V —†S )r;   r<   r=   Nr>   r?   )rC   r   r   rD   r   r   rE   s          r&   rF   zAsyncModerations.createz   s¬   è è € ðD —Z’ZØÝ,à"Ø"ðð õ )Ô?ñô ð ð ð ð ð ð õ )Ø+¸ÐQ[Ðelðñ ô õ -ð  ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
ð 	
r(   )r    rO   )r    rQ   rG   rH   rM   r(   r&   r   r   b   s�   € € € € € ðð ð ð5ð 5ð 5ñ „_ð5ð ð;ð ;ð ;ñ „_ð;ð 59ð )-Ø$(Ø"&Ø;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_wrapperrF   ©r%   rU   s     r&   Ú__init__z#ModerationsWithRawResponse.__init__­   s(   € Ø'ˆÔå&Ô>ØÔñ
ô 
ˆŒˆˆr(   N©rU   r   r    rV   ©rI   rJ   rK   r\   rM   r(   r&   r!   r!   ¬   ó(   € € € € € ð
ð 
ð 
ð 
ð 
ð 
r(   r!   c                  ó   — e Zd Zdd„ZdS )rO   rU   r   r    rV   c                óP   — || _         t          j        |j        ¦  «        | _        d S rX   )rY   r   Úasync_to_raw_response_wrapperrF   r[   s     r&   r\   z(AsyncModerationsWithRawResponse.__init__¶   s(   € Ø'ˆÔå&ÔDØÔñ
ô 
ˆŒˆˆr(   N©rU   r   r    rV   r^   rM   r(   r&   rO   rO   µ   r_   r(   rO   c                  ó   — e Zd Zdd„ZdS )r)   rU   r   r    rV   c                óF   — || _         t          |j        ¦  «        | _        d S rX   )rY   r   rF   r[   s     r&   r\   z)ModerationsWithStreamingResponse.__init__¿   s%   € Ø'ˆÔå2ØÔñ
ô 
ˆŒˆˆr(   Nr]   r^   rM   r(   r&   r)   r)   ¾   r_   r(   r)   c                  ó   — e Zd Zdd„ZdS )rQ   rU   r   r    rV   c                óF   — || _         t          |j        ¦  «        | _        d S rX   )rY   r   rF   r[   s     r&   r\   z.AsyncModerationsWithStreamingResponse.__init__È   s%   € Ø'ˆÔå8ØÔñ
ô 
ˆŒˆˆr(   Nrc   r^   rM   r(   r&   rQ   rQ   Ç   r_   r(   rQ   )-Ú
__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!   rO   r)   rQ   rM   r(   r&   ú<module>rw      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àÐ,Ð
-€ðG
ð G
ð G
ð G
ð G
�/ñ G
ô G
ð G
ðTG
ð G
ð G
ð G
ð G
Ð'ñ G
ô G
ð G
ðT
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð 
ð 
r(   