
    ei                    X   S SK Jr  S SK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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)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                  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    j/var/www/html/BTCUSD/btcusdt_trading_app/venv/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/   r0   r1   r2   r3   bodyoptionscast_to)_postr   r   ModerationCreateParamsr   r   r$   r8   r/   r0   r1   r2   r3   s          r%   createModerations.create,   sQ    D zz "" )?? )+Q[ -  
 	
r(    )returnr"   )rD   r+   r8   zIUnion[str, SequenceNotStr[str], Iterable[ModerationMultiModalInputParam]]r/   z"Union[str, ModerationModel] | Omitr0   zHeaders | Noner1   zQuery | Noner2   zBody | Noner3   z'float | httpx.Timeout | None | NotGivenrD   r   __name__
__module____qualname____firstlineno__r   r&   r,   r   r   rA   __static_attributes__rC   r(   r%   r   r      s    0 0 6 6 59 )-$("&;D/
 Y/
 2	/
 &/
 "/
  /
 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   ^   c                    [        U 5      $ r!   )AsyncModerationsWithRawResponser#   s    r%   r&   "AsyncModerations.with_raw_response_   s     /t44r(   c                    [        U 5      $ r*   )%AsyncModerationsWithStreamingResponser#   s    r%   r,   (AsyncModerations.with_streaming_responsei   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)r5   r6   r7   Nr9   r:   )r>   r   r   r?   r   r   r@   s          r%   rA   AsyncModerations.creater   sh     D ZZ,"" )??  )+Q[ -   
 
 	

s!   -AA
AAAArC   )rD   rO   )rD   rR   rE   rF   rC   r(   r%   r   r   ^   s    5 5 ; ; 59 )-$("&;D/
 Y/
 2	/
 &/
 "/
  /
 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_wrapperrA   r$   moderationss     r%   __init__#ModerationsWithRawResponse.__init__   s#    '&>>
r(   rZ   rA   Nr]   r   rD   NonerG   rH   rI   rJ   r^   rK   rC   r(   r%   r"   r"          
r(   r"   c                      \ rS rSrSS jrSrg)rO      c                Z    Xl         [        R                  " UR                  5      U l        g rY   )rZ   r   async_to_raw_response_wrapperrA   r\   s     r%   r^   (AsyncModerationsWithRawResponse.__init__   s#    '&DD
r(   r`   Nr]   r   rD   rb   rc   rC   r(   r%   rO   rO      rd   r(   rO   c                      \ rS rSrSS jrSrg)r+      c                D    Xl         [        UR                  5      U l        g rY   )rZ   r   rA   r\   s     r%   r^   )ModerationsWithStreamingResponse.__init__   s    '2
r(   r`   Nra   rc   rC   r(   r%   r+   r+      rd   r(   r+   c                      \ rS rSrSS jrSrg)rR      c                D    Xl         [        UR                  5      U l        g rY   )rZ   r   rA   r\   s     r%   r^   .AsyncModerationsWithStreamingResponse.__init__   s    '8
r(   r`   Nrj   rc   rC   r(   r%   rR   rR      rd   r(   rR   )-
__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+   rR   rC   r(   r%   <module>r      s    # "   , Z Z Z ; % 9 X / 4 G U,
-C
/ C
LC
' C
L
 

 

 

 
r(   