Add Tencent Hy4 Preview to the model registry - #160
Draft
adambalogh wants to merge 1 commit into
Draft
Conversation
Open-weight 770B MoE (49B active) with a 1,048,576-token context window, open-sourced 2026-08-28, routed through OpenRouter like hy3. Pricing from OpenRouter's Hy4 Preview page ($0.834/$2.501 per MTok). Companion catalog PR: OpenGradient/chat-api#(pending) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xay2fLWeP439EAn77TWBTJ
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.
Summary
hy3.temperature=0.9for inference and the model accepts the standard sampling params per the OpenRouter listing, so nosupports_temperature/force_temperatureoverride was needed.hy4-preview,hy4,tencent/hy4-preview.CLAUDE.mdandREADME.md.Found during
Routine check for new releases from providers already integrated in the gateway. Also checked open PR #156 ("Add Z.ai GLM-5.3 and GLM-5.3-Flash") from a previous run of this task — it's unrelated (different files/lines) and still an open draft, so no overlap with this change.
Test plan
uv run pytest tests/test_pricing.py— 143 passed (addedtest_hy4_preview_resolves,test_hy4_preview_cost)make lint(ruff format + check, mypy) — cleanCompanion PR
opengradient/chat-api#293 — adds the corresponding catalog entry so clients can select the model.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xay2fLWeP439EAn77TWBTJ