fix: preserve OpenAI image edit reference fields (#4646)

* fix: preserve OpenAI image edit reference fields

* feat: support json image edit requests
This commit is contained in:
Seefs
2026-05-06 21:27:47 +08:00
committed by GitHub
parent 5c793d7992
commit 38a3314b9b
3 changed files with 16 additions and 4 deletions
+4 -1
View File
@@ -27,7 +27,10 @@ type ImageRequest struct {
OutputCompression json.RawMessage `json:"output_compression,omitempty"`
PartialImages json.RawMessage `json:"partial_images,omitempty"`
// Stream bool `json:"stream,omitempty"`
Watermark *bool `json:"watermark,omitempty"`
Images json.RawMessage `json:"images,omitempty"`
Mask json.RawMessage `json:"mask,omitempty"`
InputFidelity json.RawMessage `json:"input_fidelity,omitempty"`
Watermark *bool `json:"watermark,omitempty"`
// zhipu 4v
WatermarkEnabled json.RawMessage `json:"watermark_enabled,omitempty"`
UserId json.RawMessage `json:"user_id,omitempty"`