Repository navigation
feat(catalog): add Token Plan native media - #142141
Conversation
|
Verified head SHA 8903e8f matches PR. Two new catalog entries (alibaba-token-plan-media, alibaba-token-plan-provider); both YAML parse. No tests applicable. |
teknium1
left a comment
There was a problem hiding this comment.
Hi @oliver-mee, thanks for the two Alibaba Token Plan entries — reviewed both at cf585f15.
alibaba-token-plan-provider: can't list as built. It re-registers Hermes's bundled alibaba-token-plan / alibaba-token-plan-cn providers under the same names with different hosts (alibaba-token-plan/init.py:261-262, :308-309). We know #52915 was closed with "publish as a standalone plugin" — since then core folded Token Plan into the bundled alibaba provider, so that advice is out of date, sorry for the runaround. Please drop plugin-catalog/alibaba-token-plan-provider.yaml from this PR and send the Team profiles, tier-aware model list, reasoning mapping and host updates as a hermes-agent PR against plugins/model-providers/alibaba/__init__.py, where they're welcome. (A Team-only package that adds just alibaba-token-plan-team / -cn-team could list separately.)
alibaba-token-plan-media: the media backends are carefully built (SSRF-guarded downloads, whitelisted ffmpeg, fixed hosts). Before it can list:
- The image and video backends derive from the listed dashscope-image / dashscope-video plugins. Either offer the Token Plan region/tier work as PRs on rriggs/hermes-plugin-dashscope-image and -video first (it can list here if they decline or after 30 days of silence), or re-pin a package that ships only the TTS + ASR backends for now.
- tts/provider.py:93-95 — read keys with
agent.secret_scope.get_secret(name)like your other backends, not the privatetools.tool_backend_helpers.resolve_provider_secret. - asr/provider.py:21, :99 — replace
tools.transcription_audio._find_ffmpeg_binary/_find_ffprobe_binarywithshutil.which; image/media.py:43 — use the publictools.url_safety.create_ssrf_safe_async_client(or your own public-IP check + httpx with redirects off).
We'll add a disclosure line at merge.
Push the fix, re-pin sha: here and comment when it's in; we'll review the delta from cf585f15.
teknium1
left a comment
There was a problem hiding this comment.
@oliver-mee thanks for the update on alibaba-token-plan-media — we re-reviewed it at 54aab3e5. Fixed since our last pass: the PR now adds only the media entry (the extra provider YAML is gone), and the image downloads go through Hermes's SSRF-safe client with redirects off, which covers our download ask.
The new region/tier transcription profiles look clean: each reads its own key through get_secret and only talks to the two fixed Token Plan hosts.
Before it can list:
- One listing per lineage (still open). The image and video backends are still derived from the listed
dashscope-image/dashscope-videoplugins, and neither upstream repo has a PR from you yet. Either open the Token Plan region/tier work as PRs on rriggs/hermes-plugin-dashscope-image and rriggs/hermes-plugin-dashscope-video (this entry can list once they decline, or after 30 days with no answer), or re-pin a package that registers only the TTS + transcription backends for now. - Private secret helper in TTS (still open). tts/provider.py:93-95 —
_key()still imports the privatetools.tool_backend_helpers.resolve_provider_secret. Read each key with the publicagent.secret_scope.get_secret(name), the same way asr/provider.py:238 already does. - Private ffmpeg finders (still open). asr/provider.py:21 and :99 still import
tools.transcription_audio._find_ffmpeg_binary/_find_ffprobe_binary; useshutil.which("ffmpeg")/shutil.which("ffprobe")instead.
We'll add a disclosure line at merge.
Push the fix, re-pin sha: here and comment when it's in; we'll review the delta from 54aab3e5.
Pin the audio-only source revision that uses public secret and ffmpeg APIs and no longer ships dashscope-derived image or video backends.
|
Rebased on current Both private-helper asks land in the same pin. TTS reads each key through the public @teknium1 ready for the delta from |
teknium1
left a comment
There was a problem hiding this comment.
Re-reviewed at the current pin: the blocking asks from our earlier review are fixed. Approving for the catalog; we added any disclosure line and version floor as a merge chore. Thanks!
What does this PR do?
Add the standalone
alibaba-token-plan-mediacommunity catalogue entry, pinned to7b85246880f3dbcc082cd0f34753ee605d770aa5.The source package now ships only whole-file WebSocket TTS and synchronous file ASR. The image and video backends are removed, so this entry no longer lists the unreviewed dashscope-image or dashscope-video lineage. TTS reads keys through public
agent.secret_scope.get_secret, and ASR locates existing conversion binaries withshutil.which.Chat is not part of this entry. It is being integrated into the existing bundled Alibaba provider in #143375.
Related Issue
Chat replacement: #143375, following #52915 and the maintainer's updated direction.
Type of Change
Changes Made
plugin-catalog/alibaba-token-plan-media.yamlonly.54aab3e519ec267ba5526876bad9b4d9c3776bf5to7b85246880f3dbcc082cd0f34753ee605d770aa5.How to Test
Source validation on Python 3.14:
python -m pytest -q: 241 passed, 12 Hermes-dependent skips.tts/andasr/; no image or video directories are present.The catalogue structural validator at this PR head reports
OK: 1 file(s) valid.Validation details are recorded in the source validation note. No paid inference was run. Team/China ASR inference remains unverified.
Checklist
AI assistance
AI-assisted preparation and validation by Kimi k3.1-pro, directed by the human submitter. Human code review is not inferred.
🤖 Generated with Kimi k3.1-pro
🧑💻 Ideated, directed and reviewed by a human, @oliver-mee