Ë
    ²Œj€  ã                  ó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                  ó`   — e Zd Zedd„«       Zedd„«       Zedddedœ	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zy)	r   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    úf/var/www/html/Fitness-lenito-AI-main/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	        ||||¬«      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©Úinputr,   ©r-   r.   r/   r0   ©ÚbodyÚoptionsÚcast_to)Ú_postr   r   ÚModerationCreateParamsr   r   ©r#   r5   r,   r-   r.   r/   r0   s          r$   ÚcreatezModerations.create,   sV   € ðD �z‰zØÜ à"Ø"ñô )×?Ñ?óô )Ø+¸ÐQ[Ðelôô -ð ó 
ð 	
r&   )Úreturnr!   )r?   r)   ©r5   zIUnion[str, SequenceNotStr[str], Iterable[ModerationMultiModalInputParam]]r,   z"Union[str, ModerationModel] | Omitr-   zHeaders | Noner.   zQuery | Noner/   zBody | Noner0   z'float | httpx.Timeout | None | NotGivenr?   r   ©	Ú__name__Ú
__module__Ú__qualname__r   r%   r*   r   r   r>   © r&   r$   r   r      s‡   „ Øò0ó ð0ð ò6ó ð6ð 59ð )-Ø$(Ø"&Ø;Dñ/
ð Yð/
ð 2ð	/
ð &ð/
ð "ð/
ð  ð/
ð 9ð/
ð 
"ô/
r&   c                  ó`   — e Zd Zedd„«       Zedd„«       Zedddedœ	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zy)	r   c                ó   — t        | «      S r    )ÚAsyncModerationsWithRawResponser"   s    r$   r%   z"AsyncModerations.with_raw_response_   s   € ô /¨tÓ4Ð4r&   c                ó   — t        | «      S r(   )Ú%AsyncModerationsWithStreamingResponser"   s    r$   r*   z(AsyncModerations.with_streaming_responsei   s   € ô 5°TÓ:Ð:r&   Nr+   c          
   ƒ  ó´   K  — | j                  dt        ||dœt        j                  «      ƒ d{  –—† t	        ||||¬«      t
        ¬«      ƒ d{  –—† S 7 Œ$7 Œ­w)r2   r3   r4   Nr6   r7   )r;   r   r   r<   r   r   r=   s          r$   r>   zAsyncModerations.creater   so   è ø€ ðD —Z‘ZØÜ,à"Ø"ñô )×?Ñ?ó÷ ô )Ø+¸ÐQ[Ðelôô -ð  ó 
÷ 
ð 	
ðøð
ús!   ‚-A¯A
°AÁAÁAÁA)r?   rH   )r?   rJ   r@   rA   rE   r&   r$   r   r   ^   s‡   „ Øò5ó ð5ð ò;ó ð;ð 59ð )-Ø$(Ø"&Ø;Dñ/
ð Yð/
ð 2ð	/
ð &ð/
ð "ð/
ð  ð/
ð 9ð/
ð 
"ô/
r&   c                  ó   — e Zd Zdd„Zy)r!   c                óZ   — || _         t        j                  |j                  «      | _        y ©N)Ú_moderationsr   Úto_raw_response_wrapperr>   ©r#   Úmoderationss     r$   Ú__init__z#ModerationsWithRawResponse.__init__¥   s%   € Ø'ˆÔä&×>Ñ>Ø×Ñó
ˆ�r&   N©rR   r   r?   ÚNone©rB   rC   rD   rS   rE   r&   r$   r!   r!   ¤   ó   „ ô
r&   r!   c                  ó   — e Zd Zdd„Zy)rH   c                óZ   — || _         t        j                  |j                  «      | _        y rN   )rO   r   Úasync_to_raw_response_wrapperr>   rQ   s     r$   rS   z(AsyncModerationsWithRawResponse.__init__®   s%   € Ø'ˆÔä&×DÑDØ×Ñó
ˆ�r&   N©rR   r   r?   rU   rV   rE   r&   r$   rH   rH   ­   rW   r&   rH   c                  ó   — e Zd Zdd„Zy)r)   c                óF   — || _         t        |j                  «      | _        y rN   )rO   r   r>   rQ   s     r$   rS   z)ModerationsWithStreamingResponse.__init__·   s   € Ø'ˆÔä2Ø×Ñó
ˆ�r&   NrT   rV   rE   r&   r$   r)   r)   ¶   rW   r&   r)   c                  ó   — e Zd Zdd„Zy)rJ   c                óF   — || _         t        |j                  «      | _        y rN   )rO   r   r>   rQ   s     r$   rS   z.AsyncModerationsWithStreamingResponse.__init__À   s   € Ø'ˆÔä8Ø×Ñó
ˆ�r&   Nr[   rV   rE   r&   r$   rJ   rJ   ¿   rW   r&   rJ   )-Ú
__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!   rH   r)   rJ   rE   r&   r$   Ú<module>ro      s‰   ðõ #ç "ã å Ý ,ß Z× ZÓ Zß ;Ý %ß 9ß XÝ /Ý 4Ý GÝ UàÐ,Ð
-€ôC
�/ô C
ôLC
Ð'ô C
÷L
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r&   