feat: add video channel kling fix

This commit is contained in:
skynono
2025-06-19 11:53:47 +08:00
parent d7ed0214ad
commit aaf7c88e0b
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ func (a *TaskAdaptor) BuildRequestURL(info *relaycommon.TaskRelayInfo) (string,
func (a *TaskAdaptor) BuildRequestHeader(c *gin.Context, req *http.Request, info *relaycommon.TaskRelayInfo) error {
token, err := a.createJWTToken()
if err != nil {
token = info.ApiKey // fallback
return fmt.Errorf("failed to create JWT token: %w", err)
}
req.Header.Set("Content-Type", "application/json")