Add Kling provider support (#3742)

Signed-off-by: wydream <yaodiwu618@gmail.com>
This commit is contained in:
woody
2026-05-14 16:18:00 +08:00
committed by GitHub
parent b032f344e6
commit a93847e07f
9 changed files with 1910 additions and 5 deletions

View File

@@ -83,6 +83,15 @@ func RunMapRequestPathByCapabilityTests(t *testing.T) {
},
expected: "/v1/videos/video-xyz",
},
{
name: "video placeholder is replaced in nested provider path",
apiName: "openai/v1/retrievevideo",
origin: "/openai/v1/videos/video-xyz",
mapping: map[string]string{
"openai/v1/retrievevideo": "/v1/videos/text2video/{video_id}",
},
expected: "/v1/videos/text2video/video-xyz",
},
{
name: "video content placeholder with query",
apiName: "openai/v1/retrievevideocontent",