Skip to content

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Jul 28, 2025

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | Description of Change

  1. 增加对 Qwen wan2.2 系列 T2I 模型图标的支持
  2. 适配 MiniMax image-01 系列 T2I 模型图标的支持
  3. 适配 Wenxin irag 系列 T2I 模型图标的支持

📝 补充信息 | Additional Information

Summary by Sourcery

Add support for additional T2I model icons

New Features:

  • Add regex keyword 'wan\d/' to Qwen icon mapping for wan2.2 series
  • Add regex keyword '^image-' to Minimax icon mapping for image-01 series
  • Add keyword 'irag' to Wenxin icon mapping for irag series

Copy link
Contributor

sourcery-ai bot commented Jul 28, 2025

Reviewer's Guide

Updated modelMappings in modelConfig.ts to include new regex patterns and keywords for supporting Qwen wan2.2, Minimax image-01, and Wenxin irag T2I model icons

Class diagram for updated modelMappings in modelConfig.ts

classDiagram
    class ModelMapping {
        Icon
        keywords
    }
    ModelMapping <|-- Qwen
    ModelMapping <|-- Minimax
    ModelMapping <|-- Wenxin
    Qwen : Icon = Qwen
    Qwen : keywords = ["qwen", "qwq", "qvq", "wanx", "wan\\d/"]
    Minimax : Icon = Minimax
    Minimax : keywords = ["minimax", "abab", "^image-"]
    Wenxin : Icon = Wenxin
    Wenxin : keywords = ["ernie", "irag"]
Loading

File-Level Changes

Change Details Files
Add new regex patterns and keywords for T2I model icons
  • Extended Qwen keywords with regex 'wan\d/' for wan2.2 series
  • Added regex '^image-' to Minimax keywords for image-01 series
  • Included 'irag' in Wenxin keywords for irag series
src/features/modelConfig.ts

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@lobehubbot
Copy link
Member

👍 @hezhijie0327


Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @hezhijie0327 - I've reviewed your changes and they look great!

Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments

### Comment 1
<location> `src/features/modelConfig.ts:147` </location>
<code_context>
   { Icon: Baichuan, keywords: ['baichuan'] },
   { Icon: Rwkv, keywords: ['rwkv', '/eagle-'] },
-  { Icon: Wenxin, keywords: ['ernie'] },
+  { Icon: Wenxin, keywords: ['ernie', 'irag'] },
   { Icon: Jina, keywords: ['^jina', '/jina'] },
   { Icon: Doubao, keywords: ['^ep-', 'doubao-'] },
</code_context>

<issue_to_address>
Check for typos in new Wenxin keyword 'irag'.

Please verify that 'irag' is correct and not a typo.
</issue_to_address>

<suggested_fix>
<<<<<<< SEARCH
  { Icon: Wenxin, keywords: ['ernie', 'irag'] },
=======
  { Icon: Wenxin, keywords: ['ernie'] },
>>>>>>> REPLACE

</suggested_fix>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link

codecov bot commented Jul 28, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 1.65%. Comparing base (e39bdc2) to head (bfc88e2).
⚠️ Report is 575 commits behind head on master.

Files with missing lines Patch % Lines
src/features/modelConfig.ts 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #147      +/-   ##
=========================================
+ Coverage    0.00%   1.65%   +1.65%     
=========================================
  Files         520    3159    +2639     
  Lines       13448   67410   +53962     
  Branches      520    3159    +2639     
=========================================
+ Hits            0    1113    +1113     
- Misses      12928   64251   +51323     
- Partials      520    2046    +1526     

☔ View full report in Codecov by Sentry.
📢 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.

Copy link

pkg-pr-new bot commented Jul 28, 2025

Open in StackBlitz

npm i https://pkg.pr.new/lobehub/lobe-icons/@lobehub/icons@147

commit: bfc88e2

@lobehubbot
Copy link
Member

❤️ Great PR @hezhijie0327 ❤️


The growth of project is inseparable from user feedback and contribution, thanks for your contribution!
项目的成长离不开用户反馈和贡献,感谢您的贡献!

github-actions bot pushed a commit that referenced this pull request Jul 29, 2025
### [Version&nbsp;2.18.5](v2.18.4...v2.18.5)
<sup>Released on **2025-07-29**</sup>

#### 💄 Styles

