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
5125606f
authored
Oct 25, 2025
by
IcedTangerine
Committed by
GitHub
Oct 25, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2103 from feitianbubu/pr/doubao-image-watermark
fix: correct bool value for watermark
parents
3d7d151c
180a9b91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
relay/helper/valid_request.go
+3
-2
No files found.
relay/helper/valid_request.go
View file @
5125606f
...
...
@@ -160,8 +160,9 @@ func GetAndValidOpenAIImageRequest(c *gin.Context, relayMode int) (*dto.ImageReq
imageRequest
.
N
=
1
}
watermark
:=
formData
.
Has
(
"watermark"
)
if
watermark
{
hasWatermark
:=
formData
.
Has
(
"watermark"
)
if
hasWatermark
{
watermark
:=
formData
.
Get
(
"watermark"
)
==
"true"
imageRequest
.
Watermark
=
&
watermark
}
break
...
...
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