mirror of
https://github.com/alibaba/higress.git
synced 2026-05-24 04:37:25 +08:00
Add Kling provider support (#3742)
Signed-off-by: wydream <yaodiwu618@gmail.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user