
    dhr                     B    S SK JrJr  S SKJr  S SKJr   " S S\5      rg)    )AnyDict)pre_init)
BaseOpenAIc                   |   ^  \ rS rSrSr\S\4S j5       r\S\	\
\4   4U 4S jj5       r\S\	S\	4S j5       rSrU =r$ )	OpenLM   zOpenLM models.returnc                     g)NF )clss    W/var/www/html/shao/venv/lib/python3.13/site-packages/langchain_community/llms/openlm.pyis_lc_serializableOpenLM.is_lc_serializable   s        c                 8   > 0 SU R                   0E[        TU ]  E$ )Nmodel)
model_namesuper_invocation_params)self	__class__s    r   r   OpenLM._invocation_params   s!    K7DOO,K0JKKr   valuesc                      SS K nUR                  US'   US   (       a  [        S5      eU$ ! [         a    [        S5      ef = f)Nr   clientzTCould not import openlm python package. Please install it with `pip install openlm`.	streamingz#Streaming not supported with openlm)openlm
CompletionImportError
ValueError)r   r   r   s      r   validate_environmentOpenLM.validate_environment   sX    	%00F8 +BCC  	? 	s	   , Ar   )__name__
__module____qualname____firstlineno____doc__classmethodboolr   propertyr   strr   r   r   r"   __static_attributes____classcell__)r   s   @r   r   r      sg    4   LDcN L L $ 4  r   r   N)typingr   r   langchain_core.utilsr   langchain_community.llms.openair   r   r   r   r   <module>r2      s     ) 6Z r   