one-api icon indicating copy to clipboard operation
one-api copied to clipboard

feat: support openai images edits api

Open Laisky opened this issue 3 months ago • 10 comments

说明

支持 OpenAI 的 ImagesEdits 接口

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

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

自测

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

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

Laisky avatar Apr 25 '24 03:04 Laisky

nb

ye4293 avatar Apr 25 '24 04:04 ye4293

周末处理~

songquanpeng avatar Apr 25 '24 16:04 songquanpeng

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

https://github.com/songquanpeng/one-api/assets/4532436/cf04d390-e2cc-46dd-a6b2-44725bf7ea30

Laisky avatar Apr 28 '24 02:04 Laisky

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

popdo avatar May 07 '24 07:05 popdo

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

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

Laisky avatar May 07 '24 07:05 Laisky