Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5ca8f13a
authored
May 10, 2025
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add moderation and background fields to ImageRequest struct in dalle.go #1052
parent
c2f3749c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
dto/dalle.go
+10
-11
No files found.
dto/dalle.go
View file @
5ca8f13a
package
dto
import
"encoding/json"
type
ImageRequest
struct
{
Model
string
`json:"model"`
Prompt
string
`json:"prompt" binding:"required"`
N
int
`json:"n,omitempty"`
Size
string
`json:"size,omitempty"`
Quality
string
`json:"quality,omitempty"`
ResponseFormat
string
`json:"response_format,omitempty"`
Style
string
`json:"style,omitempty"`
User
string
`json:"user,omitempty"`
ExtraFields
json
.
RawMessage
`json:"extra_fields,omitempty"`
Model
string
`json:"model"`
Prompt
string
`json:"prompt" binding:"required"`
N
int
`json:"n,omitempty"`
Size
string
`json:"size,omitempty"`
Quality
string
`json:"quality,omitempty"`
ResponseFormat
string
`json:"response_format,omitempty"`
Style
string
`json:"style,omitempty"`
User
string
`json:"user,omitempty"`
Moderation
string
`json:"moderation,omitempty"`
Background
string
`json:"background,omitempty"`
}
type
ImageResponse
struct
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment