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
64303cfa
authored
Jan 21, 2026
by
Seefs
Committed by
GitHub
Jan 21, 2026
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2688 from feitianbubu/pr/c579c7755c6b03e207853d06cc695ca7903388c9
parents
43970e99
d95f334c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
relay/channel/task/jimeng/adaptor.go
+4
-2
No files found.
relay/channel/task/jimeng/adaptor.go
View file @
64303cfa
...
@@ -17,6 +17,7 @@ import (
...
@@ -17,6 +17,7 @@ import (
"github.com/QuantumNous/new-api/common"
"github.com/QuantumNous/new-api/common"
"github.com/QuantumNous/new-api/model"
"github.com/QuantumNous/new-api/model"
"github.com/samber/lo"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin"
"github.com/pkg/errors"
"github.com/pkg/errors"
...
@@ -409,14 +410,15 @@ func (a *TaskAdaptor) convertToRequestPayload(req *relaycommon.TaskSubmitReq) (*
...
@@ -409,14 +410,15 @@ func (a *TaskAdaptor) convertToRequestPayload(req *relaycommon.TaskSubmitReq) (*
// 即梦视频3.0 ReqKey转换
// 即梦视频3.0 ReqKey转换
// https://www.volcengine.com/docs/85621/1792707
// https://www.volcengine.com/docs/85621/1792707
imageLen
:=
lo
.
Max
([]
int
{
len
(
req
.
Images
),
len
(
r
.
BinaryDataBase64
),
len
(
r
.
ImageUrls
)})
if
strings
.
Contains
(
r
.
ReqKey
,
"jimeng_v30"
)
{
if
strings
.
Contains
(
r
.
ReqKey
,
"jimeng_v30"
)
{
if
r
.
ReqKey
==
"jimeng_v30_pro"
{
if
r
.
ReqKey
==
"jimeng_v30_pro"
{
// 3.0 pro只有固定的jimeng_ti2v_v30_pro
// 3.0 pro只有固定的jimeng_ti2v_v30_pro
r
.
ReqKey
=
"jimeng_ti2v_v30_pro"
r
.
ReqKey
=
"jimeng_ti2v_v30_pro"
}
else
if
len
(
req
.
Images
)
>
1
{
}
else
if
imageLen
>
1
{
// 多张图片:首尾帧生成
// 多张图片:首尾帧生成
r
.
ReqKey
=
strings
.
TrimSuffix
(
strings
.
Replace
(
r
.
ReqKey
,
"jimeng_v30"
,
"jimeng_i2v_first_tail_v30"
,
1
),
"p"
)
r
.
ReqKey
=
strings
.
TrimSuffix
(
strings
.
Replace
(
r
.
ReqKey
,
"jimeng_v30"
,
"jimeng_i2v_first_tail_v30"
,
1
),
"p"
)
}
else
if
len
(
req
.
Images
)
==
1
{
}
else
if
imageLen
==
1
{
// 单张图片:图生视频
// 单张图片:图生视频
r
.
ReqKey
=
strings
.
TrimSuffix
(
strings
.
Replace
(
r
.
ReqKey
,
"jimeng_v30"
,
"jimeng_i2v_first_v30"
,
1
),
"p"
)
r
.
ReqKey
=
strings
.
TrimSuffix
(
strings
.
Replace
(
r
.
ReqKey
,
"jimeng_v30"
,
"jimeng_i2v_first_v30"
,
1
),
"p"
)
}
else
{
}
else
{
...
...
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