Skip to content

feat(go): Add Z.ai model entries to all_models.json Add missing Qwen commercial models and provider aliases - #15929

Merged
JinHai-CN merged 2 commits into
infiniflow:mainfrom
Harry-Hz-Zhang:your-new-branch
Jun 12, 2026
Merged

JinHai-CN merged 2 commits into
infiniflow:mainfrom
Harry-Hz-Zhang:your-new-branch

Conversation

@Harry-Hz-Zhang

@Harry-Hz-Zhang Harry-Hz-Zhang commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

  • Add Z.ai model definitions to conf/all_models.json.
  • Add missing Qwen / DashScope commercial API-only models, including:
    • Qwen3.7 / Qwen3.6 / Qwen3.5 Max, Plus, Flash families
    • Qwen Coder and Math commercial models
    • Qwen VL, OCR, Omni, ASR, TTS, translation, image generation, and image editing models
  • Add verified provider-specific aliases for supported Qwen models:
    • DashScope / Alibaba Cloud Model Studio model IDs
    • OpenRouter qwen/... aliases
    • Amazon Bedrock qwen.qwen3-* model IDs
  • Add thinking metadata for Qwen models that officially support thinking mode.
  • Remove aliases that exactly duplicate their own canonical name.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 11, 2026
@coderabbitai

coderabbitai Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The PR updates conf/all_models.json to expand the models catalog. It replaces the initial models array segment with extensive new zai-org/* model definitions covering embeddings, vision, chat, multimodal, OCR, video, TTS/ASR, and quantized variants. Later, it adjusts model boundaries by removing glm-4.5v and inserting minimax-m3 with thinking configuration before the bge-m3 entries.

Changes

Models Configuration Update

Layer / File(s) Summary
zai-org model catalog additions
conf/all_models.json
The initial segment of the models array is replaced with new zai-org/* model definitions. The additions include embeddings with dimension/dimensions metadata, rerank, image generation, multimodal/vision/chat models (multiple glm-* variants), OCR and video models, TTS/ASR components, quantized/"edge"/GGUF variants, optional thinking configuration, and provider-specific aliases.
Model catalog boundary adjustments
conf/all_models.json
Near the model list boundary, the glm-4.5v model definition is removed, and minimax-m3 with thinking flags is added immediately before the bge-m3 entries.

🎯 2 (Simple) | ⏱️ ~10 minutes

🐰 A catalog of models, shiny and new,
Zai-org additions with thinking too,
Embeddings, vision, and more in store,
A richer palette than before! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately captures the main change: adding Z.ai model entries and Qwen commercial models to all_models.json, which aligns with the substantial config file updates (+2005 lines) documented in the PR.
Description check ✅ Passed The pull request description addresses the required template sections with clear problem statement and appropriate type of change classification implied through feature additions.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Harry-Hz-Zhang Harry-Hz-Zhang added the ci Continue Integration label Jun 11, 2026
@Harry-Hz-Zhang
Harry-Hz-Zhang marked this pull request as draft June 11, 2026 02:39
@Harry-Hz-Zhang
Harry-Hz-Zhang marked this pull request as ready for review June 11, 2026 02:39

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@conf/all_models.json`:
- Around line 12-17: The conf contains unsupported keys ("dimensions",
"max_chars", "max_documents") that are dropped when unmarshalling into the Model
struct in internal/entity/models/model.go; either remove these keys from
conf/all_models.json or extend the Model schema and its consumers to include
fields for Dimensions, MaxChars, and MaxDocuments and wire them into
embedding/rerank logic (update any functions that rely on model dimensions or
token/char limits). Also add validation after unmarshalling to detect
unknown/unused keys (or assert parsed values) so configuration/contract
mismatches fail loudly rather than being silently ignored.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 89a1ea2e-87cb-4f36-8800-e19e01464a41

📥 Commits

Reviewing files that changed from the base of the PR and between 32559d2 and 56f3b74.

📒 Files selected for processing (1)
  • conf/all_models.json

Comment thread conf/all_models.json
Comment on lines +12 to +17
"dimensions": [
256,
512,
1024,
2048
],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Unsupported metadata keys are silently ignored by the Go model loader.

Line 12 (dimensions) and Lines 41-42 (max_chars, max_documents) are not part of the parsed Model struct used by internal/entity/models/model.go, so these values are dropped at unmarshal time. That creates a config/runtime contract gap for embedding/rerank behavior.

Please either (a) extend the Go model schema + consumers to support these keys, or (b) remove these keys from this catalog to avoid misleading configuration.

As per coding guidelines, cross-file and configuration contract breaks should be validated against actual parsed values, not just key presence.

Also applies to: 41-42

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@conf/all_models.json` around lines 12 - 17, The conf contains unsupported
keys ("dimensions", "max_chars", "max_documents") that are dropped when
unmarshalling into the Model struct in internal/entity/models/model.go; either
remove these keys from conf/all_models.json or extend the Model schema and its
consumers to include fields for Dimensions, MaxChars, and MaxDocuments and wire
them into embedding/rerank logic (update any functions that rely on model
dimensions or token/char limits). Also add validation after unmarshalling to
detect unknown/unused keys (or assert parsed values) so configuration/contract
mismatches fail loudly rather than being silently ignored.

@codecov

codecov Bot commented Jun 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (32559d2) to head (eeae9a6).
⚠️ Report is 34 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15929   +/-   ##
=======================================
  Coverage   93.16%   93.16%           
=======================================
  Files          10       10           
  Lines         717      717           
  Branches      118      118           
=======================================
  Hits          668      668           
  Misses         29       29           
  Partials       20       20           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Harry-Hz-Zhang Harry-Hz-Zhang changed the title feat(go): Add Z.ai model entries to all_models.json feat(go): Add Z.ai model entries to all_models.json Add missing Qwen commercial models and provider aliases Jun 12, 2026
@JinHai-CN
JinHai-CN merged commit 3072414 into infiniflow:main Jun 12, 2026
1 check passed
@Haruko386 Haruko386 mentioned this pull request Jun 15, 2026
60 tasks done
@coderabbitai coderabbitai Bot mentioned this pull request Jun 26, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants