
    `gjF                         d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d de      Z	 e	dd	d
dddddd	      Z
 ee
       y)zNous Portal provider profile.    )Any)nous_portal_tags)register_provider)ProviderProfilec                   v    e Zd ZdZdddedz  deeef   fdZdddd	edz  d
ede	eeef   eeef   f   fdZ
y)NousProfileuD   Nous Portal — product tags, reasoning with Nous-specific omission.N
session_idr
   returnc                R    dt        |      i}|j                  d      }|r||d<   |S )Ntagsr	   provider_preferencesprovider)r   get)selfr
   contextbodyr   s        X/root/.hermes/venv/lib/python3.12/site-packages/plugins/model-providers/nous/__init__.pybuild_extra_bodyzNousProfile.build_extra_body   s6     !'(8J(OP&{{+AB3D    F)reasoning_configsupports_reasoningr   r   c                ~    i }|r6|,t        |      }|j                  d      du r	 |i fS ||d<   |i fS ddd|d<   |i fS )z<Nous: passes full reasoning_config, but OMITS when disabled.enabledF	reasoningTmedium)r   effort)dictr   )r   r   r   r   
extra_bodyrcs         r   build_api_kwargs_extrasz#NousProfile.build_api_kwargs_extras   sp     
+*+66)$-
 2~ /1J{+ 2~ 7;h*O
;'2~r   )__name__
__module____qualname____doc__strr   r   r   booltupler!    r   r   r   r   
   st    N +/ 4Z	c3h )-#(	 + !	 
tCH~tCH~-	.r   r   nous)znous-portalnousresearch)NOUS_API_KEYzNous Researchu%   Nous Research — Hermes model familyzhttps://nousresearch.com/)zhermes-3-405bzhermes-3-70bz)https://inference-api.nousresearch.com/v1oauth_device_code)	namealiasesenv_varsdisplay_namedescription
signup_urlfallback_modelsbase_url	auth_typeN)r%   typingr   agent.portal_tagsr   	providersr   providers.baser   r   r*   r)   r   r   <module>r;      sV    #  . ' */ B 	+ 7* 9! $ r   