Merge upstream: OpenAI images API 流式中继与图片编辑修复 - #3
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
同步上游 QuantumNous/new-api 最新更新(本次仅 1 个提交),并适配本 fork。
上游变更
fix(openai): support streaming image relay and image edit for images API(d2576dd)dto/openai_image.go、relay/channel/openai/、relay/helper/valid_request.go及配套单测本 fork 适配
github.com/QuantumNous/new-api模块路径,本 fork module 名为newapi,统一替换为newapi/前缀以恢复编译。验证
go test ./dto/... ./relay/channel/openai/... ./relay/helper/...全部通过go build ./...全量编译通过🤖 Generated with Claude Code