Skip to content

Merge upstream: OpenAI images API 流式中继与图片编辑修复 - #3

Merged
ottocsb merged 3 commits into
mainfrom
update-upstream-20260609
Jun 9, 2026
Merged

Merge upstream: OpenAI images API 流式中继与图片编辑修复#3
ottocsb merged 3 commits into
mainfrom
update-upstream-20260609

Conversation

@ottocsb

@ottocsb ottocsb commented Jun 9, 2026

Copy link
Copy Markdown
Owner

概述

同步上游 QuantumNous/new-api 最新更新(本次仅 1 个提交),并适配本 fork。

上游变更

属 OpenAI 渠道(LLM)本身的能力,不涉及本 fork 已移除的 MJ/Suno/视频媒体生成。

本 fork 适配

  • 上游新增的 3 个测试文件使用 github.com/QuantumNous/new-api 模块路径,本 fork module 名为 newapi,统一替换为 newapi/ 前缀以恢复编译。

验证

  • go test ./dto/... ./relay/channel/openai/... ./relay/helper/... 全部通过
  • go build ./... 全量编译通过
  • 无 AGPL/版权头残留;未引入 classic 主题相关变更

🤖 Generated with Claude Code

gaoren002 and others added 3 commits June 8, 2026 18:36
…API (QuantumNous#4608)

* fix(openai): support streaming image relay

* fix(openai): keep image edit multipart body reusable

* test(openai): cover image stream usage details

* test(openai): cover image edit fallback stream field

* fix(openai): wrap image json fallback as stream

* fix(relay): support OpenAI image streaming

* fix(openai): record image stream upstream error events

* fix(openai): harden image stream relay

* fix(openai): return image JSON errors

* fix(relay): reset stream status per scanner run

* fix(relay): drop upstream credit passthrough

* fix(openai): keep image errors minimal

* fix(openai): keep image error status from response

---------

Co-authored-by: CaIon <i@caion.me>
上游 QuantumNous#4608 新增的 openai 图片相关测试文件使用 github.com/QuantumNous/new-api 路径,
本 fork module 名为 newapi,统一替换为 newapi/ 前缀以恢复编译。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ottocsb
ottocsb merged commit 3889228 into main Jun 9, 2026
@ottocsb
ottocsb deleted the update-upstream-20260609 branch June 9, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants