-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
💄 style: add Imagen 4 GA models #8799
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
@samurai00 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 three GA-ready Imagen 4 image models (base, Ultra, Fast) with complete metadata and pricing, and disables the legacy preview variants. Class diagram for updated AIImageModelCard structureclassDiagram
class AIImageModelCard {
+string id
+string displayName
+string description
+string organization
+boolean enabled
+ModelParamsSchema parameters
+Pricing pricing
+string releasedAt
+string type
}
class Pricing {
+string name
+float rate
+string strategy
+string unit
}
class ModelParamsSchema {
... // unchanged
}
AIImageModelCard --> ModelParamsSchema : parameters
AIImageModelCard --> Pricing : pricing
%% New GA models
AIImageModelCard : imagen-4.0-generate-001
AIImageModelCard : imagen-4.0-ultra-generate-001
AIImageModelCard : imagen-4.0-fast-generate-001
%% Disabled preview models
AIImageModelCard : imagen-4.0-generate-preview-06-06 (disabled)
AIImageModelCard : imagen-4.0-ultra-generate-preview-06-06 (disabled)
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Thank you for raising your pull request and contributing to our Community |
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 there - I've reviewed your changes - here's some feedback:
- Consider abstracting the repeated Imagen 4 model blocks into a factory or shared base config to reduce boilerplate and the chance of inconsistencies.
- Verify the displayName formatting across GA and preview variants (e.g. "Imagen 4 Ultra" vs "Imagen4 Ultra") to ensure naming consistency.
- You may want to reorder the array so enabled GA models are grouped before the disabled preview entries for improved readability.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider abstracting the repeated Imagen 4 model blocks into a factory or shared base config to reduce boilerplate and the chance of inconsistencies.
- Verify the displayName formatting across GA and preview variants (e.g. "Imagen 4 Ultra" vs "Imagen4 Ultra") to ensure naming consistency.
- You may want to reorder the array so enabled GA models are grouped before the disabled preview entries for improved readability.
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8799 +/- ##
===========================================
+ Coverage 85.58% 96.26% +10.68%
===========================================
Files 935 17 -918
Lines 72792 2917 -69875
Branches 6577 515 -6062
===========================================
- Hits 62296 2808 -59488
+ Misses 10496 109 -10387
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:
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
❤️ Great PR @samurai00 ❤️ 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.112.1](v1.112.0...v1.112.1) <sup>Released on **2025-08-16**</sup> #### 💄 Styles - **misc**: Add Imagen 4 GA models, style improve auth sign in box loading. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Add Imagen 4 GA models, closes [#8799](#8799) ([2e9ad20](2e9ad20)) * **misc**: Style improve auth sign in box loading, closes [#8805](#8805) ([62f5a1b](62f5a1b)) </details> <div align="right"> [](#readme-top) </div>
🎉 This PR is included in version 1.112.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [Version 1.113.0](v1.112.0...v1.113.0) <sup>Released on **2025-08-18**</sup> #### ♻ Code Refactoring - **misc**: Refactor const folder to a new package, refactor prompts folder to the `@lobechat/prompts` pacakge, 重构ArgsInput组件. #### ✨ Features - **provider**: Add BFL provider support for image generation. #### 🐛 Bug Fixes - **db**: Desktop local db can't vectorization. - **misc**: Improve mcp tracing with user config. #### 💄 Styles - **misc**: Add Imagen 4 GA models, style improve auth sign in box loading. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor const folder to a new package, closes [lobehub#8756](https://github.com/jaworldwideorg/OneJA-Bot/issues/8756) ([30a4734](30a4734)) * **misc**: Refactor prompts folder to the `@lobechat/prompts` pacakge, closes [lobehub#8810](https://github.com/jaworldwideorg/OneJA-Bot/issues/8810) ([d82e7bb](d82e7bb)) * **misc**: 重构 ArgsInput 组件, closes [lobehub#8765](https://github.com/jaworldwideorg/OneJA-Bot/issues/8765) ([0905559](0905559)) #### What's improved * **provider**: Add BFL provider support for image generation, closes [lobehub#8806](https://github.com/jaworldwideorg/OneJA-Bot/issues/8806) ([519e03e](519e03e)) #### What's fixed * **db**: Desktop local db can't vectorization, closes [lobehub#8830](https://github.com/jaworldwideorg/OneJA-Bot/issues/8830) ([a00fd9d](a00fd9d)) * **misc**: Improve mcp tracing with user config, closes [lobehub#8827](https://github.com/jaworldwideorg/OneJA-Bot/issues/8827) ([5cab2ee](5cab2ee)) #### Styles * **misc**: Add Imagen 4 GA models, closes [lobehub#8799](https://github.com/jaworldwideorg/OneJA-Bot/issues/8799) ([2e9ad20](2e9ad20)) * **misc**: Style improve auth sign in box loading, closes [lobehub#8805](https://github.com/jaworldwideorg/OneJA-Bot/issues/8805) ([62f5a1b](62f5a1b)) </details> <div align="right"> [](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
📝 补充信息 | Additional Information
Summary by Sourcery
Add and configure Imagen 4 GA image models while deprecating preview versions
New Features:
Enhancements: