-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
๐ fix: chat model list should not show image model #8448
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
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
|
This comment was marked as spam.
This comment was marked as spam.
๐ @tjx666 Thank you for raising your pull request and contributing to our Community |
There is too much information in the pull request to test. |
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 @tjx666 - 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/libs/model-runtime/utils/openaiCompatibleFactory/index.ts:409` </location>
<code_context>
- throw new Error('Invalid image response: first data item is null or undefined');
- }
-
- if (!imageData.b64_json) {
- log('Invalid image response: missing b64_json field');
- throw new Error('Invalid image response: missing b64_json field');
</code_context>
<issue_to_address>
The code assumes b64_json is always present, which may not be true for all OpenAI image responses.
To improve robustness, handle cases where the response may include alternative formats like URLs or different encodings, not just b64_json.
</issue_to_address>
Help me be more useful! Please click ๐ or ๐ on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8448 +/- ##
========================================
Coverage 85.49% 85.49%
========================================
Files 903 903
Lines 68206 68225 +19
Branches 4400 4637 +237
========================================
+ Hits 58313 58332 +19
Misses 9893 9893
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:
|
โฆng and updating debug context
โฆebase for consistency" This reverts commit 8a84d64.
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.
Bug: Image URL Mapping and Edit Logic Errors
The createImage
function contains two related bugs:
- Parameter mapping for image generation (
imageUrls
andimageUrl
) both map to the sameimage
key, leading to silent data loss if both are provided in the input. - The
isImageEdit
check incorrectly relies onuserInput.image
being an array. When a singleimageUrl
is provided (which maps to a string), the logic fails, causing image edit operations to be misidentified as new image generations.
src/libs/model-runtime/utils/openaiCompatibleFactory/index.ts#L329-L341
lobe-chat/src/libs/model-runtime/utils/openaiCompatibleFactory/index.ts
Lines 329 to 341 in ff930ce
// ๆ ๅฐๅๆฐๅ็งฐ๏ผๅฐ imageUrls ๆ ๅฐไธบ image | |
const paramsMap = new Map<RuntimeImageGenParamsValue, string>([ | |
['imageUrls', 'image'], | |
['imageUrl', 'image'], | |
]); | |
const userInput: Record<string, any> = Object.fromEntries( | |
Object.entries(params).map(([key, value]) => [ | |
paramsMap.get(key as RuntimeImageGenParamsValue) ?? key, | |
value, | |
]), | |
); | |
const isImageEdit = Array.isArray(userInput.image) && userInput.image.length > 0; |
Was this report helpful? Give feedback by reacting with ๐ or ๐
โค๏ธ Great PR @tjx666 โค๏ธ 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.99.3](v1.99.2...v1.99.3) <sup>Released on **2025-07-16**</sup> #### ๐ Bug Fixes - **misc**: Chat model list should not show image model. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Chat model list should not show image model, closes [#8448](#8448) ([2bb1506](2bb1506)) </details> <div align="right"> [](#readme-top) </div>
๐ This PR is included in version 1.99.3 ๐ The release is available on: Your semantic-release bot ๐ฆ๐ |
### [Version 1.98.1](v1.98.0...v1.98.1) <sup>Released on **2025-07-16**</sup> #### ๐ Bug Fixes - **misc**: Chat model list should not show image model, some ai image generation feedback issues. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Chat model list should not show image model, closes [lobehub#8448](https://github.com/jaworldwideorg/OneJA-Bot/issues/8448) ([2bb1506](2bb1506)) * **misc**: Some ai image generation feedback issues, closes [lobehub#8440](https://github.com/jaworldwideorg/OneJA-Bot/issues/8440) ([bc41329](bc41329)) </details> <div align="right"> [](#readme-top) </div>
### [Version 1.99.3](lobehub/lobe-chat@v1.99.2...v1.99.3) <sup>Released on **2025-07-16**</sup> #### ๐ Bug Fixes - **misc**: Chat model list should not show image model. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Chat model list should not show image model, closes [lobehub#8448](lobehub#8448) ([2bb1506](lobehub@2bb1506)) </details> <div align="right"> [](#readme-top) </div>
* ๐ style: Support new Doubao thinking models (lobehub#8174) * ๐ style: update i18n (lobehub#8400) * ๐ chore(release): v1.97.13 [skip ci] ### [Version 1.97.13](lobehub/lobe-chat@v1.97.12...v1.97.13) <sup>Released on **2025-07-12**</sup> #### ๐ Styles - **misc**: Support new Doubao thinking models, update i18n. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Support new Doubao thinking models, closes [lobehub#8174](lobehub#8174) ([637d75c](lobehub@637d75c)) * **misc**: Update i18n, closes [lobehub#8400](lobehub#8400) ([790eeb8](lobehub@790eeb8)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: Revert "๐ style: Open new topic by tap Just Chat again" (lobehub#8402) This reverts commit 7e2f4ce. * ๐ style: Add Kimi K2 model (lobehub#8401) * ๐จ chore: fix lint (lobehub#8407) * ๐ chore(release): v1.97.14 [skip ci] ### [Version 1.97.14](lobehub/lobe-chat@v1.97.13...v1.97.14) <sup>Released on **2025-07-12**</sup> #### ๐ Bug Fixes - **misc**: Revert "๐ style: Open new topic by tap Just Chat again". #### ๐ Styles - **misc**: Add Kimi K2 model. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Revert "๐ style: Open new topic by tap Just Chat again", closes [lobehub#8402](lobehub#8402) ([55462b9](lobehub@55462b9)) #### Styles * **misc**: Add Kimi K2 model, closes [lobehub#8401](lobehub#8401) ([4cb1a18](lobehub@4cb1a18)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: add vision support to Grok 4 (lobehub#8386) * โจ feat: add vision support to Grok 4 * โจ feat: disable Grok 2 Vision 1212 model * ๐ chore(release): v1.97.15 [skip ci] ### [Version 1.97.15](lobehub/lobe-chat@v1.97.14...v1.97.15) <sup>Released on **2025-07-12**</sup> #### ๐ Bug Fixes - **misc**: Add vision support to Grok 4. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Add vision support to Grok 4, closes [lobehub#8386](lobehub#8386) ([8512f5a](lobehub@8512f5a)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ style: update i18n (lobehub#8410) Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com> * ๐ chore(release): v1.97.16 [skip ci] ### [Version 1.97.16](lobehub/lobe-chat@v1.97.15...v1.97.16) <sup>Released on **2025-07-13**</sup> #### ๐ Styles - **misc**: Update i18n. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Update i18n, closes [lobehub#8410](lobehub#8410) ([2515875](lobehub@2515875)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ style: Support Hunyuan A13B thinking model (lobehub#8278) * Update novita.ts * feat: ๆทปๅ ๆฐ็ๆททๅ ๆจกๅๅนถๆดๆฐๅค็่ด่ฝฝ้ป่พ * fix * free Gemini 2.5 Pro * ๆทปๅ ERNIE 4.5 300B A47B ๆจกๅๅฐ siliconcloudChatModels * novita * ๆทปๅ GLM-4.1V-Thinking ็ณปๅๆจกๅๅฐ zhipuChatModels๏ผๅนถๆดๆฐ็ฐๆๆจกๅ็ไธไธๆ็ชๅฃๅๆๅคง่พๅบ่ฎพ็ฝฎ * ๆดๆฐ zhipuChatModels๏ผๆทปๅ ่ง่ง่ฝๅๅนถๅฏ็จๆฐๆจกๅ๏ผไฟฎๆน ZhiPu ็ๆฃๆฅๆจกๅ ID * ็งป้คๅคไธช siliconcloud ๅบๅผๆจกๅ * fix * ็งป้ค groq Qwen QwQ 32B ๆจกๅ้ ็ฝฎ * ๆดๆฐ siliconcloud ๆจกๅ * ๆดๆฐ novita/qwen ๆจกๅ * update siliconcloud model * add Pangu Pro MoE 72B A16B * Update novita.ts * Update novita.ts * update novita --------- Co-authored-by: Arvin Xu <arvinx@foxmail.com> * ๐ chore(release): v1.97.17 [skip ci] ### [Version 1.97.17](lobehub/lobe-chat@v1.97.16...v1.97.17) <sup>Released on **2025-07-13**</sup> #### ๐ Styles - **misc**: Support Hunyuan A13B thinking model. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Support Hunyuan A13B thinking model, closes [lobehub#8278](lobehub#8278) ([09ca978](lobehub@09ca978)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * โจ feat: add network proxy for desktop (lobehub#7848) * add network proxy * update network proxy * refactor network proxy * support network proxy * fix types * fix lint * fix lint * ๐จ chore: fix settings in desktop (lobehub#8414) * Update dependency lucide-react to ^0.525.0 (lobehub#8413) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update dependency @anthropic-ai/sdk to ^0.56.0 (lobehub#8412) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * ๐ chore(release): v1.98.0 [skip ci] ## [Version 1.98.0](lobehub/lobe-chat@v1.97.17...v1.98.0) <sup>Released on **2025-07-13**</sup> #### โจ Features - **misc**: Add network proxy for desktop. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add network proxy for desktop, closes [lobehub#7848](lobehub#7848) ([46d2509](lobehub@46d2509)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ style: fix discover translation (lobehub#8423) * ๐ chore(release): v1.98.1 [skip ci] ### [Version 1.98.1](lobehub/lobe-chat@v1.98.0...v1.98.1) <sup>Released on **2025-07-14**</sup> #### ๐ Styles - **misc**: Fix discover translation. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Fix discover translation, closes [lobehub#8423](lobehub#8423) ([15ae35c](lobehub@15ae35c)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ style: update i18n (lobehub#8422) Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com> * ๐ chore(release): v1.98.2 [skip ci] ### [Version 1.98.2](lobehub/lobe-chat@v1.98.1...v1.98.2) <sup>Released on **2025-07-14**</sup> #### ๐ Styles - **misc**: Update i18n. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Update i18n, closes [lobehub#8422](lobehub#8422) ([5b89ec8](lobehub@5b89ec8)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * โจ feat: support AI Image (lobehub#8312) Co-authored-by: canisminor1990 <i@canisminor.cc> * โจ feat(plugin): support Streamable HTTP MCP Server Auth (lobehub#8425) * โจ feat: support http streamable auth and headers * โจ feat: support http streamable auth and headers * improve * improve token * add i18n * update i18n * ๐ chore(release): v1.99.0 [skip ci] ## [Version 1.99.0](lobehub/lobe-chat@v1.98.2...v1.99.0) <sup>Released on **2025-07-14**</sup> #### โจ Features - **plugin**: Support Streamable HTTP MCP Server Auth. - **misc**: support AI Image. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **plugin**: Support Streamable HTTP MCP Server Auth, closes [lobehub#8425](lobehub#8425) ([853a09a](lobehub@853a09a)) * **misc**: support AI Image, closes [lobehub#8312](lobehub#8312) ([095de57](lobehub@095de57)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: some ai image bugs (lobehub#8432) * โก๏ธ perf: improve memory usage in desktop (lobehub#8431) * improve usage of memory * try to improve * ๐ chore(release): v1.99.1 [skip ci] ### [Version 1.99.1](lobehub/lobe-chat@v1.99.0...v1.99.1) <sup>Released on **2025-07-15**</sup> <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: some ai image generation feedback issues (lobehub#8440) * ๐ chore(release): v1.99.2 [skip ci] ### [Version 1.99.2](lobehub/lobe-chat@v1.99.1...v1.99.2) <sup>Released on **2025-07-15**</sup> #### ๐ Bug Fixes - **misc**: Some ai image generation feedback issues. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Some ai image generation feedback issues, closes [lobehub#8440](lobehub#8440) ([bc41329](lobehub@bc41329)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * โ๏ธ docs: replace all 'Language Model' with 'Al Service Provider' in provider docs (lobehub#8444) * ๐ fix: chat model list should not show image model (lobehub#8448) * ๐ chore(release): v1.99.3 [skip ci] ### [Version 1.99.3](lobehub/lobe-chat@v1.99.2...v1.99.3) <sup>Released on **2025-07-16**</sup> #### ๐ Bug Fixes - **misc**: Chat model list should not show image model. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Chat model list should not show image model, closes [lobehub#8448](lobehub#8448) ([2bb1506](lobehub@2bb1506)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: fix apikey issue on server log (lobehub#8457) * ๐ chore(release): v1.99.4 [skip ci] ### [Version 1.99.4](lobehub/lobe-chat@v1.99.3...v1.99.4) <sup>Released on **2025-07-16**</sup> #### ๐ Bug Fixes - **misc**: Fix apikey issue on server log. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix apikey issue on server log, closes [lobehub#8457](lobehub#8457) ([43be2d1](lobehub@43be2d1)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: fix page error when url is not defined in web search plugin (lobehub#8441) Co-authored-by: Arvin Xu <arvinx@foxmail.com> * ๐ chore(release): v1.99.5 [skip ci] ### [Version 1.99.5](lobehub/lobe-chat@v1.99.4...v1.99.5) <sup>Released on **2025-07-16**</sup> #### ๐ Bug Fixes - **misc**: Fix page error when url is not defined in web search plugin. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix page error when url is not defined in web search plugin, closes [lobehub#8441](lobehub#8441) ([a55b65b](lobehub@a55b65b)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: desktop local db can't upload image (lobehub#8459) * ๐ chore(release): v1.99.6 [skip ci] ### [Version 1.99.6](lobehub/lobe-chat@v1.99.5...v1.99.6) <sup>Released on **2025-07-16**</sup> #### ๐ Bug Fixes - **misc**: Desktop local db can't upload image. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Desktop local db can't upload image, closes [lobehub#8459](lobehub#8459) ([25bfc80](lobehub@25bfc80)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * โจ feat: refactor desktop oauth and use JWTs token to support remote chat (lobehub#8446) * refactor the oauth * refactor the oauth * refactor the oauth * improve oauth status * fix desktop auth * fix tests * improve clean handoff * try to fix handoff public issue * fix route protection * refactor anim * refactor * update to access token to jwt * update to access token to jwt * improve config * refactor for JWKs token * fix auto refresh issue * โจ feat: support webapi proxy * wip: ๅฎๆๆฐๆตๅผๆฅๅฃ * wip: ่ท้ๆตๅผๆกๆถ * fix webhooks * fix network proxy * try to fix workflow * fix proxy in remote sync * fix tests * fix tests * fix oauth bypass route * fix webapi proxy * ๐จ chore: improve code (lobehub#8469) * ๐ chore(release): v1.100.0 [skip ci] ## [Version 1.100.0](lobehub/lobe-chat@v1.99.6...v1.100.0) <sup>Released on **2025-07-17**</sup> #### โจ Features - **misc**: Refactor desktop oauth and use JWTs token to support remote chat. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Refactor desktop oauth and use JWTs token to support remote chat, closes [lobehub#8446](lobehub#8446) ([054ca5f](lobehub@054ca5f)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: use server env config image models (lobehub#8478) * docs: update fal provider invalid image links * docs: add FAL model provider environment variables documentation * ๐ fix: update model type assignment in parseModels.ts to use dynamic lookup * ๐ docs: add FAQ for resolving AI image generation timeout issues on Vercel * โจ feat: implement getModelPropertyWithFallback utility for dynamic model property retrieval * ๐ docs: expand testing guide with best practices for mock data strategies, error handling, and module pollution prevention * ๐ fix: update model type in LobeOpenAICompatibleFactory tests to 'chat' * ๐ chore(release): v1.100.1 [skip ci] ### [Version 1.100.1](lobehub/lobe-chat@v1.100.0...v1.100.1) <sup>Released on **2025-07-17**</sup> #### ๐ Bug Fixes - **misc**: Use server env config image models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Use server env config image models, closes [lobehub#8478](lobehub#8478) ([768ee2b](lobehub@768ee2b)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: fix webapi proxy with clerk (lobehub#8479) * fix webapi proxy with clerk * Update jwt.ts * ๐ chore(release): v1.100.2 [skip ci] ### [Version 1.100.2](lobehub/lobe-chat@v1.100.1...v1.100.2) <sup>Released on **2025-07-18**</sup> #### ๐ Bug Fixes - **misc**: Fix webapi proxy with clerk. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix webapi proxy with clerk, closes [lobehub#8479](lobehub#8479) ([7dd65f0](lobehub@7dd65f0)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: some ai image bugs (lobehub#8490) * โจ feat: add zhipu cogview4 (lobehub#8486) * ๐ chore(release): v1.101.0 [skip ci] ## [Version 1.101.0](lobehub/lobe-chat@v1.100.2...v1.101.0) <sup>Released on **2025-07-19**</sup> #### โจ Features - **misc**: Add zhipu cogview4. #### ๐ Bug Fixes - **misc**: Some ai image bugs. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add zhipu cogview4, closes [lobehub#8486](lobehub#8486) ([0b1557d](lobehub@0b1557d)) #### What's fixed * **misc**: Some ai image bugs, closes [lobehub#8490](lobehub#8490) ([5d852be](lobehub@5d852be)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: Try fix authorization code exchange & pin next-auto to `beta.29` (lobehub#8496) * ๐ pin: next-auth@beta.29 * ๐ fix: infinite redirection * ๐ chore(release): v1.101.1 [skip ci] ### [Version 1.101.1](lobehub/lobe-chat@v1.101.0...v1.101.1) <sup>Released on **2025-07-19**</sup> #### ๐ Bug Fixes - **misc**: Try fix authorization code exchange & pin next-auto to `beta.29`. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Try fix authorization code exchange & pin next-auto to `beta.29`, closes [lobehub#8496](lobehub#8496) ([27c4881](lobehub@27c4881)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ท build: add default `APP_URL` for docker image to avoid building error (lobehub#8507) * ๐ style: fix lobehub provider `/chat` in desktop (lobehub#8508) * ๐จ chore: fix model runtime test issue (lobehub#8511) * ๐ chore(release): v1.101.2 [skip ci] ### [Version 1.101.2](lobehub/lobe-chat@v1.101.1...v1.101.2) <sup>Released on **2025-07-21**</sup> #### ๐ Styles - **misc**: Fix lobehub provider `/chat` in desktop. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Fix lobehub provider `/chat` in desktop, closes [lobehub#8508](lobehub#8508) ([c801f9c](lobehub@c801f9c)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * โจ feat: add image generation capabilities using Google AI Imagen API (lobehub#8503) * ๐ chore(release): v1.102.0 [skip ci] ## [Version 1.102.0](lobehub/lobe-chat@v1.101.2...v1.102.0) <sup>Released on **2025-07-21**</sup> #### โจ Features - **misc**: Add image generation capabilities using Google AI Imagen API. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add image generation capabilities using Google AI Imagen API, closes [lobehub#8503](lobehub#8503) ([cef8208](lobehub@cef8208)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐จ chore(typo): fix `redirectUrl` typo (lobehub#8513) * ๐ style: modal list header sticky style (lobehub#8514) * ๐ fix(groq): Enable streaming for tool calls and add Kimi K2 model (lobehub#8510) * ๐ chore(release): v1.102.1 [skip ci] ### [Version 1.102.1](lobehub/lobe-chat@v1.102.0...v1.102.1) <sup>Released on **2025-07-21**</sup> #### ๐ Bug Fixes - **groq**: Enable streaming for tool calls and add Kimi K2 model. #### ๐ Styles - **misc**: Modal list header sticky style. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **groq**: Enable streaming for tool calls and add Kimi K2 model, closes [lobehub#8510](lobehub#8510) ([60739bc](lobehub@60739bc)) #### Styles * **misc**: Modal list header sticky style, closes [lobehub#8514](lobehub#8514) ([75273d5](lobehub@75273d5)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ style: add notification for desktop (lobehub#8523) * add notification for desktop * update i18n * fix tests * ๐ chore(release): v1.102.2 [skip ci] ### [Version 1.102.2](lobehub/lobe-chat@v1.102.1...v1.102.2) <sup>Released on **2025-07-22**</sup> #### ๐ Styles - **misc**: Add notification for desktop. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Add notification for desktop, closes [lobehub#8523](lobehub#8523) ([4917d17](lobehub@4917d17)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ท build: add default app url for docker image to avoid building error (lobehub#8526) * ๐ fix: remove debug logging from ModelRuntime and async caller (lobehub#8525) * ๐ chore(release): v1.102.3 [skip ci] ### [Version 1.102.3](lobehub/lobe-chat@v1.102.2...v1.102.3) <sup>Released on **2025-07-22**</sup> #### ๐ Bug Fixes - **misc**: Remove debug logging from ModelRuntime and async caller. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Remove debug logging from ModelRuntime and async caller, closes [lobehub#8525](lobehub#8525) ([dd1a635](lobehub@dd1a635)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * โป๏ธ refactor: add badge and improve document (lobehub#8528) * update readme * ๐ docs: Update readme * ๐ style: Update PlanIcon * improve tooltip placement * improve tray --------- Co-authored-by: canisminor1990 <i@canisminor.cc> * ๐ style: Update tray icon (lobehub#8530) Co-authored-by: canisminor1990 <i@canisminor.cc> * ๐ chore(release): v1.102.4 [skip ci] ### [Version 1.102.4](lobehub/lobe-chat@v1.102.3...v1.102.4) <sup>Released on **2025-07-22**</sup> #### โป Code Refactoring - **misc**: Add badge and improve document. #### ๐ Styles - **misc**: Update tray icon. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Add badge and improve document, closes [lobehub#8528](lobehub#8528) ([9fb4b0d](lobehub@9fb4b0d)) #### Styles * **misc**: Update tray icon, closes [lobehub#8530](lobehub#8530) ([2696de4](lobehub@2696de4)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * โจ feat: add Qwen image generation capabilities (lobehub#8534) * ๐ chore(release): v1.103.0 [skip ci] ## [Version 1.103.0](lobehub/lobe-chat@v1.102.4...v1.103.0) <sup>Released on **2025-07-22**</sup> #### โจ Features - **misc**: Add Qwen image generation capabilities. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add Qwen image generation capabilities, closes [lobehub#8534](lobehub#8534) ([7e8e5ef](lobehub@7e8e5ef)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ docs: fix desktop & mcp mdx (lobehub#8541) * ๐ style: update i18n (lobehub#8537) Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com> * ๐ chore(release): v1.103.1 [skip ci] ### [Version 1.103.1](lobehub/lobe-chat@v1.103.0...v1.103.1) <sup>Released on **2025-07-23**</sup> #### ๐ Styles - **misc**: Update i18n. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Update i18n, closes [lobehub#8537](lobehub#8537) ([b16f19b](lobehub@b16f19b)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐จ chore: some ai image optimization (lobehub#8543) * ๐จ chore: fix an issue where some tests were failing if Branding items were updated (lobehub#8549) * Update test data for plugin action to use avatar icon path (rather than hard coded) * Update tests to use BRANDING_NAME constant instead of hardcoded 'LobeChat' and update avatar icon path in chat message tests * Update tests to replace hardcoded avatar paths with constants for inbox and user avatars * Update plugin action tests to use DEFAULT_INBOX_AVATAR constant instead of hardcoded path * ๐ style: Add cached token count to usage of GoogleAI and VertexAI (lobehub#8545) * ๐ style: fix desktop titlebar style in window (lobehub#8439) * ๐ style: Fix win electron style ๐ docs: Update readme ๐ style: Update useWatchThemeUpdate ๐ style: Update Tray icon ๐ง chore: Update windows ๐ง chore: Update filetree ๐ง chore: Update core ๐ style: Fix desktop draw style ๐ style: Update style ๐ style: Fix backgroundColor ๐ style: Update titlebar style * ๐ style: Fix windows icon * ๐ง chore: Clean * update theme * ๐ style: Update broswer * ๐ style: HandleAppThemeChange * clean * fix memory leak --------- Co-authored-by: arvinxx <arvinx@foxmail.com> * ๐ style: fix sub topic width in md responsive (lobehub#8443) * ๐ fix: fix chat stream in desktop and update shortcut (lobehub#8520) * disable nginx chunk buffering * make setting keep alive * update shortcut * update shortcut * fix lint * ๐ chore(release): v1.103.2 [skip ci] ### [Version 1.103.2](lobehub/lobe-chat@v1.103.1...v1.103.2) <sup>Released on **2025-07-24**</sup> #### ๐ Bug Fixes - **misc**: Fix chat stream in desktop and update shortcut. #### ๐ Styles - **misc**: Add cached token count to usage of GoogleAI and VertexAI, fix desktop titlebar style in window, fix sub topic width in md responsive. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix chat stream in desktop and update shortcut, closes [lobehub#8520](lobehub#8520) ([0192140](lobehub@0192140)) #### Styles * **misc**: Add cached token count to usage of GoogleAI and VertexAI, closes [lobehub#8545](lobehub#8545) ([66dbb24](lobehub@66dbb24)) * **misc**: Fix desktop titlebar style in window, closes [lobehub#8439](lobehub#8439) ([fd7662c](lobehub@fd7662c)) * **misc**: Fix sub topic width in md responsive, closes [lobehub#8443](lobehub#8443) ([9bae13b](lobehub@9bae13b)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * โจ feat: support custom hotkey on desktop (lobehub#8559) * support custom hotkey * update tests * clean * fix tests * ๐ chore(release): v1.104.0 [skip ci] ## [Version 1.104.0](lobehub/lobe-chat@v1.103.2...v1.104.0) <sup>Released on **2025-07-24**</sup> #### โจ Features - **misc**: Support custom hotkey on desktop. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support custom hotkey on desktop, closes [lobehub#8559](lobehub#8559) ([b50f121](lobehub@b50f121)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: update convertUsage to handle XAI provider and adjust OpenAIStream to pass provider (lobehub#8557) * โจ chore: improve image display quality (lobehub#8571) * ๐ chore(release): v1.104.1 [skip ci] ### [Version 1.104.1](lobehub/lobe-chat@v1.104.0...v1.104.1) <sup>Released on **2025-07-25**</sup> #### ๐ Bug Fixes - **misc**: Update convertUsage to handle XAI provider and adjust OpenAIStream to pass provider. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Update convertUsage to handle XAI provider and adjust OpenAIStream to pass provider, closes [lobehub#8557](lobehub#8557) ([d1e4a54](lobehub@d1e4a54)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ fix: fix update hotkey invalid when input mod in desktop (lobehub#8572) * fix hotkey with mod * fix invalid hotkeys * add tests * ๐ chore(release): v1.104.2 [skip ci] ### [Version 1.104.2](lobehub/lobe-chat@v1.104.1...v1.104.2) <sup>Released on **2025-07-26**</sup> #### ๐ Bug Fixes - **misc**: Fix update hotkey invalid when input mod in desktop. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix update hotkey invalid when input mod in desktop, closes [lobehub#8572](lobehub#8572) ([07f3e6a](lobehub@07f3e6a)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐จ chore: add react scan debugger and bump deps (lobehub#8576) * add REACT_SCAN debug * upgrade lobehub/ui * clean * head * update * ๐ style: Add Gemini 2.5 Flash-Lite GA model (lobehub#8539) * ๐ chore(release): v1.104.3 [skip ci] ### [Version 1.104.3](lobehub/lobe-chat@v1.104.2...v1.104.3) <sup>Released on **2025-07-26**</sup> #### ๐ Styles - **misc**: Add Gemini 2.5 Flash-Lite GA model. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Add Gemini 2.5 Flash-Lite GA model, closes [lobehub#8539](lobehub#8539) ([404ac21](lobehub@404ac21)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme * ๐ style: update i18n (lobehub#8579) Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com> * ๐ style: fix setting window layout size (lobehub#8483) * ๐ chore(release): v1.104.4 [skip ci] ### [Version 1.104.4](lobehub/lobe-chat@v1.104.3...v1.104.4) <sup>Released on **2025-07-28**</sup> #### ๐ Styles - **misc**: Fix setting window layout size, update i18n. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Fix setting window layout size, closes [lobehub#8483](lobehub#8483) ([4902341](lobehub@4902341)) * **misc**: Update i18n, closes [lobehub#8579](lobehub#8579) ([2eccbc7](lobehub@2eccbc7)) </details> <div align="right"> [](#readme-top) </div> * ๐ docs(bot): Auto sync agents & plugin to readme --------- Co-authored-by: sxjeru <sxjeru@gmail.com> Co-authored-by: LobeHub Bot <i@lobehub.com> Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net> Co-authored-by: Arvin Xu <arvinx@foxmail.com> Co-authored-by: bbbugg <80089841+bbbugg@users.noreply.github.com> Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renรฉ Wang <52880665+RiverTwilight@users.noreply.github.com> Co-authored-by: YuTengjing <ytj2713151713@gmail.com> Co-authored-by: canisminor1990 <i@canisminor.cc> Co-authored-by: vual <25891219+vual@users.noreply.github.com> Co-authored-by: Rylan Cai <67412196+cy948@users.noreply.github.com> Co-authored-by: Innei <tukon479@gmail.com> Co-authored-by: afon <wengxufeng@gmail.com> Co-authored-by: LovelyGuYiMeng <76251800+LovelyGuYiMeng@users.noreply.github.com> Co-authored-by: huangkairan <56213366+huangkairan@users.noreply.github.com> Co-authored-by: Jamie Stivala <jamiestivala@gmail.com> Co-authored-by: Shinji-Li <1349021570@qq.com>
### [Version 1.99.3](lobehub/lobe-chat@v1.99.2...v1.99.3) <sup>Released on **2025-07-16**</sup> #### ๐ Bug Fixes - **misc**: Chat model list should not show image model. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Chat model list should not show image model, closes [lobehub#8448](lobehub#8448) ([ec4e253](lobehub@ec4e253)) </details> <div align="right"> [](#readme-top) </div>
๐ป ๅๆด็ฑปๅ | Change Type
๐ ๅๆด่ฏดๆ | Description of Change
#8429 (comment)
#8429 (comment)
#8429 (comment)
็ฑไบ้่ฏฏๆฐๆฎๅทฒ็ปๅๅ ฅไบๆฐๆฎๅบ๏ผไฟฎๅค่ฟไธช้ฎ้ข่ฟ่ฆ็จๆท๏ผ
๐ ่กฅๅ ไฟกๆฏ | Additional Information
Summary by Sourcery
Refactor the codebase to replace all usages of the ChatModelCard type with ModelCard for consistency, centralize OpenAI-compatible image generation logic inside the factory, and update related tests and selectors to match the new model card type and unified createImage implementation.
New Features:
Enhancements:
Tests: