Skip to content

Add Tencent Hy4 Preview to the model registry - #160

Draft
adambalogh wants to merge 1 commit into
mainfrom
og/compassionate-thompson-wk2ecq
Draft

Add Tencent Hy4 Preview to the model registry#160
adambalogh wants to merge 1 commit into
mainfrom
og/compassionate-thompson-wk2ecq

Conversation

@adambalogh

@adambalogh adambalogh commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Registers Tencent's Hy4 Preview — a 770B-parameter (49B active) open-weight MoE with a 1,048,576-token context window, open-sourced 2026-08-28 — routed through OpenRouter, the same path as hy3.
  • Pricing ($0.834 / $2.501 per MTok) taken from OpenRouter's Hy4 Preview page.
  • Tencent's docs recommend temperature=0.9 for inference and the model accepts the standard sampling params per the OpenRouter listing, so no supports_temperature/force_temperature override was needed.
  • Registered names: hy4-preview, hy4, tencent/hy4-preview.
  • Updated the provider tables in CLAUDE.md and README.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 (added test_hy4_preview_resolves, test_hy4_preview_cost)
  • make lint (ruff format + check, mypy) — clean

Companion 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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants