The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(providers): LM Studio and Tencent TokenHub get provider profiles; base_url-only agents get snapshot cells
kshitijk4poor4c84ff744e7d
diff --git a/agent/chat_completion_helpers.py b/agent/chat_completion_helpers.pyindex db9ea4fa367..6f56a10a1b0 100644--- a/agent/chat_completion_helpers.py+++ b/agent/chat_completion_helpers.py@@ -1505,6 +1505,7 @@ def _build_chat_completions_kwargs(agent, api_messages, tools_for_api, reasoningcache_scope_id=cache_scope_id, ollama_num_ctx=agent._ollama_num_ctx,provider_preferences=_prefs or None, openrouter_min_coding_score=agent.openrouter_min_coding_score,supports_reasoning=agent._supports_reasoning_extra_body(),+ lmstudio_reasoning_options=agent._lmstudio_reasoning_options_cached() if _is_lmstudio else None,qwen_session_metadata=_qwen_meta)if _profile:# Profiles handle per-provider quirks via hooks fed the context above.@@ -1521,14 +1522,12 @@ def _build_chat_completions_kwargs(agent, api_messages, tools_for_api, reasoningis_nvidia_nim=base_url_host_matches(_host, "integrate.api.nvidia.com"),is_kimi=any(base_url_host_matches(agent.base_url, h) for h in ("api.kimi.com", "moonshot.ai", "moonshot.cn")),is_tokenhub=base_url_host_matches(_host, "tokenhub.tencentmaas.com"),- is_lmstudio=_is_lmstudio,is_custom_provider=agent.provider == "custom",qwen_prepare_fn=agent._qwen_prepare_chat_messages if _is_qwen else None,qwen_prepare_inplace_fn=agent._qwen_prepare_chat_messages_inplace if _is_qwen else None,fixed_temperature=_fixed_temp,omit_temperature=_omit_temp,github_reasoning_extra=agent._github_models_reasoning_extra_body() if _is_gh else None,- lmstudio_reasoning_options=agent._lmstudio_reasoning_options_cached() if _is_lmstudio else None,provider_name=agent.provider,)diff --git a/agent/transports/chat_completions.py b/agent/transports/chat_completions.pyindex 52ba191bf03..40dcff6d6b6 100644--- a/agent/transports/chat_completions.py+++ b/agent/transports/chat_completions.py@@ -8,7 +8,6 @@ import jsonfrom typing import Anyfrom urllib.parse import urlparse-from agent.lmstudio_reasoning import resolve_lmstudio_effortfrom agent.reasoning_effort import (KIMI_K3_EFFORTS, KIMI_K3_OVERRIDES, OPENAI_COMPAT_WIRE_EFFORTS, TOKENHUB_EFFORTS, clamp_effort,clamp_reasoning_config, kimi_supported_efforts, requested_effort,@@ -487,12 +486,11 @@ class ChatCompletionsTransport(ProviderTransport):api_kwargs = _base_kwargs(model, sanitized, tools, params)is_kimi = params.get("is_kimi", False)- is_lmstudio = params.get("is_lmstudio", False)supports_reasoning = params.get("supports_reasoning", False)reasoning_config = _reasoning_config_for_model(model, params.get("reasoning_config"))_apply_max_tokens(api_kwargs, model, reasoning_config, params)- # Kimi / TokenHub / LM Studio: top-level reasoning_effort (unless thinking disabled).+ # Kimi / TokenHub by host (base_url-only agents): top-level reasoning_effort (unless thinking disabled).thinking_off = isinstance(reasoning_config, dict) and reasoning_config.get("enabled") is False_e = requested_effort(reasoning_config)if is_kimi and not thinking_off:@@ -505,10 +503,6 @@ class ChatCompletionsTransport(ProviderTransport):)if params.get("is_tokenhub", False) and not thinking_off:api_kwargs["reasoning_effort"] = "high" if _e is None else clamp_effort(_e, TOKENHUB_EFFORTS)- if is_lmstudio and supports_reasoning:- _lm_effort = resolve_lmstudio_effort(reasoning_config, params.get("lmstudio_reasoning_options"))- if _lm_effort is not None:- api_kwargs["reasoning_effort"] = _lm_effortextra_body: dict[str, Any] = {}is_openrouter = params.get("is_openrouter", False)@@ -523,8 +517,7 @@ class ChatCompletionsTransport(ProviderTransport):if is_kimi:extra_body["thinking"] = {"type": "disabled" if thinking_off else "enabled"}- # LM Studio is handled above via top-level reasoning_effort.- if supports_reasoning and not is_lmstudio:+ if supports_reasoning:if params.get("is_github_models", False):if params.get("github_reasoning_extra") is not None:extra_body["reasoning"] = params["github_reasoning_extra"]@@ -570,6 +563,7 @@ class ChatCompletionsTransport(ProviderTransport):qwen_session_metadata=params.get("qwen_session_metadata"), model=model,base_url=params.get("base_url"), ollama_num_ctx=params.get("ollama_num_ctx"),session_id=params.get("session_id"), cache_scope_id=params.get("cache_scope_id"),+ reasoning_options=params.get("lmstudio_reasoning_options"),)api_kwargs.update(top_level_from_profile)diff --git a/hermes_cli/provider_catalog.py b/hermes_cli/provider_catalog.pyindex 7d79e7ee00a..1bc60b45524 100644--- a/hermes_cli/provider_catalog.py+++ b/hermes_cli/provider_catalog.py@@ -6,8 +6,8 @@ silently went missing from the GUI. ``auth_type`` / ``api_key_env_vars`` / ``bascome from :data:`hermes_cli.auth.PROVIDER_REGISTRY` (credential truth); ``display_name`` /``description`` / ``signup_url`` from the provider's :class:`providers.base.ProviderProfile`, fallingback to the ``CANONICAL_PROVIDERS`` entry's ``label`` / ``tui_desc`` and the ``OPTIONAL_ENV_VARS``-signup URL (many profiles leave these blank, and lmstudio, openai-api, tencent-tokenhub, xai-oauth-have no profile at all — the fallbacks are load-bearing).+signup URL (many profiles leave these blank, and openai-api, tencent-tokenplan, xai-oauth have no+profile at all — the fallbacks are load-bearing)."""from __future__ import annotationsdiff --git a/plugins/model-providers/lmstudio/__init__.py b/plugins/model-providers/lmstudio/__init__.pynew file mode 100644index 00000000000..36c6dcac60d--- /dev/null+++ b/plugins/model-providers/lmstudio/__init__.py@@ -0,0 +1,45 @@+"""LM Studio provider profile (local desktop app with an OpenAI-compatible server).++Request quirk: reasoning goes out as top-level ``reasoning_effort``, gated on and clamped to+the per-model ``allowed_options`` LM Studio publishes in ``/api/v1/models``. The agent probes+and caches those options and passes them as ``reasoning_options``.++Everything else stays where it lives today: endpoint, ``LM_API_KEY`` / ``LM_BASE_URL`` and the+no-auth placeholder (``hermes_cli/auth.py`` registry row), the chat-model picker probe+(``hermes_cli/models_local.py``). Hence ``base_url`` is left empty: a loopback ``base_url``+would map every ``127.0.0.1`` / ``localhost`` endpoint to LM Studio in URL->provider inference+and disable local-server detection for Ollama, llama.cpp and vLLM.+"""++from typing import Any++from agent.lmstudio_reasoning import resolve_lmstudio_effort+from providers import register_provider+from providers.base import ProviderProfile+++class LMStudioProfile(ProviderProfile):+ """LM Studio: top-level ``reasoning_effort`` from the model's published options."""++ def build_api_kwargs_extras(+ self, *, reasoning_config: dict | None = None, supports_reasoning: bool = False,+ reasoning_options: list[str] | None = None, **context: Any,+ ) -> tuple[dict[str, Any], dict[str, Any]]:+ """``supports_reasoning`` is true only when the model publishes a non-``off`` option;+ ``reasoning_options`` is the agent's cached probe of them. Auxiliary calls have no probe+ (``None``) and keep the generic nested ``reasoning`` they always sent."""+ if reasoning_options is None:+ if not reasoning_config or not isinstance(reasoning_config, dict):+ return {}, {}+ if reasoning_config.get("enabled") is False:+ return {"reasoning": {"enabled": False}}, {}+ return {"reasoning": {"enabled": True, "effort": reasoning_config.get("effort") or "medium"}}, {}+ if not supports_reasoning:+ return {}, {}+ effort = resolve_lmstudio_effort(reasoning_config, reasoning_options)+ return {}, ({"reasoning_effort": effort} if effort is not None else {})+++register_provider(LMStudioProfile(+ name="lmstudio", display_name="LM Studio", supports_model_listing=False, supports_health_check=False,+))diff --git a/plugins/model-providers/lmstudio/plugin.yaml b/plugins/model-providers/lmstudio/plugin.yamlnew file mode 100644index 00000000000..abece9d3a5b--- /dev/null+++ b/plugins/model-providers/lmstudio/plugin.yaml@@ -0,0 +1,5 @@+name: lmstudio-provider+kind: model-provider+version: 1.0.0+description: LM Studio+author: Nous Researchdiff --git a/plugins/model-providers/tencent-tokenhub/__init__.py b/plugins/model-providers/tencent-tokenhub/__init__.pynew file mode 100644index 00000000000..e870ff6e977--- /dev/null+++ b/plugins/model-providers/tencent-tokenhub/__init__.py@@ -0,0 +1,40 @@+"""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``; model listing and the doctor+probe stay off so the picker keeps the curated list.+"""++from typing import Any++from agent.reasoning_effort import TOKENHUB_EFFORTS, clamp_effort, requested_effort+from providers import register_provider+from providers.base import ProviderProfile+++class TokenHubProfile(ProviderProfile):+ """TokenHub: top-level ``reasoning_effort``; main-loop turns default to ``high``."""++ def default_reasoning_config(self, model: str | None = None) -> dict | None:+ """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."""+ return {"enabled": True, "effort": "high"}++ def build_api_kwargs_extras(+ self, *, reasoning_config: dict | None = None, **context: Any,+ ) -> tuple[dict[str, Any], dict[str, Any]]:+ # No config (an auxiliary call with no effort configured): send nothing. Main-loop turns+ # reach here with ``default_reasoning_config`` filled in.+ if not reasoning_config or not isinstance(reasoning_config, dict) or reasoning_config.get("enabled") is False:+ return {}, {}+ effort = requested_effort(reasoning_config)+ return {}, {"reasoning_effort": "high" if effort is None else clamp_effort(effort, TOKENHUB_EFFORTS)}+++register_provider(TokenHubProfile(+ name="tencent-tokenhub", display_name="Tencent TokenHub", base_url="https://tokenhub.tencentmaas.com/v1",+ supports_model_listing=False, supports_health_check=False,+))diff --git a/plugins/model-providers/tencent-tokenhub/plugin.yaml b/plugins/model-providers/tencent-tokenhub/plugin.yamlnew file mode 100644index 00000000000..9765c40433f--- /dev/null+++ b/plugins/model-providers/tencent-tokenhub/plugin.yaml@@ -0,0 +1,5 @@+name: tencent-tokenhub-provider+kind: model-provider+version: 1.0.0+description: Tencent TokenHub+author: Nous Researchdiff --git a/tests/agent/transports/test_chat_completions.py b/tests/agent/transports/test_chat_completions.pyindex ef4d40458fd..7f16f16c68f 100644--- a/tests/agent/transports/test_chat_completions.py+++ b/tests/agent/transports/test_chat_completions.py@@ -9,6 +9,7 @@ from openai import OpenAIfrom agent.transports import get_transportfrom agent.transports.types import NormalizedResponse+from providers import get_provider_profile@pytest.fixture@@ -526,7 +527,7 @@ class TestChatCompletionsLmStudioReasoning:def test_omits_effort_when_high_not_allowed_toggle(self, transport):kw = transport.build_kwargs(model="gpt-oss", messages=[{"role": "user", "content": "Hi"}],- is_lmstudio=True,+ provider_profile=get_provider_profile("lmstudio"),supports_reasoning=True,reasoning_config={"effort": "high"},lmstudio_reasoning_options=["off", "on"],@@ -537,7 +538,7 @@ class TestChatCompletionsLmStudioReasoning:def test_passes_through_when_effort_allowed(self, transport):kw = transport.build_kwargs(model="gpt-oss", messages=[{"role": "user", "content": "Hi"}],- is_lmstudio=True,+ provider_profile=get_provider_profile("lmstudio"),supports_reasoning=True,reasoning_config={"effort": "high"},lmstudio_reasoning_options=["off", "low", "medium", "high"],diff --git a/tests/agent/transports/test_provider_wire_snapshot.py b/tests/agent/transports/test_provider_wire_snapshot.pyindex 3f71c244a27..2a1beaafc84 100644--- a/tests/agent/transports/test_provider_wire_snapshot.py+++ b/tests/agent/transports/test_provider_wire_snapshot.py@@ -74,6 +74,24 @@ BASE_URLS = {"custom": "http://127.0.0.1:8080/v1",}+# Agents built from a base_url alone (``AIAgent(base_url=..., api_key=...)``: ``run_agent.py``+# main, the batch runner, library callers) carry ``provider=""``. Their request quirks are+# detected from the host, so each host-detected quirk gets one base_url-only cell, plus generic+# and local endpoints. Keys are ``base-url:<label>``; they sit outside the registry coverage check.+BASE_URL_ONLY = {+ "base-url:openrouter": ("anthropic/claude-opus-5.5", "https://openrouter.ai/api/v1"),+ "base-url:nous": ("anthropic/claude-opus-5.5", "https://inference-api.nousresearch.com/v1"),+ "base-url:kimi": ("kimi-k3", "https://api.moonshot.ai/v1"),+ "base-url:kimi-coding": ("kimi-k3", "https://api.kimi.com/coding/v1"),+ "base-url:tokenhub": ("hunyuan-t1", "https://tokenhub.tencentmaas.com/v1"),+ "base-url:github-models": ("openai/gpt-5.5", "https://models.github.ai/inference"),+ "base-url:nvidia-nim": ("nvidia/nemotron-3-super", "https://integrate.api.nvidia.com/v1"),+ "base-url:qwen-portal": ("qwen3-coder-plus", "https://portal.qwen.ai/v1"),+ "base-url:lmstudio-port": ("qwen/qwen3-8b", "http://127.0.0.1:1234/v1"),+ "base-url:ollama": ("qwen3:8b", "http://127.0.0.1:11434/v1"),+ "base-url:generic": ("my-model", "https://llm.example.com/v1"),+}+# Values that legitimately differ per run or per release; everything else compares exactly._VOLATILE = ((re.compile(r"client=hermes-client-v[^\"]*"), "client=hermes-client-v<VERSION>"),@@ -174,24 +192,33 @@ def _load() -> dict[str, Any]:CELLS = _cells()+BASE_URL_CELLS = [(key, model, url) for key, (model, url) in BASE_URL_ONLY.items()][email protected]("provider,model,base_url", CELLS, ids=[c[0] for c in CELLS])-def test_provider_wire_matches_snapshot(offline, provider, model, base_url):- actual = _wire(provider, model, base_url)+def _check(key: str, actual: dict[str, Any], model: str, base_url: str) -> None:if UPDATE:golden = _load()- golden[provider] = {"model": model, "base_url": base_url, **actual}+ golden[key] = {"model": model, "base_url": base_url, **actual}SNAPSHOT.write_text(json.dumps(dict(sorted(golden.items())), indent=1, sort_keys=True) + "\n",encoding="utf-8")return- expected = _load().get(provider)- assert expected is not None, f"{provider} has no recorded wire; regenerate the snapshot (module docstring)"+ expected = _load().get(key)+ assert expected is not None, f"{key} has no recorded wire; regenerate the snapshot (module docstring)"expected = {k: v for k, v in expected.items() if k not in ("model", "base_url")}- assert actual == expected, f"{provider} wire changed — {_first_divergence(expected, actual)}"+ assert actual == expected, f"{key} wire changed — {_first_divergence(expected, actual)}"++[email protected]("provider,model,base_url", CELLS, ids=[c[0] for c in CELLS])+def test_provider_wire_matches_snapshot(offline, provider, model, base_url):+ _check(provider, _wire(provider, model, base_url), model, base_url)++[email protected]("key,model,base_url", BASE_URL_CELLS, ids=[c[0] for c in BASE_URL_CELLS])+def test_base_url_only_wire_matches_snapshot(offline, key, model, base_url):+ _check(key, _wire("", model, base_url), model, base_url)def test_snapshot_covers_every_provider():- recorded, current = set(_load()), {c[0] for c in CELLS}+ recorded, current = set(_load()), {c[0] for c in CELLS} | set(BASE_URL_ONLY)assert current <= recorded, f"providers without a recorded wire: {sorted(current - recorded)}"assert recorded <= current, f"snapshot entries for providers that no longer exist: {sorted(recorded - current)}"diff --git a/tests/fixtures/provider_wire_snapshot.json b/tests/fixtures/provider_wire_snapshot.jsonindex 2835c600425..45a1e6e5538 100644--- a/tests/fixtures/provider_wire_snapshot.json+++ b/tests/fixtures/provider_wire_snapshot.json@@ -2096,6 +2096,2201 @@]}},+ "base-url:generic": {+ "api_mode": "chat_completions",+ "base_url": "https://llm.example.com/v1",+ "high": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "my-model",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "model": "my-model",+ "off": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "my-model",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "unset": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "my-model",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ }+ },+ "base-url:github-models": {+ "api_mode": "codex_responses",+ "base_url": "https://models.github.ai/inference",+ "high": {+ "input": [+ {+ "content": "list files",+ "role": "user",+ "type": "message"+ },+ {+ "arguments": "{\"command\": \"ls\"}",+ "call_id": "call_1",+ "name": "terminal",+ "type": "function_call"+ },+ {+ "call_id": "call_1",+ "output": "a.txt\nb.txt",+ "type": "function_call_output"+ },+ {+ "content": "thanks, now summarize",+ "role": "user",+ "type": "message"+ }+ ],+ "instructions": "You are a test agent.",+ "model": "openai/gpt-5.5",+ "parallel_tool_calls": true,+ "reasoning": {+ "effort": "high",+ "summary": "auto"+ },+ "store": false,+ "timeout": 1800.0,+ "tool_choice": "auto",+ "tools": [+ {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ },+ "strict": false,+ "type": "function"+ }+ ]+ },+ "model": "openai/gpt-5.5",+ "off": {+ "input": [+ {+ "content": "list files",+ "role": "user",+ "type": "message"+ },+ {+ "arguments": "{\"command\": \"ls\"}",+ "call_id": "call_1",+ "name": "terminal",+ "type": "function_call"+ },+ {+ "call_id": "call_1",+ "output": "a.txt\nb.txt",+ "type": "function_call_output"+ },+ {+ "content": "thanks, now summarize",+ "role": "user",+ "type": "message"+ }+ ],+ "instructions": "You are a test agent.",+ "model": "openai/gpt-5.5",+ "parallel_tool_calls": true,+ "store": false,+ "timeout": 1800.0,+ "tool_choice": "auto",+ "tools": [+ {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ },+ "strict": false,+ "type": "function"+ }+ ]+ },+ "unset": {+ "input": [+ {+ "content": "list files",+ "role": "user",+ "type": "message"+ },+ {+ "arguments": "{\"command\": \"ls\"}",+ "call_id": "call_1",+ "name": "terminal",+ "type": "function_call"+ },+ {+ "call_id": "call_1",+ "output": "a.txt\nb.txt",+ "type": "function_call_output"+ },+ {+ "content": "thanks, now summarize",+ "role": "user",+ "type": "message"+ }+ ],+ "instructions": "You are a test agent.",+ "model": "openai/gpt-5.5",+ "parallel_tool_calls": true,+ "reasoning": {+ "effort": "medium",+ "summary": "auto"+ },+ "store": false,+ "timeout": 1800.0,+ "tool_choice": "auto",+ "tools": [+ {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ },+ "strict": false,+ "type": "function"+ }+ ]+ }+ },+ "base-url:kimi": {+ "api_mode": "chat_completions",+ "base_url": "https://api.moonshot.ai/v1",+ "high": {+ "extra_body": {+ "thinking": {+ "type": "enabled"+ }+ },+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "reasoning_content": " ",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "kimi-k3",+ "reasoning_effort": "high",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "model": "kimi-k3",+ "off": {+ "extra_body": {+ "thinking": {+ "type": "disabled"+ }+ },+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "reasoning_content": " ",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "kimi-k3",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "unset": {+ "extra_body": {+ "thinking": {+ "type": "enabled"+ }+ },+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "reasoning_content": " ",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "kimi-k3",+ "reasoning_effort": "high",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ }+ },+ "base-url:kimi-coding": {+ "api_mode": "anthropic_messages",+ "base_url": "https://api.kimi.com/coding/v1",+ "high": {+ "max_tokens": 128000,+ "messages": [+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": [+ {+ "thinking": " ",+ "type": "thinking"+ },+ {+ "id": "call_1",+ "input": {+ "command": "ls"+ },+ "name": "terminal",+ "type": "tool_use"+ }+ ],+ "role": "assistant"+ },+ {+ "content": [+ {+ "content": "a.txt\nb.txt",+ "tool_use_id": "call_1",+ "type": "tool_result"+ },+ {+ "text": "thanks, now summarize",+ "type": "text"+ }+ ],+ "role": "user"+ }+ ],+ "model": "kimi-k3",+ "output_config": {+ "effort": "high"+ },+ "system": "You are a test agent.",+ "thinking": {+ "display": "summarized",+ "type": "adaptive"+ },+ "tool_choice": {+ "type": "auto"+ },+ "tools": [+ {+ "description": "Run a shell command.",+ "input_schema": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ },+ "name": "terminal"+ }+ ]+ },+ "model": "kimi-k3",+ "off": {+ "max_tokens": 128000,+ "messages": [+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": [+ {+ "thinking": " ",+ "type": "thinking"+ },+ {+ "id": "call_1",+ "input": {+ "command": "ls"+ },+ "name": "terminal",+ "type": "tool_use"+ }+ ],+ "role": "assistant"+ },+ {+ "content": [+ {+ "content": "a.txt\nb.txt",+ "tool_use_id": "call_1",+ "type": "tool_result"+ },+ {+ "text": "thanks, now summarize",+ "type": "text"+ }+ ],+ "role": "user"+ }+ ],+ "model": "kimi-k3",+ "system": "You are a test agent.",+ "tool_choice": {+ "type": "auto"+ },+ "tools": [+ {+ "description": "Run a shell command.",+ "input_schema": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ },+ "name": "terminal"+ }+ ]+ },+ "unset": {+ "max_tokens": 128000,+ "messages": [+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": [+ {+ "thinking": " ",+ "type": "thinking"+ },+ {+ "id": "call_1",+ "input": {+ "command": "ls"+ },+ "name": "terminal",+ "type": "tool_use"+ }+ ],+ "role": "assistant"+ },+ {+ "content": [+ {+ "content": "a.txt\nb.txt",+ "tool_use_id": "call_1",+ "type": "tool_result"+ },+ {+ "text": "thanks, now summarize",+ "type": "text"+ }+ ],+ "role": "user"+ }+ ],+ "model": "kimi-k3",+ "system": "You are a test agent.",+ "tool_choice": {+ "type": "auto"+ },+ "tools": [+ {+ "description": "Run a shell command.",+ "input_schema": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ },+ "name": "terminal"+ }+ ]+ }+ },+ "base-url:lmstudio-port": {+ "api_mode": "chat_completions",+ "base_url": "http://127.0.0.1:1234/v1",+ "high": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "qwen/qwen3-8b",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "model": "qwen/qwen3-8b",+ "off": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "qwen/qwen3-8b",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "unset": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "qwen/qwen3-8b",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ }+ },+ "base-url:nous": {+ "api_mode": "chat_completions",+ "base_url": "https://inference-api.nousresearch.com/v1",+ "high": {+ "extra_body": {+ "reasoning": {+ "effort": "high",+ "enabled": true+ }+ },+ "messages": [+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "You are a test agent.",+ "type": "text"+ }+ ],+ "role": "system"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "list files",+ "type": "text"+ }+ ],+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "a.txt\nb.txt",+ "type": "text"+ }+ ],+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "thanks, now summarize",+ "type": "text"+ }+ ],+ "role": "user"+ }+ ],+ "model": "anthropic/claude-opus-5.5",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "model": "anthropic/claude-opus-5.5",+ "off": {+ "extra_body": {+ "reasoning": {+ "effort": "none",+ "enabled": false+ }+ },+ "messages": [+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "You are a test agent.",+ "type": "text"+ }+ ],+ "role": "system"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "list files",+ "type": "text"+ }+ ],+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "a.txt\nb.txt",+ "type": "text"+ }+ ],+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "thanks, now summarize",+ "type": "text"+ }+ ],+ "role": "user"+ }+ ],+ "model": "anthropic/claude-opus-5.5",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "unset": {+ "extra_body": {+ "reasoning": {+ "effort": "medium",+ "enabled": true+ }+ },+ "messages": [+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "You are a test agent.",+ "type": "text"+ }+ ],+ "role": "system"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "list files",+ "type": "text"+ }+ ],+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "a.txt\nb.txt",+ "type": "text"+ }+ ],+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "thanks, now summarize",+ "type": "text"+ }+ ],+ "role": "user"+ }+ ],+ "model": "anthropic/claude-opus-5.5",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ }+ },+ "base-url:nvidia-nim": {+ "api_mode": "chat_completions",+ "base_url": "https://integrate.api.nvidia.com/v1",+ "high": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "nvidia/nemotron-3-super",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "model": "nvidia/nemotron-3-super",+ "off": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "nvidia/nemotron-3-super",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "unset": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "nvidia/nemotron-3-super",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ }+ },+ "base-url:ollama": {+ "api_mode": "chat_completions",+ "base_url": "http://127.0.0.1:11434/v1",+ "high": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "qwen3:8b",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "model": "qwen3:8b",+ "off": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "qwen3:8b",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "unset": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "qwen3:8b",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ }+ },+ "base-url:openrouter": {+ "api_mode": "chat_completions",+ "base_url": "https://openrouter.ai/api/v1",+ "high": {+ "extra_body": {+ "reasoning": {+ "effort": "high",+ "enabled": true+ }+ },+ "messages": [+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "You are a test agent.",+ "type": "text"+ }+ ],+ "role": "system"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "list files",+ "type": "text"+ }+ ],+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "a.txt\nb.txt",+ "type": "text"+ }+ ],+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "thanks, now summarize",+ "type": "text"+ }+ ],+ "role": "user"+ }+ ],+ "model": "anthropic/claude-opus-5.5",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "model": "anthropic/claude-opus-5.5",+ "off": {+ "extra_body": {+ "reasoning": {+ "effort": "none",+ "enabled": false+ }+ },+ "messages": [+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "You are a test agent.",+ "type": "text"+ }+ ],+ "role": "system"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "list files",+ "type": "text"+ }+ ],+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "a.txt\nb.txt",+ "type": "text"+ }+ ],+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "thanks, now summarize",+ "type": "text"+ }+ ],+ "role": "user"+ }+ ],+ "model": "anthropic/claude-opus-5.5",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "unset": {+ "extra_body": {+ "reasoning": {+ "effort": "medium",+ "enabled": true+ }+ },+ "messages": [+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "You are a test agent.",+ "type": "text"+ }+ ],+ "role": "system"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "list files",+ "type": "text"+ }+ ],+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "a.txt\nb.txt",+ "type": "text"+ }+ ],+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": [+ {+ "cache_control": {+ "type": "ephemeral"+ },+ "text": "thanks, now summarize",+ "type": "text"+ }+ ],+ "role": "user"+ }+ ],+ "model": "anthropic/claude-opus-5.5",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ }+ },+ "base-url:qwen-portal": {+ "api_mode": "chat_completions",+ "base_url": "https://portal.qwen.ai/v1",+ "high": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "qwen3-coder-plus",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "model": "qwen3-coder-plus",+ "off": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "qwen3-coder-plus",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "unset": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "qwen3-coder-plus",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ }+ },+ "base-url:tokenhub": {+ "api_mode": "chat_completions",+ "base_url": "https://tokenhub.tencentmaas.com/v1",+ "high": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "hunyuan-t1",+ "reasoning_effort": "high",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "model": "hunyuan-t1",+ "off": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "hunyuan-t1",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ },+ "unset": {+ "messages": [+ {+ "content": "You are a test agent.",+ "role": "system"+ },+ {+ "content": "list files",+ "role": "user"+ },+ {+ "content": "",+ "role": "assistant",+ "tool_calls": [+ {+ "function": {+ "arguments": "{\"command\": \"ls\"}",+ "name": "terminal"+ },+ "id": "call_1",+ "type": "function"+ }+ ]+ },+ {+ "content": "a.txt\nb.txt",+ "role": "tool",+ "tool_call_id": "call_1"+ },+ {+ "content": "thanks, now summarize",+ "role": "user"+ }+ ],+ "model": "hunyuan-t1",+ "reasoning_effort": "high",+ "timeout": 1800.0,+ "tools": [+ {+ "function": {+ "description": "Run a shell command.",+ "name": "terminal",+ "parameters": {+ "properties": {+ "command": {+ "type": "string"+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ }+ },+ "type": "function"+ }+ ]+ }+ },"bedrock": {"api_mode": "bedrock_converse","base_url": "https://bedrock-runtime.us-east-1.amazonaws.com",diff --git a/tests/hermes_cli/test_provider_catalog.py b/tests/hermes_cli/test_provider_catalog.pyindex ea688936a8d..5b3d8d98fdb 100644--- a/tests/hermes_cli/test_provider_catalog.py+++ b/tests/hermes_cli/test_provider_catalog.py@@ -14,12 +14,12 @@ from hermes_cli.provider_catalog import (def test_profileless_providers_still_present():"""Providers without a ProviderProfile must still resolve via fallbacks.- lmstudio / openai-api / tencent-tokenhub / xai-oauth have no profile on- main; they exist only as registry + canonical entries. The catalog must- not require a profile to include a provider.+ openai-api / tencent-tokenplan / xai-oauth have no profile; they exist+ only as registry + canonical entries. The catalog must not require a+ profile to include a provider."""by = provider_catalog_by_slug()- for slug in ("lmstudio", "openai-api", "tencent-tokenhub", "xai-oauth"):+ for slug in ("openai-api", "tencent-tokenplan", "xai-oauth"):assert slug in by, f"{slug} dropped from catalog (profile-less provider)"assert by[slug].label, f"{slug} has empty label despite canonical fallback"assert by[slug].description, f"{slug} has empty description despite fallback"