Skip to content

fix(core): restore tencent hy3 reasoning selection#36817

Open
jibin7jose wants to merge 3 commits into
anomalyco:devfrom
jibin7jose:fix-hy3-reasoning
Open

fix(core): restore tencent hy3 reasoning selection#36817
jibin7jose wants to merge 3 commits into
anomalyco:devfrom
jibin7jose:fix-hy3-reasoning

Conversation

@jibin7jose

@jibin7jose jibin7jose commented Jul 14, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #36812

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR restores the reasoning effort selection (Low, Medium, High) for the Tencent Hy3 (Free) models in the OpenCode app.

The issue occurred because dynamic variant generation in packages/core/src/plugin/variant.ts previously lacked logic to detect and handle the hy3 models. I have updated the generate function to identify hy3 models and provide the low, medium, and high variants, fixing the regression.

How did you verify your code works?

  • Verified the logic handles the hy3 model checks in variant.ts.
  • Added a new unit test in packages/core/test/plugin/variant.test.ts to ensure hy3 models correctly return the low, medium, and high reasoning effort variants.
  • Ran the unit tests locally to confirm they pass successfully.

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Jul 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Jul 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

Tencent Hy3 Reasoning selection is gone.

1 participant