Skip to content
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

✨ feat: support gemini image output in chat #6956

Merged
merged 7 commits into from
Mar 14, 2025
Merged

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Mar 14, 2025

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 14, 2025
Copy link

vercel bot commented Mar 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-database ✅ Ready (Inspect) Visit Preview Mar 14, 2025 1:50pm
lobe-chat-desktop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2025 1:50pm
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2025 1:50pm

@lobehubbot
Copy link
Member

👍 @arvinxx

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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@dosubot dosubot bot added the Gemini label Mar 14, 2025
Copy link
Contributor

gru-agent bot commented Mar 14, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 54424aa ✅ Finished

Files

File Pull Request
src/services/message/server.ts ❌ Failure (I failed to write the unit tests for the file.)
src/utils/fetch/fetchSSE.ts ❌ Failure (I failed to write the unit tests for the file.)

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

Copy link

codecov bot commented Mar 14, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 97.49%. Comparing base (8495844) to head (e44b08b).

Files with missing lines Patch % Lines
src/database/server/models/message.ts 80.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6956      +/-   ##
==========================================
+ Coverage   91.45%   97.49%   +6.04%     
==========================================
  Files         731       14     -717     
  Lines       68834     3717   -65117     
  Branches     3180      210    -2970     
==========================================
- Hits        62954     3624   -59330     
+ Misses       5880       93    -5787     
Flag Coverage Δ
app ?
server 97.49% <80.00%> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 14, 2025
@arvinxx arvinxx changed the title ✨ feat: support gemini text to image in chat completition ✨ feat: support gemini image output in chat Mar 14, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Mar 14, 2025
@arvinxx arvinxx merged commit af0243c into main Mar 14, 2025
23 of 27 checks passed
@arvinxx arvinxx deleted the feat/gemini-images branch March 14, 2025 12:52
@lobehubbot
Copy link
Member

❤️ Great PR @arvinxx ❤️

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.
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx@canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.71.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

AirboZH pushed a commit to yuanze-dev/lobe-chat that referenced this pull request Mar 17, 2025
* support gemini image

* fix lint

* fix

* fix upload bug

* support google token count

* update credit

* update i18n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gemini released size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request] gemini 2.0 flash exp 支持图文输出
2 participants