Ë
    $Æ%hh  ã                  óP  — 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*y)é    )Ú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                  ó`   — 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    úZ/var/www/skyplay_api_hub/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-   r.   ©ÚbodyÚoptionsÚcast_to)Ú_postr   r	   ÚModerationCreateParamsr   r   ©r!   r3   r*   r+   r,   r-   r.   s          r"   ÚcreatezModerations.create,   sV   € ðD �z‰zØÜ à"Ø"ñô )×?Ñ?óô )Ø+¸ÐQ[Ðelôô -ð ó 
ð 	
r$   )Úreturnr   )r=   r'   ©r3   z?Union[str, List[str], Iterable[ModerationMultiModalInputParam]]r*   z&Union[str, ModerationModel] | NotGivenr+   zHeaders | Noner,   zQuery | Noner-   zBody | Noner.   z'float | httpx.Timeout | None | NotGivenr=   r   ©Ú__name__Ú
__module__Ú__qualname__r   r#   r(   r
   r<   © r$   r"   r   r      sˆ   „ Øò0ó ð0ð ò6ó ð6ð 9Bð )-Ø$(Ø"&Ø;Dñ/
ð Oð/
ð 6ð	/
ð &ð/
ð "ð/
ð  ð/
ð 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)r0   r1   r2   Nr4   r5   )r9   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=   rF   )r=   rH   r>   r?   rC   r$   r"   r   r   ^   sˆ   „ Øò5ó ð5ð ò;ó ð;ð 9Bð )-Ø$(Ø"&Ø;Dñ/
ð Oð/
ð 6ð	/
ð &ð/
ð "ð/
ð  ð/
ð 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©rP   r   r=   ÚNone©r@   rA   rB   rQ   rC   r$   r"   r   r   ¤   ó   „ ô
r$   r   c                  ó   — e Zd Zdd„Zy)rF   c                óZ   — || _         t        j                  |j                  «      | _        y rL   )rM   r   Úasync_to_raw_response_wrapperr<   rO   s     r"   rQ   z(AsyncModerationsWithRawResponse.__init__®   s%   € Ø'ˆÔä&×DÑDØ×Ñó
ˆ�r$   N©rP   r   r=   rS   rT   rC   r$   r"   rF   rF   ­   rU   r$   rF   c                  ó   — e Zd Zdd„Zy)r'   c                óF   — || _         t        |j                  «      | _        y rL   )rM   r   r<   rO   s     r"   rQ   z)ModerationsWithStreamingResponse.__init__·   s   € Ø'ˆÔä2Ø×Ñó
ˆ�r$   NrR   rT   rC   r$   r"   r'   r'   ¶   rU   r$   r'   c                  ó   — e Zd Zdd„Zy)rH   c                óF   — || _         t        |j                  «      | _        y rL   )rM   r   r<   rO   s     r"   rQ   z.AsyncModerationsWithStreamingResponse.__init__À   s   € Ø'ˆÔä8Ø×Ñó
ˆ�r$   NrY   rT   rC   r$   r"   rH   rH   ¿   rU   r$   rH   )+Ú
__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   rF   r'   rH   rC   r$   r"   ú<module>rm      s‰   ðõ #ç (Ñ (ã å Ý ,ß >Õ >ß ;Ý %ß 9ß XÝ /Ý 4Ý GÝ UàÐ,Ð
-€ôC
�/ô C
ôLC
Ð'ô C
÷L
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r$   