
    hu                    P   S SK Jr  S SKJrJrJr  S SKrSSKJr  SSK	J
r
  SSKJrJrJrJrJr  SSKJrJr  SS	KJr  SS
KJrJr  SSKJrJr  SSKJr  SSKJr  SSK J!r!  SSK"J#r#  SS/r$ " S S\5      r% " S S\5      r& " S S5      r' " S S5      r( " S S5      r) " S S5      r*g)    )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                  p    \ rS rSr\SS j5       r\S	S j5       r\SSS\S.             S
S jjrSr	g)r      c                    [        U 5      $ z
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    N/var/www/html/env/lib/python3.13/site-packages/openai/resources/moderations.pywith_raw_responseModerations.with_raw_response   s     *$//    c                    [        U 5      $ 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_response#Moderations.with_streaming_response&   s     055r&   Nmodelextra_headersextra_query
extra_bodytimeoutc               t    U R                  S[        UUS.[        R                  5      [	        X4XVS9[
        S9$ ):  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/   r0   r1   bodyoptionscast_to)_postr   r	   ModerationCreateParamsr   r   r"   r6   r-   r.   r/   r0   r1   s          r#   createModerations.create/   sQ    D zz "" )?? )+Q[ -  
 	
r&    )returnr    )rB   r)   r6   z?Union[str, List[str], Iterable[ModerationMultiModalInputParam]]r-   z&Union[str, ModerationModel] | NotGivenr.   zHeaders | Noner/   zQuery | Noner0   zBody | Noner1   z'float | httpx.Timeout | None | NotGivenrB   r   
__name__
__module____qualname____firstlineno__r   r$   r*   r
   r?   __static_attributes__rA   r&   r#   r   r      s    0 0 6 6 9B )-$("&;D/
 O/
 6	/
 &/
 "/
  /
 9/
 
"/
 /
r&   c                  p    \ rS rSr\SS j5       r\S	S j5       r\SSS\S.             S
S jjrSr	g)r   a   c                    [        U 5      $ r   )AsyncModerationsWithRawResponser!   s    r#   r$   "AsyncModerations.with_raw_responseb   s     /t44r&   c                    [        U 5      $ r(   )%AsyncModerationsWithStreamingResponser!   s    r#   r*   (AsyncModerations.with_streaming_responsel   s     5T::r&   Nr,   c                  #    U R                  S[        UUS.[        R                  5      I Sh  vN [	        X4XVS9[
        S9I Sh  vN $  N N7f)r3   r4   r5   Nr7   r8   )r<   r   r	   r=   r   r   r>   s          r#   r?   AsyncModerations.createu   sh     D ZZ,"" )??  )+Q[ -   
 
 	

s!   -AA
AAAArA   )rB   rM   )rB   rP   rC   rD   rA   r&   r#   r   r   a   s    5 5 ; ; 9B )-$("&;D/
 O/
 6	/
 &/
 "/
  /
 9/
 
"/
 /
r&   c                      \ rS rSrSS jrSrg)r       c                Z    Xl         [        R                  " UR                  5      U l        g N)_moderationsr   to_raw_response_wrapperr?   r"   moderationss     r#   __init__#ModerationsWithRawResponse.__init__   s#    '&>>
r&   rX   r?   Nr[   r   rB   NonerE   rF   rG   rH   r\   rI   rA   r&   r#   r    r           
r&   r    c                      \ rS rSrSS jrSrg)rM      c                Z    Xl         [        R                  " UR                  5      U l        g rW   )rX   r   async_to_raw_response_wrapperr?   rZ   s     r#   r\   (AsyncModerationsWithRawResponse.__init__   s#    '&DD
r&   r^   Nr[   r   rB   r`   ra   rA   r&   r#   rM   rM      rb   r&   rM   c                      \ rS rSrSS jrSrg)r)      c                D    Xl         [        UR                  5      U l        g rW   )rX   r   r?   rZ   s     r#   r\   )ModerationsWithStreamingResponse.__init__   s    '2
r&   r^   Nr_   ra   rA   r&   r#   r)   r)      rb   r&   r)   c                      \ rS rSrSS jrSrg)rP      c                D    Xl         [        UR                  5      U l        g rW   )rX   r   r?   rZ   s     r#   r\   .AsyncModerationsWithStreamingResponse.__init__   s    '8
r&   r^   Nrh   ra   rA   r&   r#   rP   rP      rb   r&   rP   )+
__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    rM   r)   rP   rA   r&   r#   <module>r      s    # ( (   , > > & 9 X / 4 G U,
-C
/ C
LC
' C
L
 

 

 

 
r&   