Ë
    Fü´jJ   ã                  óX  — 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,y)é    )Ú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                  ód   — e Zd ZdZedd„«       Zedd„«       Zedddedœ	 	 	 	 	 	 	 	 	 	 	 	 	 d	d„Z	y)
r   ú]
    Given text and/or image inputs, classifies if those inputs are potentially harmful.
    c                ó   — 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
        )ÚModerationsWithRawResponse©Úselfs    úZ/root/workspace/ytshorts/venv/lib/python3.12/site-packages/openai/resources/moderations.pyÚwith_raw_responsezModerations.with_raw_response   s   € ô *¨$Ó/Ð/ó    c                ó   — 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
        )Ú ModerationsWithStreamingResponser#   s    r%   Úwith_streaming_responsez#Moderations.with_streaming_response'   s   € ô 0°Ó5Ð5r'   N©ÚmodelÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc               óŠ   — | j                  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://developers.openai.com/api/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://developers.openai.com/api/docs/guides/moderation),
              and learn about available models
              [here](https://developers.openai.com/api/docs/guides/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©Úinputr-   Úbearer_authT©r.   r/   r0   r1   Úsecurity©ÚbodyÚoptionsÚcast_to)Ú_postr   r   ÚModerationCreateParamsr   r   ©r$   r6   r-   r.   r/   r0   r1   s          r%   ÚcreatezModerations.create0   s_   € ðF �z‰zØÜ à"Ø"ñô )×?Ñ?óô )Ø+Ø'Ø%ØØ'¨Ð.ôô -ð! ó 
ð 	
r'   )Úreturnr"   )rB   r*   ©r6   zIUnion[str, SequenceNotStr[str], Iterable[ModerationMultiModalInputParam]]r-   z"Union[str, ModerationModel] | Omitr.   zHeaders | Noner/   zQuery | Noner0   zBody | Noner1   z(float | httpx2.Timeout | None | NotGivenrB   r   ©
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r&   r+   r   r   rA   © r'   r%   r   r      sŽ   „ ñð ò0ó ð0ð ò6ó ð6ð 59ð )-Ø$(Ø"&Ø<Eñ4
ð Yð4
ð 2ð	4
ð &ð4
ð "ð4
ð  ð4
ð :ð4
ð 
"ô4
r'   c                  ód   — e Zd ZdZedd„«       Zedd„«       Zedddedœ	 	 	 	 	 	 	 	 	 	 	 	 	 d	d„Z	y)
r   r   c                ó   — t        | «      S r!   )ÚAsyncModerationsWithRawResponser#   s    r%   r&   z"AsyncModerations.with_raw_responsel   s   € ô /¨tÓ4Ð4r'   c                ó   — t        | «      S r)   )Ú%AsyncModerationsWithStreamingResponser#   s    r%   r+   z(AsyncModerations.with_streaming_responsev   s   € ô 5°TÓ:Ð:r'   Nr,   c             ƒ  óº   K  — | j                  dt        ||dœt        j                  «      ƒ d{  –—† t	        ||||ddi¬«      t
        ¬«      ƒ d{  –—† S 7 Œ'7 Œ­w)r3   r4   r5   Nr7   Tr8   r:   )r>   r   r   r?   r   r   r@   s          r%   rA   zAsyncModerations.create   sx   è ø€ ðF —Z‘ZØÜ,à"Ø"ñô )×?Ñ?ó÷ ô )Ø+Ø'Ø%ØØ'¨Ð.ôô -ð!  ó 
÷ 
ð 	
ðøð
ús!   ‚-A¯A
°"AÁAÁAÁA)rB   rL   )rB   rN   rC   rD   rI   r'   r%   r   r   g   sŽ   „ ñð ò5ó ð5ð ò;ó ð;ð 59ð )-Ø$(Ø"&Ø<Eñ4
ð Yð4
ð 2ð	4
ð &ð4
ð "ð4
ð  ð4
ð :ð4
ð 
"ô4
r'   c                  ó   — e Zd Zdd„Zy)r"   c                óZ   — || _         t        j                  |j                  «      | _        y ©N)Ú_moderationsr   Úto_raw_response_wrapperrA   ©r$   Úmoderationss     r%   Ú__init__z#ModerationsWithRawResponse.__init__·   s%   € Ø'ˆÔä&×>Ñ>Ø×Ñó
ˆ�r'   N©rV   r   rB   ÚNone©rE   rF   rG   rW   rI   r'   r%   r"   r"   ¶   ó   „ ô
r'   r"   c                  ó   — e Zd Zdd„Zy)rL   c                óZ   — || _         t        j                  |j                  «      | _        y rR   )rS   r   Úasync_to_raw_response_wrapperrA   rU   s     r%   rW   z(AsyncModerationsWithRawResponse.__init__À   s%   € Ø'ˆÔä&×DÑDØ×Ñó
ˆ�r'   N©rV   r   rB   rY   rZ   rI   r'   r%   rL   rL   ¿   r[   r'   rL   c                  ó   — e Zd Zdd„Zy)r*   c                óF   — || _         t        |j                  «      | _        y rR   )rS   r   rA   rU   s     r%   rW   z)ModerationsWithStreamingResponse.__init__É   s   € Ø'ˆÔä2Ø×Ñó
ˆ�r'   NrX   rZ   rI   r'   r%   r*   r*   È   r[   r'   r*   c                  ó   — e Zd Zdd„Zy)rN   c                óF   — || _         t        |j                  «      | _        y rR   )rS   r   rA   rU   s     r%   rW   z.AsyncModerationsWithStreamingResponse.__init__Ò   s   € Ø'ˆÔä8Ø×Ñó
ˆ�r'   Nr_   rZ   rI   r'   r%   rN   rN   Ñ   r[   r'   rN   )-Ú
__future__r   Útypingr   r   Úhttpx2Ú 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"   rL   r*   rN   rI   r'   r%   ú<module>rs      s‰   ðõ #ç "ã å Ý ,ß Z× ZÓ Zß ;Ý %ß 9ß XÝ /Ý 4Ý GÝ UàÐ,Ð
-€ôL
�/ô L
ô^L
Ð'ô L
÷^
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r'   