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 openai images edits api #1369

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Laisky
Copy link
Collaborator

@Laisky Laisky commented Apr 25, 2024

说明

支持 OpenAI 的 ImagesEdits 接口

https://platform.openai.com/docs/api-reference/images/createEdit

这个接口比较特殊的地方在于接受的是 FORM 而不是 JSON。

自测

我已确认该 PR 已自测通过,相关截图如下:

CleanShot 2024-04-25 at 11 10 50@2x

@ye4293
Copy link
Collaborator

ye4293 commented Apr 25, 2024

nb

@songquanpeng
Copy link
Owner

周末处理~

@Laisky
Copy link
Collaborator Author

Laisky commented Apr 28, 2024

实用效果图,支持这个接口是为之后即将推出的 dall-e-3 inpaiting 作准备。

My.Movie.mp4

@popdo
Copy link

popdo commented May 7, 2024

这个功能是不是还没提交到最新版,试了一下不行。

@Laisky
Copy link
Collaborator Author

Laisky commented May 7, 2024

这个功能是不是还没提交到最新版,试了一下不行。

尚未合并,目前只能用我的 fork 试。

@songquanpeng
Copy link
Owner

不好意思拖了这么久,我尽量抽时间处理

@Laisky
Copy link
Collaborator Author

Laisky commented May 28, 2024

不好意思拖了这么久,我尽量抽时间处理

一个人太吃力了,不考虑把这个项目转成 ORG 然后搞个委员会来处理 PR 吗?

@songquanpeng
Copy link
Owner

很有道理,我确实力不从心

@songquanpeng songquanpeng added the priority This will have high priority. label Jul 3, 2024
Copy link

codecov bot commented Jul 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 23 lines in your changes missing coverage. Please review.

Project coverage is 1.30%. Comparing base (c936198) to head (c44928b).

Files Patch % Lines
relay/adaptor/openai/image.go 0.00% 8 Missing ⚠️
common/gin.go 0.00% 5 Missing ⚠️
relay/adaptor/openai/adaptor.go 0.00% 2 Missing ⚠️
relay/controller/image.go 0.00% 2 Missing ⚠️
relay/relaymode/helper.go 0.00% 2 Missing ⚠️
controller/relay.go 0.00% 1 Missing ⚠️
middleware/distributor.go 0.00% 1 Missing ⚠️
relay/adaptor/common.go 0.00% 1 Missing ⚠️
router/relay.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #1369      +/-   ##
========================================
- Coverage   1.30%   1.30%   -0.01%     
========================================
  Files        144     144              
  Lines      10140   10151      +11     
========================================
  Hits         132     132              
- Misses      9994   10005      +11     
  Partials      14      14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Laisky
Copy link
Collaborator Author

Laisky commented Jul 24, 2024

@songquanpeng 冲突都修好了,可以看看还要合吗

@ReberMusk
Copy link

希望合并。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority This will have high priority.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants