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
dafc7618
authored
Mar 27, 2026
by
feitianbubu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add seedance fail reason
parent
22692b3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
relay/channel/task/doubao/adaptor.go
+7
-3
No files found.
relay/channel/task/doubao/adaptor.go
View file @
dafc7618
...
...
@@ -88,6 +88,10 @@ type responseTask struct {
WebSearch
int
`json:"web_search"`
}
`json:"tool_usage"`
}
`json:"usage"`
Error
struct
{
Code
string
`json:"code"`
Message
string
`json:"message"`
}
`json:"error"`
CreatedAt
int64
`json:"created_at"`
UpdatedAt
int64
`json:"updated_at"`
}
...
...
@@ -284,7 +288,7 @@ func (a *TaskAdaptor) ParseTaskResult(respBody []byte) (*relaycommon.TaskInfo, e
case
"failed"
:
taskResult
.
Status
=
model
.
TaskStatusFailure
taskResult
.
Progress
=
"100%"
taskResult
.
Reason
=
"task failed"
taskResult
.
Reason
=
resTask
.
Error
.
Message
default
:
// Unknown status, treat as processing
taskResult
.
Status
=
model
.
TaskStatusInProgress
...
...
@@ -312,8 +316,8 @@ func (a *TaskAdaptor) ConvertToOpenAIVideo(originTask *model.Task) ([]byte, erro
if
dResp
.
Status
==
"failed"
{
openAIVideo
.
Error
=
&
dto
.
OpenAIVideoError
{
Message
:
"task failed"
,
Code
:
"failed"
,
Message
:
dResp
.
Error
.
Message
,
Code
:
dResp
.
Error
.
Code
,
}
}
...
...
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