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
3b5d1daf
authored
Mar 09, 2026
by
Calcium-Ion
Committed by
GitHub
Mar 09, 2026
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3148 from feitianbubu/pr/d8a25d36204224f8a4248b0ab3b03ba703796ea3
fix: kling risk fail return openAIVideo error
parents
d67f446b
2e20ede2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
relay/channel/task/kling/adaptor.go
+7
-0
No files found.
relay/channel/task/kling/adaptor.go
View file @
3b5d1daf
...
...
@@ -405,5 +405,12 @@ func (a *TaskAdaptor) ConvertToOpenAIVideo(originTask *model.Task) ([]byte, erro
Code
:
fmt
.
Sprintf
(
"%d"
,
klingResp
.
Code
),
}
}
// https://app.klingai.com/cn/dev/document-api/apiReference/model/textToVideo
if
data
:=
klingResp
.
Data
;
data
.
TaskStatus
==
"failed"
{
openAIVideo
.
Error
=
&
dto
.
OpenAIVideoError
{
Message
:
data
.
TaskStatusMsg
,
}
}
return
common
.
Marshal
(
openAIVideo
)
}
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