Skip to content

fix(model-core): add Qwen heuristic variants#5708

Open
Hungdoan565 wants to merge 1 commit into
code-yeongyu:devfrom
Hungdoan565:codex/fix-model-core-qwen-heuristic-20260628
Open

fix(model-core): add Qwen heuristic variants#5708
Hungdoan565 wants to merge 1 commit into
code-yeongyu:devfrom
Hungdoan565:codex/fix-model-core-qwen-heuristic-20260628

Conversation

@Hungdoan565

@Hungdoan565 Hungdoan565 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary:

  • Completes the existing Qwen heuristic family entry by adding fallback variants.
  • Makes custom/local Qwen model IDs resolve as heuristic-backed instead of variant-unknown.
  • Keeps provider-declared Qwen variants such as xhigh/max/off taking precedence over heuristic fallback.

Verification:

  • bun test packages\model-core\src
  • bun run typecheck (from packages\model-core)
  • git diff --check
  • git diff --cached --check

QA: not run; pure Core model capability logic only, no OpenCode/Codex adapter wiring changed.


Summary by cubic

Add Qwen heuristic variants and enable heuristic fallback for custom/local Qwen model IDs, preventing variant-unknown resolution. Provider-declared Qwen variants still override the fallback.

  • Bug Fixes
    • Added ["low", "medium", "high"] variants to the Qwen family in packages/model-core.
    • Heuristic-backed resolution now applies to custom Qwen IDs; provider variants (e.g., xhigh/max/off) take precedence.
    • Expanded tests in model-capabilities.test.ts and model-settings-compatibility.test.ts to cover both behaviors.

Written for commit 3ca30f8. Summary will update on new commits.

Review in cubic

@github-actions github-actions Bot added the model-core Changes under packages/model-core label Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

model-core Changes under packages/model-core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant