add tencent/hy4-preview to model pickers

This commit is contained in:
rob-maron
2026-08-28 22:41:44 -04:00
committed by Teknium
parent 62e8126c69
commit f7c79efbac
4 changed files with 15 additions and 2 deletions
+4
View File
@@ -573,6 +573,10 @@ DEFAULT_CONTEXT_LENGTHS = {
"solar-pro3": 131072, "solar-pro3": 131072,
"solar-pro2": 65536, "solar-pro2": 65536,
"solar-mini": 32768, "solar-mini": 32768,
# Tencent — Hy4 Preview (Hunyuan), 1M context window per OpenRouter
# live metadata (2026-08-28). Longest-key-first so this wins over any
# future shorter hy* catch-all.
"hy4-preview": 1_048_576,
# Tencent — Hy3 Preview (Hunyuan) with 256K context window. # Tencent — Hy3 Preview (Hunyuan) with 256K context window.
# OpenRouter live metadata reports 262144 (256 × 1024); align the # OpenRouter live metadata reports 262144 (256 × 1024); align the
# static fallback so cache and offline both agree (issue #22268). # static fallback so cache and offline both agree (issue #22268).
+2
View File
@@ -123,6 +123,7 @@ OPENROUTER_MODELS: list[tuple[str, str]] = [
# Xiaomi # Xiaomi
("xiaomi/mimo-v2.5-pro", ""), ("xiaomi/mimo-v2.5-pro", ""),
# Tencent # Tencent
("tencent/hy4-preview", ""),
("tencent/hy3", ""), ("tencent/hy3", ""),
# StepFun # StepFun
("stepfun/step-3.7-flash", ""), ("stepfun/step-3.7-flash", ""),
@@ -304,6 +305,7 @@ _PROVIDER_MODELS: dict[str, list[str]] = {
# Xiaomi # Xiaomi
"xiaomi/mimo-v2.5-pro", "xiaomi/mimo-v2.5-pro",
# Tencent # Tencent
"tencent/hy4-preview",
"tencent/hy3", "tencent/hy3",
# StepFun # StepFun
"stepfun/step-3.7-flash", "stepfun/step-3.7-flash",
+1 -1
View File
@@ -7697,7 +7697,7 @@ class AIAgent:
"google/gemini-2", "google/gemini-2",
"google/gemma-4", "google/gemma-4",
"qwen/qwen3", "qwen/qwen3",
"tencent/hy3", "tencent/hy",
"xiaomi/", "xiaomi/",
) )
return any(model.startswith(prefix) for prefix in reasoning_model_prefixes) return any(model.startswith(prefix) for prefix in reasoning_model_prefixes)
+8 -1
View File
@@ -1,6 +1,6 @@
{ {
"version": 1, "version": 1,
"updated_at": "2026-08-28T07:53:26Z", "updated_at": "2026-08-29T02:38:32Z",
"metadata": { "metadata": {
"source": "hermes-agent repo", "source": "hermes-agent repo",
"docs": "https://hermes-agent.nousresearch.com/docs/reference/model-catalog" "docs": "https://hermes-agent.nousresearch.com/docs/reference/model-catalog"
@@ -137,6 +137,10 @@
"id": "xiaomi/mimo-v2.5-pro", "id": "xiaomi/mimo-v2.5-pro",
"description": "" "description": ""
}, },
{
"id": "tencent/hy4-preview",
"description": ""
},
{ {
"id": "tencent/hy3", "id": "tencent/hy3",
"description": "" "description": ""
@@ -293,6 +297,9 @@
{ {
"id": "xiaomi/mimo-v2.5-pro" "id": "xiaomi/mimo-v2.5-pro"
}, },
{
"id": "tencent/hy4-preview"
},
{ {
"id": "tencent/hy3" "id": "tencent/hy3"
}, },