feat: channel kling support New API

This commit is contained in:
feitianbubu
2025-07-21 15:06:26 +08:00
parent 4d0037a40c
commit fcc006ecd3
6 changed files with 66 additions and 43 deletions

View File

@@ -150,7 +150,7 @@ func Path2RelayKling(method, path string) int {
relayMode := RelayModeUnknown
if method == http.MethodPost && strings.HasSuffix(path, "/video/generations") {
relayMode = RelayModeKlingSubmit
} else if method == http.MethodGet && strings.Contains(path, "/video/generations/") {
} else if method == http.MethodGet && (strings.Contains(path, "/video/generations")) {
relayMode = RelayModeKlingFetchByID
}
return relayMode