- **misc**: Support some T2I model icons.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Support some T2I model icons, closes [#147](#147) ([4956a2b](4956a2b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 2.18.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.0.3 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.57.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Jul 29, 2025
## [Version&nbsp;1.58.0](https://github.com/lobehub/lobe-icons/compare/@lobehub/icons-static-svg@1.57.0...@lobehub/icons-static-svg@1.58.0)
<sup>Released on **2025-07-29**</sup>

#### ✨ Features

- **auto**: Auto build static icons.
- **misc**: Add Kolors, make lobe icons support react native platform, support 'wanx' model icon.

#### 🐛 Bug Fixes

- **RN**: Model Tag component.
- **misc**: Add missing CogView model config, Build script, Ci build error.

#### 💄 Styles

- **rn**: ModelConfig update, Update peer deps & docs, Update react-native deps & docs.
- **misc**: Fix webp, support some T2I model icons, Trigger rn package release, Update New Google AI Studio icon (resolved, upgrade react-layout-kit.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **auto**: Auto build static icons ([91c05dd](91c05dd))
* **misc**: Add Kolors ([41b7d1c](41b7d1c))
* **misc**: Make lobe icons support react native platform, closes [#141](#141) ([8fcd922](8fcd922))
* **misc**: Support 'wanx' model icon ([4db15a8](4db15a8))

#### What's fixed

* **RN**: Model Tag component ([8c88ecf](8c88ecf))
* **misc**: Add missing CogView model config ([964fd07](964fd07))
* **misc**: Build script, closes [#145](#145) ([fc8f06c](fc8f06c))
* **misc**: Ci build error, closes [#146](#146) ([0c1c04d](0c1c04d))

#### Styles

* **rn**: ModelConfig update ([74b34e8](74b34e8))
* **rn**: Update peer deps & docs ([d479f7d](d479f7d))
* **rn**: Update react-native deps & docs ([553aad5](553aad5))
* **misc**: Fix webp ([e9ad8b2](e9ad8b2))
* **misc**: Support some T2I model icons, closes [#147](#147) ([4956a2b](4956a2b))
* **misc**: Trigger rn package release ([34e076b](34e076b))
* **misc**: Update New Google AI Studio icon (resolved, closes [#143](#143) ([24fb935](24fb935))
* **misc**: Upgrade react-layout-kit, closes [#144](#144) ([5d11776](5d11776))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.58.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Jul 29, 2025
## [Version&nbsp;1.57.0](https://github.com/lobehub/lobe-icons/compare/@lobehub/icons-static-webp@1.56.1...@lobehub/icons-static-webp@1.57.0)
<sup>Released on **2025-07-29**</sup>

#### ✨ Features

- **auto**: Auto build static icons.
- **misc**: Add Kolors, make lobe icons support react native platform, support 'wanx' model icon.

#### 🐛 Bug Fixes

- **RN**: Model Tag component.
- **misc**: Add missing CogView model config, Build script, Ci build error.

#### 💄 Styles

- **rn**: ModelConfig update, Update peer deps & docs, Update react-native deps & docs.
- **misc**: Support some T2I model icons, Trigger rn package release, Update New Google AI Studio icon (resolved, upgrade react-layout-kit.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **auto**: Auto build static icons ([91c05dd](91c05dd))
* **misc**: Add Kolors ([41b7d1c](41b7d1c))
* **misc**: Make lobe icons support react native platform, closes [#141](#141) ([8fcd922](8fcd922))
* **misc**: Support 'wanx' model icon ([4db15a8](4db15a8))

#### What's fixed

* **RN**: Model Tag component ([8c88ecf](8c88ecf))
* **misc**: Add missing CogView model config ([964fd07](964fd07))
* **misc**: Build script, closes [#145](#145) ([fc8f06c](fc8f06c))
* **misc**: Ci build error, closes [#146](#146) ([0c1c04d](0c1c04d))

#### Styles

* **rn**: ModelConfig update ([74b34e8](74b34e8))
* **rn**: Update peer deps & docs ([d479f7d](d479f7d))
* **rn**: Update react-native deps & docs ([553aad5](553aad5))
* **misc**: Support some T2I model icons, closes [#147](#147) ([4956a2b](4956a2b))
* **misc**: Trigger rn package release ([34e076b](34e076b))
* **misc**: Update New Google AI Studio icon (resolved, closes [#143](#143) ([24fb935](24fb935))
* **misc**: Upgrade react-layout-kit, closes [#144](#144) ([5d11776](5d11776))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.57.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@hezhijie0327 hezhijie0327 deleted the t2i branch July 29, 2025 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants