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
18373c6e
authored
Apr 01, 2026
by
feitianbubu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add wan 2.7
parent
5b47011e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletions
+8
-1
relay/channel/ali/dto.go
+5
-0
relay/channel/ali/image_wan.go
+2
-1
setting/model_setting/qwen.go
+1
-0
No files found.
relay/channel/ali/dto.go
View file @
18373c6e
...
@@ -177,6 +177,11 @@ type AliImageParameters struct {
...
@@ -177,6 +177,11 @@ type AliImageParameters struct {
Scale
string
`json:"scale,omitempty"`
Scale
string
`json:"scale,omitempty"`
Watermark
*
bool
`json:"watermark,omitempty"`
Watermark
*
bool
`json:"watermark,omitempty"`
PromptExtend
*
bool
`json:"prompt_extend,omitempty"`
PromptExtend
*
bool
`json:"prompt_extend,omitempty"`
ThinkingMode
*
bool
`json:"thinking_mode,omitempty"`
EnableSequential
*
bool
`json:"enable_sequential,omitempty"`
BboxList
any
`json:"bbox_list,omitempty"`
ColorPalette
any
`json:"color_palette,omitempty"`
Seed
*
int
`json:"seed,omitempty"`
}
}
func
(
p
*
AliImageParameters
)
PromptExtendValue
()
bool
{
func
(
p
*
AliImageParameters
)
PromptExtendValue
()
bool
{
...
...
relay/channel/ali/image_wan.go
View file @
18373c6e
...
@@ -40,7 +40,8 @@ func oaiFormEdit2WanxImageEdit(c *gin.Context, info *relaycommon.RelayInfo, requ
...
@@ -40,7 +40,8 @@ func oaiFormEdit2WanxImageEdit(c *gin.Context, info *relaycommon.RelayInfo, requ
}
}
func
isOldWanModel
(
modelName
string
)
bool
{
func
isOldWanModel
(
modelName
string
)
bool
{
return
strings
.
Contains
(
modelName
,
"wan"
)
&&
!
strings
.
Contains
(
modelName
,
"wan2.6"
)
return
strings
.
Contains
(
modelName
,
"wan"
)
&&
!
lo
.
SomeBy
([]
string
{
"wan2.6"
,
"wan2.7"
},
func
(
v
string
)
bool
{
return
strings
.
Contains
(
modelName
,
v
)
})
}
}
func
isWanModel
(
modelName
string
)
bool
{
func
isWanModel
(
modelName
string
)
bool
{
...
...
setting/model_setting/qwen.go
View file @
18373c6e
...
@@ -17,6 +17,7 @@ var defaultQwenSettings = QwenSettings{
...
@@ -17,6 +17,7 @@ var defaultQwenSettings = QwenSettings{
"z-image"
,
"z-image"
,
"qwen-image"
,
"qwen-image"
,
"wan2.6"
,
"wan2.6"
,
"wan2.7"
,
"qwen-image-edit"
,
"qwen-image-edit"
,
"qwen-image-edit-max"
,
"qwen-image-edit-max"
,
"qwen-image-edit-max-2026-01-16"
,
"qwen-image-edit-max-2026-01-16"
,
...
...
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