Skip to content

Conversation

tjx666
Copy link
Collaborator

@tjx666 tjx666 commented Aug 19, 2025

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

Added Qwen Image Edit model to the fal.ai provider with comprehensive configuration:

New Features:

  • Qwen Image Edit model support with professional image editing capabilities
  • Supports semantic editing and appearance editing
  • Precise Chinese and English text editing within images
  • Style transfer and object rotation capabilities
  • Complete parameter schema with proper validation

Technical Details:

  • Created qwenEditParamsSchema with all required parameters
  • Updated model description to highlight editing capabilities
  • Configured pricing at $0.025 per image generation
  • Added support for aspect ratio, steps, seed, CFG, and image URL parameters
  • Release date: August 19, 2025

Parameters Supported:

  • prompt: Editing instructions
  • imageUrl: Input image URL (required)
  • aspectRatio: Image aspect ratio options
  • steps: Inference steps (2-50, default 30)
  • seed: Random seed for reproducibility
  • cfg: Guidance scale (0-20, default 4)

📝 补充信息 | Additional Information

This addition enables users to perform high-quality image editing tasks using Qwen's latest image editing model, which excels at text rendering and precise editing operations.

Summary by Sourcery

Add the Qwen Image Edit model to the fal.ai provider for advanced image editing tasks

New Features:

  • Introduce Qwen Image Edit model with semantic and appearance editing, precise Chinese and English text editing, style transfer, and object rotation

Enhancements:

  • Define comprehensive parameter schema for the edit model including prompt, imageUrl, dimensions, steps, seed, and CFG
  • Configure pricing at $0.025 per image generation and set the model’s release date to 2025-08-19
  • Register the new Qwen Edit model in falImageModels with display name, ID, and parameters

Copy link
Contributor

sourcery-ai bot commented Aug 19, 2025

Reviewer's Guide

Adds support for a dedicated Qwen Image Edit model by refining the existing image parameter schema and registering a new model entry with full configuration, including pricing and metadata.

Entity relationship diagram for AIImageModelCard and parameter schemas

erDiagram
    AIImageModelCard {
        string id
        string displayName
        string description
        bool enabled
        ModelParamsSchema parameters
        object pricing
        string releasedAt
        string type
    }
    qwenEditParamsSchema {
        float cfg
        int height
        string imageUrl
        string prompt
        int seed
        int steps
        int width
    }
    AIImageModelCard ||--o| qwenEditParamsSchema : has
Loading

Class diagram for the new Qwen Image Edit model parameter schema

classDiagram
    class qwenEditParamsSchema {
        +float cfg (default: 4, min: 0, max: 20, step: 0.1)
        +int height (default: 1328, min: 512, max: 1536, step: 1)
        +string imageUrl (default: null)
        +string prompt (default: '')
        +int seed (default: null)
        +int steps (default: 30, min: 2, max: 50, step: 1)
        +int width (default: 1328, min: 512, max: 1536, step: 1)
    }
Loading

Class diagram for updated falImageModels with Qwen Image Edit model

classDiagram
    class AIImageModelCard {
        +string description
        +string displayName
        +bool enabled
        +string id
        +ModelParamsSchema parameters
        +object pricing
        +string releasedAt
        +string type
    }
    class qwenEditParamsSchema
    AIImageModelCard "1" -- "1" qwenEditParamsSchema : uses
    AIImageModelCard : Qwen Edit
    AIImageModelCard : Qwen Image
    AIImageModelCard : FLUX.1
    AIImageModelCard : other models
Loading

File-Level Changes

Change Details Files
Refine and extend image parameter schemas
  • Annotated existing height limits and default values in qwenImageParamsSchema
  • Created qwenEditParamsSchema defining cfg, height, width, prompt, imageUrl, seed, and steps with appropriate defaults and bounds
src/config/aiModels/fal.ts
Register Qwen Edit model in falImageModels
  • Inserted new model entry with displayName 'Qwen Edit', unique id, and enabled flag
  • Configured pricing at $0.025 per image generation and set release date to 2025-08-19
  • Updated model description to highlight semantic editing, appearance editing, text precision, style transfer, and rotation capabilities
src/config/aiModels/fal.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

Copy link

vercel bot commented Aug 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
lobe-chat-database Ready Ready Preview Comment Aug 19, 2025 0:06am
lobe-chat-preview Ready Ready Preview Comment Aug 19, 2025 0:06am

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 19, 2025
@lobehubbot
Copy link
Member

👍 @tjx666

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
Contributor

gru-agent bot commented Aug 19, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 699ae1f 🚫 Skipped No files need to be tested {"src/config/aiModels/fal.ts":"File path does not match include patterns."}

History Assignment

Tip

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

Copy link
Contributor

claude bot commented Aug 19, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@dosubot dosubot bot added the Model Provider 模型服务商 label Aug 19, 2025
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 there - 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.

@tjx666 tjx666 changed the title ✨ feat(models): Add Qwen Image Edit model with enhanced editing capabilities ✨ feat(models): Add Qwen Image Edit model Aug 19, 2025
Copy link

codecov bot commented Aug 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.64%. Comparing base (64a5d51) to head (699ae1f).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##             main    #8851     +/-   ##
=========================================
  Coverage   85.64%   85.64%             
=========================================
  Files         943      943             
  Lines       73405    73427     +22     
  Branches     4736     6662   +1926     
=========================================
+ Hits        62866    62888     +22     
  Misses      10539    10539             
Flag Coverage Δ
app 85.64% <100.00%> (+<0.01%) ⬆️
server 96.26% <ø> (ø)

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.

@tjx666 tjx666 merged commit 4d7a060 into main Aug 19, 2025
34 of 35 checks passed
@tjx666 tjx666 deleted the tj/feat/qwen-edit branch August 19, 2025 13:54
@lobehubbot
Copy link
Member

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

github-actions bot pushed a commit that referenced this pull request Aug 19, 2025
## [Version&nbsp;1.114.0](v1.113.3...v1.114.0)
<sup>Released on **2025-08-19**</sup>

#### ✨ Features

- **models**: Add Qwen Image Edit model.

<br/>

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

#### What's improved

* **models**: Add Qwen Image Edit model, closes [#8851](#8851) ([4d7a060](4d7a060))

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

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to jaworldwideorg/OneJA-Bot that referenced this pull request Aug 19, 2025
## [Version&nbsp;1.114.0](v1.113.1...v1.114.0)
<sup>Released on **2025-08-19**</sup>

#### ✨ Features

- **models**: Add Qwen Image Edit model.

<br/>

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

#### What's improved

* **models**: Add Qwen Image Edit model, closes [lobehub#8851](https://github.com/jaworldwideorg/OneJA-Bot/issues/8851) ([4d7a060](4d7a060))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Model Provider 模型服务商 released size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants