Feat/tencent tokenhub provider#16860
Closed
Contentment003111 wants to merge 7 commits into
Closed
Conversation
added 7 commits
April 28, 2026 15:00
Register tencent-tokenhub as a new API-key provider targeting https://tokenhub.tencentmaas.com/v1. Includes full provider wiring (auth, models, doctor, CLI, overlay, aliases), 65 new test cases, and documentation updates. Files changed: 13 modified, 1 new (+143/-6 lines)
OpenRouter lists the model as tencent/hy3-preview:free (with :free suffix). Update OPENROUTER_MODELS, model-catalog.json, and tests to match.
c212efe to
a9a5daa
Compare
teknium1
pushed a commit
that referenced
this pull request
Apr 28, 2026
Registers tencent-tokenhub (https://tokenhub.tencentmaas.com/v1) as a new API-key provider with model tencent/hy3-preview (256K context). - PROVIDER_REGISTRY entry + TOKENHUB_API_KEY / TOKENHUB_BASE_URL env vars - Aliases: tencent, tokenhub, tencent-cloud, tencentmaas - openai_chat transport with is_tokenhub branch for top-level reasoning_effort (Hy3 is a reasoning model) - tencent/hy3-preview:free added to OpenRouter curated list - 60+ tests (provider registry, aliases, runtime resolution, credentials, model catalog, URL mapping, context length) - Docs: integrations/providers.md, environment-variables.md, model-catalog.json Author: simonweng <simonweng@tencent.com> Salvaged from PR #16860 onto current main (resolved conflicts with #16935 Azure Anthropic env-var hint tests and the --provider choices= list removal in chat_parser).
teknium1
pushed a commit
that referenced
this pull request
Apr 28, 2026
AUTHOR_MAP entry for the tencent-tokenhub provider PR #16860 contributor.
Contributor
|
Merged via #16960 — your commit was cherry-picked onto current main with your authorship preserved (see commit a6a6cf0). Thanks for the thorough provider integration and the 60+ tests! Salvage notes: resolved a conflict with #16935 in the runtime-resolver tests (kept both test classes), and dropped a stray blank line in |
ulasbilgen
pushed a commit
to ulasbilgen/hermes-adhd-agent
that referenced
this pull request
May 1, 2026
Registers tencent-tokenhub (https://tokenhub.tencentmaas.com/v1) as a new API-key provider with model tencent/hy3-preview (256K context). - PROVIDER_REGISTRY entry + TOKENHUB_API_KEY / TOKENHUB_BASE_URL env vars - Aliases: tencent, tokenhub, tencent-cloud, tencentmaas - openai_chat transport with is_tokenhub branch for top-level reasoning_effort (Hy3 is a reasoning model) - tencent/hy3-preview:free added to OpenRouter curated list - 60+ tests (provider registry, aliases, runtime resolution, credentials, model catalog, URL mapping, context length) - Docs: integrations/providers.md, environment-variables.md, model-catalog.json Author: simonweng <simonweng@tencent.com> Salvaged from PR NousResearch#16860 onto current main (resolved conflicts with NousResearch#16935 Azure Anthropic env-var hint tests and the --provider choices= list removal in chat_parser).
ulasbilgen
pushed a commit
to ulasbilgen/hermes-adhd-agent
that referenced
this pull request
May 1, 2026
AUTHOR_MAP entry for the tencent-tokenhub provider PR NousResearch#16860 contributor.
donald131
pushed a commit
to donald131/hermes-agent
that referenced
this pull request
May 2, 2026
Registers tencent-tokenhub (https://tokenhub.tencentmaas.com/v1) as a new API-key provider with model tencent/hy3-preview (256K context). - PROVIDER_REGISTRY entry + TOKENHUB_API_KEY / TOKENHUB_BASE_URL env vars - Aliases: tencent, tokenhub, tencent-cloud, tencentmaas - openai_chat transport with is_tokenhub branch for top-level reasoning_effort (Hy3 is a reasoning model) - tencent/hy3-preview:free added to OpenRouter curated list - 60+ tests (provider registry, aliases, runtime resolution, credentials, model catalog, URL mapping, context length) - Docs: integrations/providers.md, environment-variables.md, model-catalog.json Author: simonweng <simonweng@tencent.com> Salvaged from PR NousResearch#16860 onto current main (resolved conflicts with NousResearch#16935 Azure Anthropic env-var hint tests and the --provider choices= list removal in chat_parser).
donald131
pushed a commit
to donald131/hermes-agent
that referenced
this pull request
May 2, 2026
AUTHOR_MAP entry for the tencent-tokenhub provider PR NousResearch#16860 contributor.
4 tasks
02356abc
pushed a commit
to 02356abc/hermes-agent
that referenced
this pull request
May 14, 2026
Registers tencent-tokenhub (https://tokenhub.tencentmaas.com/v1) as a new API-key provider with model tencent/hy3-preview (256K context). - PROVIDER_REGISTRY entry + TOKENHUB_API_KEY / TOKENHUB_BASE_URL env vars - Aliases: tencent, tokenhub, tencent-cloud, tencentmaas - openai_chat transport with is_tokenhub branch for top-level reasoning_effort (Hy3 is a reasoning model) - tencent/hy3-preview:free added to OpenRouter curated list - 60+ tests (provider registry, aliases, runtime resolution, credentials, model catalog, URL mapping, context length) - Docs: integrations/providers.md, environment-variables.md, model-catalog.json Author: simonweng <simonweng@tencent.com> Salvaged from PR NousResearch#16860 onto current main (resolved conflicts with NousResearch#16935 Azure Anthropic env-var hint tests and the --provider choices= list removal in chat_parser).
02356abc
pushed a commit
to 02356abc/hermes-agent
that referenced
this pull request
May 14, 2026
AUTHOR_MAP entry for the tencent-tokenhub provider PR NousResearch#16860 contributor.
dannyJ848
pushed a commit
to dannyJ848/hermes-agent
that referenced
this pull request
May 17, 2026
Registers tencent-tokenhub (https://tokenhub.tencentmaas.com/v1) as a new API-key provider with model tencent/hy3-preview (256K context). - PROVIDER_REGISTRY entry + TOKENHUB_API_KEY / TOKENHUB_BASE_URL env vars - Aliases: tencent, tokenhub, tencent-cloud, tencentmaas - openai_chat transport with is_tokenhub branch for top-level reasoning_effort (Hy3 is a reasoning model) - tencent/hy3-preview:free added to OpenRouter curated list - 60+ tests (provider registry, aliases, runtime resolution, credentials, model catalog, URL mapping, context length) - Docs: integrations/providers.md, environment-variables.md, model-catalog.json Author: simonweng <simonweng@tencent.com> Salvaged from PR NousResearch#16860 onto current main (resolved conflicts with NousResearch#16935 Azure Anthropic env-var hint tests and the --provider choices= list removal in chat_parser).
dannyJ848
pushed a commit
to dannyJ848/hermes-agent
that referenced
this pull request
May 17, 2026
AUTHOR_MAP entry for the tencent-tokenhub provider PR NousResearch#16860 contributor.
gweeteve
pushed a commit
to gweeteve/hermes-agent
that referenced
this pull request
Jun 2, 2026
Registers tencent-tokenhub (https://tokenhub.tencentmaas.com/v1) as a new API-key provider with model tencent/hy3-preview (256K context). - PROVIDER_REGISTRY entry + TOKENHUB_API_KEY / TOKENHUB_BASE_URL env vars - Aliases: tencent, tokenhub, tencent-cloud, tencentmaas - openai_chat transport with is_tokenhub branch for top-level reasoning_effort (Hy3 is a reasoning model) - tencent/hy3-preview:free added to OpenRouter curated list - 60+ tests (provider registry, aliases, runtime resolution, credentials, model catalog, URL mapping, context length) - Docs: integrations/providers.md, environment-variables.md, model-catalog.json Author: simonweng <simonweng@tencent.com> Salvaged from PR NousResearch#16860 onto current main (resolved conflicts with NousResearch#16935 Azure Anthropic env-var hint tests and the --provider choices= list removal in chat_parser).
gweeteve
pushed a commit
to gweeteve/hermes-agent
that referenced
this pull request
Jun 2, 2026
AUTHOR_MAP entry for the tencent-tokenhub provider PR NousResearch#16860 contributor.
Egavasyug
pushed a commit
to Egavasyug/hermes-agent
that referenced
this pull request
Jun 10, 2026
Registers tencent-tokenhub (https://tokenhub.tencentmaas.com/v1) as a new API-key provider with model tencent/hy3-preview (256K context). - PROVIDER_REGISTRY entry + TOKENHUB_API_KEY / TOKENHUB_BASE_URL env vars - Aliases: tencent, tokenhub, tencent-cloud, tencentmaas - openai_chat transport with is_tokenhub branch for top-level reasoning_effort (Hy3 is a reasoning model) - tencent/hy3-preview:free added to OpenRouter curated list - 60+ tests (provider registry, aliases, runtime resolution, credentials, model catalog, URL mapping, context length) - Docs: integrations/providers.md, environment-variables.md, model-catalog.json Author: simonweng <simonweng@tencent.com> Salvaged from PR NousResearch#16860 onto current main (resolved conflicts with NousResearch#16935 Azure Anthropic env-var hint tests and the --provider choices= list removal in chat_parser).
Egavasyug
pushed a commit
to Egavasyug/hermes-agent
that referenced
this pull request
Jun 10, 2026
AUTHOR_MAP entry for the tencent-tokenhub provider PR NousResearch#16860 contributor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Register tencent-tokenhub as a new API-key provider targeting https://tokenhub.tencentmaas.com/v1. Includes full provider wiring (auth, models, doctor, CLI, overlay, aliases), 65 new test cases, and documentation updates.
Files changed: 13 modified, 1 new (+637/-6 lines)
What does this PR do?
Add
tencent-tokenhubas a new API-key provider, enabling users to access Tencent's TokenHub MaaS platform (https://tokenhub.tencentmaas.com/v1) through Hermes.TokenHub is Tencent's model-as-a-service gateway that provides access to models like
tencent/hy3-preview. This PR follows the same registration pattern as existing providers (Xiaomi, ArceeAI, etc.) and includes full provider wiring, comprehensive tests, and documentation.Related Issue
N/A — new provider integration.
Type of Change
Changes Made
Core Implementation
hermes_cli/providers.py— Registertencent-tokenhubinHermesOverlayand_ALIASEShermes_cli/auth.py— AddProviderConfigentry inPROVIDER_REGISTRY+ aliases (tencent,tokenhub,tencent-cloud,tencentmaas) inresolve_provider()hermes_cli/models.py— Add default model definitions for tencent-tokenhubhermes_cli/doctor.py— Include tencent-tokenhub in diagnostic checkshermes_cli/main.py— Wire up tencent-tokenhub in CLI entry pointagent/model_metadata.py— Add model metadata entriesagent/auxiliary_client.py— Register auxiliary client supportTests (65 new test cases)
tests/hermes_cli/test_tencent_tokenhub_provider.py— New file (494 lines), 60 tests covering: provider config, auth resolution, alias mapping, model definitions, doctor integration, overlay wiring, model catalog, and env-var isolationtests/hermes_cli/test_runtime_provider_resolution.py— +5 runtime resolution tests for tencent-tokenhubtests/hermes_cli/test_xiaomi_provider.py— AddTOKENHUB_API_KEYto env cleanup for hermetic isolationtests/hermes_cli/test_arcee_provider.py— AddTOKENHUB_API_KEYto env cleanup for hermetic isolationDocumentation
website/docs/integrations/providers.md— Add tencent-tokenhub provider documentationwebsite/docs/reference/environment-variables.md— DocumentTOKENHUB_API_KEYwebsite/static/api/model-catalog.json— Addtencent/hy3-previewto model catalogHow to Test
pytest tests/hermes_cli/test_tencent_tokenhub_provider.py -vpytest tests/hermes_cli/test_runtime_provider_resolution.py -k "TencentTokenhub" -vpytest tests/hermes_cli/test_xiaomi_provider.py tests/hermes_cli/test_arcee_provider.py -vTOKENHUB_API_KEY):export TOKENHUB_API_KEY="your-key-here" && hermes -p tencent-tokenhub -q "Hello"Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passDocumentation & Housekeeping
docs/, docstrings)cli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/A