+
    kHàjÄ  ã            	       óx   € R t ^ RIHt ^ RIHtHt ^ RIHt ^ RIH	t	  ! R R]	4      t
]! ]
! RRR	RR
7      4       R# )ak  Tencent TokenHub provider profile (OpenAI-compatible, tokenhub.tencentmaas.com).

Request quirk: top-level ``reasoning_effort``, clamped to TokenHub's low/medium/high and omitted
when thinking is off; a main-loop turn with no configured effort sends ``high``.

Endpoint, ``TOKENHUB_API_KEY``, aliases and the static Hy model list stay in
``hermes_cli/auth.py`` / ``hermes_cli/models_catalog_static.py``. ``base_url`` is left empty so
model listing keeps today's paths: first-time setup probes ``{base}/models`` through the generic
fallback and the ``/model`` picker serves the curated list. The doctor probe stays off.
)ÚAny)Úrequested_effortÚtokenhub_effort)Úregister_provider)ÚProviderProfilec                   óT   a € ] tR t^t o RtR	V 3R lR lltRR/V 3R lR lltRtV tR# )
ÚTokenHubProfilezNTokenHub: top-level ``reasoning_effort``; main-loop turns default to ``high``.Nc                óB   <€ V ^8„  d   QhRS[ R,          RS[R,          /# )é   ÚmodelNÚreturn)ÚstrÚdict)ÚformatÚ__classdict__s   "€ÚV/home/ubuntu/.hermes/hermes-agent/plugins/model-providers/tencent-tokenhub/__init__.pyÚ__annotate__ÚTokenHubProfile.__annotate__   s#   ø€ ÷ 3ñ 3©c°D­jð 3ÁDÈ4ÅKñ 3ó    c                ó   € RRRR/# )z�Unset effort on a main-loop turn: ``high`` (TokenHub's own default is weaker).
Auxiliary calls never take this default, so an unset aux call sends no effort.ÚenabledTÚeffortÚhigh© )Úselfr   s   &&r   Údefault_reasoning_configÚ(TokenHubProfile.default_reasoning_config   s   € ð ˜4 ¨6Ð2Ð2r   Úreasoning_configc          
      ó|   <€ V ^8„  d   QhRS[ R,          RS[RS[S[ S[S[3,          S[ S[S[3,          3,          /# )r
   r   NÚcontextr   )r   r   Útupler   )r   r   s   "€r   r   r      sH   ø€ ÷ ]ñ ]Ù#'¨$¥;ð]ÙBEð]á	‰t‘C™�H�~™t¡C© H�~Ð-Õ	.ñ]r   c               ó    € V'       d,   \        V\        4      '       d   VP                  R 4      RJ d   / / 3# / R\        \	        V4      4      /3# )r   FÚreasoning_effort)Ú
isinstancer   Úgetr   r   )r   r   r   s   &$,r   Úbuild_api_kwargs_extrasÚ'TokenHubProfile.build_api_kwargs_extras   sO   € ÷
  ¤zÐ2BÄD×'IÒ'IÐM]×MaÑMaÐbkÓMlÐpuÓMuØ�r�6ˆMØÐ&¬Ô8HÐIYÓ8ZÓ([Ð\Ð\Ð\r   r   )N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r%   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r      s-   ø‡ € ÙX÷3ò 3ð
]Ø15÷]÷ ]ð ]r   r   ztencent-tokenhubzTencent TokenHubF)ÚnameÚdisplay_nameÚsupports_health_checkÚenv_varsN)ÚTOKENHUB_API_KEYÚTOKENHUB_BASE_URL)r+   Útypingr   Úagent.reasoning_effortr   r   Ú	providersr   Úproviders.baser   r   r   r   r   Ú<module>r8      sC   ðñ	õ ç DÝ 'Ý *ô]�oô ]ñ$ ‘/Ø	Ð*<ÐTYØ6ôö r   