Skip to content

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Jun 20, 2025

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

  1. 增加对 v0 (Vercel) 供应商及模型图标的支持 ✨ feat: add v0 (Vercel) provider support lobe-chat#8235

📝 补充信息 | Additional Information

Summary by Sourcery

Add support for the new v0 (Vercel) provider and model icons

Enhancements:

  • Add v0 entry to the provider enum
  • Include v0 in the model icon mappings
  • Configure combined Vercel+v0 icon in the provider mappings

Copy link
Contributor

sourcery-ai bot commented Jun 20, 2025

Reviewer's Guide

Adds support for the v0 (Vercel) provider and its model icons by extending the provider enum, introducing a combined Vercel & V0 icon entry in provider mappings, and adding a V0 model icon mapping.

ER diagram for provider and model icon mappings with V0 support

erDiagram
    MODEL_PROVIDER ||--o{ PROVIDER_MAPPING : maps
    MODEL_PROVIDER ||--o{ MODEL_MAPPING : maps
    PROVIDER_MAPPING {
      string Icon
      string Combine
      float combineMultiple
      string[] keywords
    }
    MODEL_MAPPING {
      string Icon
      string[] keywords
    }
    MODEL_PROVIDER {
      string name
    }
Loading

Class diagram for updated ModelProvider enum and icon mappings

classDiagram
    class ModelProvider {
        +TencentCloud
        +TogetherAI
        +Upstage
        +V0
        +VLLM
        +VertexAI
        +Volcengine
        ...
    }
    class ProviderMapping {
        +Icon
        +Combine
        +combineMultiple
        +keywords
    }
    class ModelMapping {
        +Icon
        +keywords
    }
    ModelProvider <.. ProviderMapping : keywords
    ModelProvider <.. ModelMapping : keywords
    ProviderMapping o-- Vercel : Icon
    ProviderMapping o-- V0 : Combine, Icon
    ModelMapping o-- V0 : Icon
Loading

File-Level Changes

Change Details Files
Extend ModelProvider enum to include V0
  • Add V0 entry to ModelProvider enum
src/features/providerEnum.ts
Introduce combined Vercel & V0 icon in provider mappings
  • Define a Combine component merging Vercel and V0 icons with adjusted sizes
  • Add new provider mapping entry with combineMultiple and keywords for ModelProvider.V0
src/features/providerConfig.tsx
Add V0 icon mapping to model configurations
  • Insert V0 icon mapping keyed by '^v0-' into modelMappings
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

codecov bot commented Jun 20, 2025

Codecov Report

Attention: Patch coverage is 0% with 17 lines in your changes missing coverage. Please review.

Project coverage is 3.12%. Comparing base (e39bdc2) to head (d162b4c).
Report is 492 commits behind head on master.

Files with missing lines Patch % Lines
src/features/providerConfig.tsx 0.00% 14 Missing ⚠️
src/features/modelConfig.ts 0.00% 2 Missing ⚠️
src/features/providerEnum.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #124      +/-   ##
=========================================
+ Coverage    0.00%   3.12%   +3.12%     
=========================================
  Files         520    1514     +994     
  Lines       13448   33577   +20129     
  Branches      520    1514     +994     
=========================================
+ Hits            0    1048    +1048     
- Misses      12928   32063   +19135     
+ Partials      520     466      -54     

☔ 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 Jun 20, 2025

Open in StackBlitz

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

commit: d162b4c

@hezhijie0327 hezhijie0327 marked this pull request as ready for review June 20, 2025 09:17
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!


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.

@canisminor1990 canisminor1990 merged commit 019f7b6 into lobehub:master Jun 20, 2025
7 checks passed
@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 Jun 20, 2025
## [Version&nbsp;2.5.0](v2.4.0...v2.5.0)
<sup>Released on **2025-06-20**</sup>

#### ✨ Features

- **auto**: Auto build static icons.

#### 💄 Styles

- **misc**: Support v0 (Vercel) provider & model icons.

<br/>

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

#### What's improved

* **auto**: Auto build static icons ([49adad2](49adad2))

#### Styles

* **misc**: Support v0 (Vercel) provider & model icons, closes [#124](#124) ([019f7b6](019f7b6))

</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.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@hezhijie0327 hezhijie0327 deleted the vercel branch June 20, 2025 22:03
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.48.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 Jun 23, 2025
## [Version&nbsp;1.49.0](https://github.com/lobehub/lobe-icons/compare/@lobehub/[email protected]...@lobehub/[email protected])
<sup>Released on **2025-06-23**</sup>

#### ✨ Features

- **auto**: Auto build static icons.

#### 💄 Styles

- **misc**: Support v0 (Vercel) provider & model icons, Update Dify and ComfyUI new Brand Logo.

<br/>

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

#### What's improved

* **auto**: Auto build static icons ([a6bc41c](a6bc41c))

#### Styles

* **misc**: Support v0 (Vercel) provider & model icons, closes [#124](#124) ([019f7b6](019f7b6))
* **misc**: Update Dify and ComfyUI new Brand Logo ([a8e6d46](a8e6d46))

</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.49.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 Jun 23, 2025
## [Version&nbsp;1.48.0](https://github.com/lobehub/lobe-icons/compare/@lobehub/[email protected]...@lobehub/[email protected])
<sup>Released on **2025-06-23**</sup>

#### ✨ Features

- **auto**: Auto build static icons.

#### 💄 Styles

- **misc**: Support v0 (Vercel) provider & model icons, Update Dify and ComfyUI new Brand Logo.

<br/>

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

#### What's improved

* **auto**: Auto build static icons ([a6bc41c](a6bc41c))

#### Styles

* **misc**: Support v0 (Vercel) provider & model icons, closes [#124](#124) ([019f7b6](019f7b6))
* **misc**: Update Dify and ComfyUI new Brand Logo ([a8e6d46](a8e6d46))

</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.48.0 🎉

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

Your semantic-release bot 📦🚀

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