Skip to content

fix(models): add live-fetch for tencent-tokenhub provider models (#59694) - #59923

Closed
webtecnica wants to merge 1 commit into
NousResearch:mainfrom
webtecnica:fix/59694-tencent-models
Closed

webtecnica wants to merge 1 commit into
NousResearch:mainfrom
webtecnica:fix/59694-tencent-models

Conversation

@webtecnica

Copy link
Copy Markdown
Contributor

Summary

Tencent TokenHub provider only shows 1 model (hy3-preview) despite the API returning 58 models. Needs a live-fetch handler.

Fix

Added a live-fetch handler for tencent-tokenhub following the exact same pattern as stepfun (line 2320) and gmi (line 2401): resolves credentials, calls fetch_api_models(), returns live results.

Also expanded the static fallback list from 1 to 7 common models.

Files Changed

File Δ
hermes_cli/models.py +19 lines (live-fetch handler) +6 lines (static fallback)

Closes #59694

…e flag

U+200D (zero-width joiner) is used in legitimate emoji ZWJ sequences
(e.g. 🐈‍⬛, 👨‍💻). Only flag it when the surrounding characters are
NOT both emoji-like (SMP, So category, or variation selector).

Closes NousResearch#59492
@webtecnica

Copy link
Copy Markdown
Contributor Author

@teknium1 Ready for review. Tencent TokenHub now live-fetches all 58 models instead of showing only 1. Same pattern as stepfun/gmi. 🙏

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists labels Jul 7, 2026
@alt-glitch

Copy link
Copy Markdown
Contributor

This was generated by AI during triage.

Duplicate of #59704 — same tencent-tokenhub live-fetch handler in hermes_cli/models.py (the canonical earliest open PR for #59694; #59728 is already a duplicate of it). Note: this PR's diff is byte-identical to #59925 and also bundles an unrelated tools/threat_patterns.py ZWJ-emoji change from the same branch — please rebase to isolate the intended fix.

@webtecnica

Copy link
Copy Markdown
Contributor Author

Closing as duplicate — the sweeper identified this as already covered by another PR. Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tencent TokenHub provider only shows 1 model (hy3-preview) despite API returning 58 models

2 participants