-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
โจ feat: add v0 (Vercel) provider support #8235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@hezhijie0327 is attempting to deploy a commit to the LobeHub Community Team on Vercel. A member of the Team first needs to authorize it. |
Reviewer's GuideThis PR adds end-to-end support for the Vercel v0 provider by updating configuration schemas, environment variables, UI components, model catalogs, type definitions, and runtime integration to register and operate V0 alongside existing providers. Entity relationship diagram for Vercel v0 provider configuration and modelserDiagram
LLMConfig {
boolean ENABLED_V0
string V0_API_KEY
}
DockerEnv {
string V0_API_KEY
string V0_MODEL_LIST
}
UserKeyVaults {
OpenAICompatibleKeyVault v0
}
V0Provider {
string id
string name
string description
string url
string modelsUrl
}
v0ChatModels {
string id
string displayName
string description
int contextWindowTokens
int maxOutput
object abilities
object pricing
string type
}
V0Provider ||--o{ v0ChatModels : provides
LLMConfig ||--|| DockerEnv : mirrors
UserKeyVaults ||--|| V0Provider : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
๐ @hezhijie0327 Thank you for raising your pull request and contributing to our Community |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8235 +/- ##
==========================================
- Coverage 95.67% 87.88% -7.80%
==========================================
Files 14 839 +825
Lines 2522 62456 +59934
Branches 445 3936 +3491
==========================================
+ Hits 2413 54888 +52475
- Misses 109 7568 +7459
Flags with carried forward coverage won't be shown. Click here to find out more. โ View full report in Codecov by Sentry. ๐ New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
TestGru AssignmentSummary
Tip You can |
There was a problem hiding this 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 - here's some feedback:
- V0ProviderCard.chatModels is currently empty โ import and assign your v0ChatModels so the UI can display available models.
- Either hook V0_MODEL_LIST into your configuration/runtime for dynamic model selection or remove it if it's not used.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- V0ProviderCard.chatModels is currently empty โ import and assign your v0ChatModels so the UI can display available models.
- Either hook V0_MODEL_LIST into your configuration/runtime for dynamic model selection or remove it if it's not used.
## Individual Comments
### Comment 1
<location> `src/config/aiModels/v0.ts:14` </location>
<code_context>
+ description:
+ 'v0-1.5-lg ๆจกๅ้็จไบ้ซ็บงๆ่ๆๆจ็ไปปๅก',
+ displayName: 'v0-1.5-lg',
+ enabled: true,
+ id: 'v0-1.5-lg',
+ maxOutput: 32_000,
</code_context>
<issue_to_address>
Missing 'enabled' property in the third model.
Consider adding the 'enabled' property to the third model for consistency and to prevent issues in code that expects this property.
</issue_to_address>
Help me be more useful! Please click ๐ or ๐ on each comment and I'll use the feedback to improve your reviews.
description: | ||
'v0-1.5-lg ๆจกๅ้็จไบ้ซ็บงๆ่ๆๆจ็ไปปๅก', | ||
displayName: 'v0-1.5-lg', | ||
enabled: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Missing 'enabled' property in the third model.
Consider adding the 'enabled' property to the third model for consistency and to prevent issues in code that expects this property.
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
|
โค๏ธ Great PR @hezhijie0327 โค๏ธ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
## [Version 1.96.0](v1.95.0...v1.96.0) <sup>Released on **2025-06-20**</sup> #### โจ Features - **misc**: Add v0 (Vercel) provider support. #### ๐ Bug Fixes - **misc**: Fix inputTemplate behavior. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add v0 (Vercel) provider support, closes [#8235](#8235) ([5842a18](5842a18)) #### What's fixed * **misc**: Fix inputTemplate behavior, closes [#8204](#8204) ([61c2c3c](61c2c3c)) </details> <div align="right"> [](#readme-top) </div>
๐ This PR is included in version 1.96.0 ๐ The release is available on: Your semantic-release bot ๐ฆ๐ |
## [Version 1.95.0](v1.94.5...v1.95.0) <sup>Released on **2025-06-25**</sup> #### โจ Features - **misc**: Add Brave & Google PSE & Kagi as build-in Search Provider, add v0 (Vercel) provider support. #### ๐ Bug Fixes - **misc**: Fix `MiniMax-M1` reasoning tag missing, fix inputTemplate behavior, Google Gemini tools declarations, Remove unsupported parameters of Hunyuan. #### ๐ Styles - **openrouter**: Add stable versions of Gemini 2.5 models. - **misc**: Add `blockAds` & `stealth` params for Browserless, Optimized Gemini thinkingBudget configuration, update i18n, update i18n. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add Brave & Google PSE & Kagi as build-in Search Provider, closes [lobehub#8172](https://github.com/jaworldwideorg/OneJA-Bot/issues/8172) ([16ae521](16ae521)) * **misc**: Add v0 (Vercel) provider support, closes [lobehub#8235](https://github.com/jaworldwideorg/OneJA-Bot/issues/8235) ([5842a18](5842a18)) #### What's fixed * **misc**: Fix `MiniMax-M1` reasoning tag missing, closes [lobehub#8240](https://github.com/jaworldwideorg/OneJA-Bot/issues/8240) ([ea76c11](ea76c11)) * **misc**: Fix inputTemplate behavior, closes [lobehub#8204](https://github.com/jaworldwideorg/OneJA-Bot/issues/8204) ([61c2c3c](61c2c3c)) * **misc**: Google Gemini tools declarations, closes [lobehub#8256](https://github.com/jaworldwideorg/OneJA-Bot/issues/8256) ([08f5d73](08f5d73)) * **misc**: Remove unsupported parameters of Hunyuan, closes [lobehub#8247](https://github.com/jaworldwideorg/OneJA-Bot/issues/8247) ([826d724](826d724)) #### Styles * **openrouter**: Add stable versions of Gemini 2.5 models, closes [lobehub#8239](https://github.com/jaworldwideorg/OneJA-Bot/issues/8239) ([d34ecab](d34ecab)) * **misc**: Add `blockAds` & `stealth` params for Browserless, closes [lobehub#8255](https://github.com/jaworldwideorg/OneJA-Bot/issues/8255) ([2ff3efa](2ff3efa)) * **misc**: Optimized Gemini thinkingBudget configuration, closes [lobehub#8224](https://github.com/jaworldwideorg/OneJA-Bot/issues/8224) ([03625e8](03625e8)) * **misc**: Update i18n, closes [lobehub#8253](https://github.com/jaworldwideorg/OneJA-Bot/issues/8253) ([b86dc9b](b86dc9b)) * **misc**: Update i18n, closes [lobehub#8242](https://github.com/jaworldwideorg/OneJA-Bot/issues/8242) ([2d1babc](2d1babc)) </details> <div align="right"> [](#readme-top) </div>
* โจ feat: add v0 (Vercel) provider support * โป๏ธ refactor: rebrand to `v0` * ๐จ chore: update Dockerfile ENV * ๐จ chore: fix desc * ๐ style: support model fetch * ๐ style: fix reasoning tag * ๐ fix: fix build error * ๐ style: better branding
## [Version 1.96.0](lobehub/lobe-chat@v1.95.0...v1.96.0) <sup>Released on **2025-06-20**</sup> #### โจ Features - **misc**: Add v0 (Vercel) provider support. #### ๐ Bug Fixes - **misc**: Fix inputTemplate behavior. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add v0 (Vercel) provider support, closes [lobehub#8235](lobehub#8235) ([5842a18](lobehub@5842a18)) #### What's fixed * **misc**: Fix inputTemplate behavior, closes [lobehub#8204](lobehub#8204) ([61c2c3c](lobehub@61c2c3c)) </details> <div align="right"> [](#readme-top) </div>
๐ป ๅๆด็ฑปๅ | Change Type
๐ ๅๆด่ฏดๆ | Description of Change
v0 (Vercel)
ๆไพๅNote:
ๆ็ ง v0 ๆจกๅไป็ป้กต้ข๏ผๅบๅฑๆจกๅๅฏน็ งๅฆไธ๏ผ
v0-1.0-md
v0-1.5-md
v0-1.5-lg
Model Fetch:
๐ ่กฅๅ ไฟกๆฏ | Additional Information
discussion: #6157 (comment)
ref: https://vercel.com/blog/v0-composite-model-family
ref: https://vercel.com/docs/v0/api#models
ref: https://vercel.com/docs/v0/api#api-reference
ref: https://v0.dev/pricing
Summary by Sourcery
Add end-to-end support for the Vercel v0 API as an LLM provider by updating configuration schemas, Docker environments, UI components, model catalogs, type definitions, and runtime integration
New Features:
Enhancements:
Build:
Summary by Sourcery
Add end-to-end support for the Vercel v0 API as a new LLM provider
New Features:
Enhancements:
Build: