mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 17:16:38 +08:00
fix: make ImagePrompt optional in the model definition
- Update `ImagePrompt` field to be optional in the replication model. - Improve data handling by adding `omitempty` tag for flexibility.
This commit is contained in:
parent
e265335fc5
commit
f1db73405e
@ -137,7 +137,7 @@ type DrawImageRequest struct {
|
||||
type ImageInput struct {
|
||||
Steps int `json:"steps" binding:"required,min=1"`
|
||||
Prompt string `json:"prompt" binding:"required,min=5"`
|
||||
ImagePrompt string `json:"image_prompt"`
|
||||
ImagePrompt string `json:"image_prompt,omitempty"`
|
||||
Guidance int `json:"guidance" binding:"required,min=2,max=5"`
|
||||
Interval int `json:"interval" binding:"required,min=1,max=4"`
|
||||
AspectRatio string `json:"aspect_ratio" binding:"required,oneof=1:1 16:9 2:3 3:2 4:5 5:4 9:16"`
|
||||
|
Loading…
Reference in New Issue
Block a user