Skip to content

fix(tencent): correct Hy3 input and output limits - #6126

Merged
neriousy merged 3 commits into
devfrom
hy3-input-limit
Sep 2, 2026
Merged

neriousy merged 3 commits into
devfrom
hy3-input-limit

Conversation

@neriousy

@neriousy neriousy commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Add limit.input = 192_000 to the shared tencent/hy3 base model.
  • Correct limit.output from 64_000 to 128_000, retaining the existing 256_000 context window.
  • Add a source comment linking Tencent's official model list, which documents 256K context, 192K maximum input, and 128K maximum output for Hy3.

The missing input ceiling lets clients using inherited metadata, including OpenCode Go, budget against the larger context window instead of the input limit. This change updates the shared base model; explicit provider overrides remain intact.

Related: anomalyco/opencode#45168, anomalyco/opencode#46137.

Source

Validation

  • bun validate passes.
  • Focused schema and base-model inheritance tests: 11 pass.
  • Compared generated catalogs before and after: only limits on 20 Hy3 provider entries change; explicit input/output overrides and all other model fields are preserved.
  • Broader schema/generation test run: 18 pass, 1 unrelated failure in repository open-weight model metadata includes weights links. All 39 models reported by that check are unchanged from the base commit.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

The lab-model limit change is sound, but inheritance leaves one provider with input above context.

## Action items
- **[medium] [possible mistake]** `models/tencent/hy3.toml:16` - **Check:** After `base_model` deep-merge, provider `limit.input` must not exceed that host’s `limit.context`. **Why:** Adding `input = 192_000` on the shared Hy3 base is inherited by hosts that only override context. `providers/opencode/models/hy3-free.toml` keeps `context = 190_000` and does not set `input`, so the resolved model becomes input 192k > context 190k—the same class of bad budgeting metadata this PR aims to fix. **Action:** On that provider (and any other Hy3 host whose context is below 192k), set an explicit `limit.input` ≤ its context, or use `base_model_omit = ["limit.input"]` if the host should not expose a separate input ceiling.

@neriousy
neriousy merged commit e7566a8 into dev Sep 2, 2026
2 checks passed
@neriousy
neriousy deleted the hy3-input-limit branch September 2, 2026 21:14
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] models/tencent/hy3.toml:14 - Check: After base_model deep-merge, provider limit.input must not exceed that host’s limit.context. Why: Adding input = 192_000 makes providers/opencode/models/hy3-free.toml resolve to context = 190_000 and inherited input = 192_000 (it only overrides context/output). That is an invalid limit pair for clients. Action: On providers/opencode/models/hy3-free.toml, either set an explicit limit.input ≤ 190_000 or add base_model_omit = ["limit.input"] so the free-tier entry does not inherit the lab input ceiling.

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.

1 participant