feat: publish v1.0.0-rc.36-custom.1
Publish Docker image (Multi-arch) / Build & push (amd64) (push) Failing after 9m20s
Release (Linux, macOS, Windows) / Linux Release (push) Failing after 55m7s
Publish Docker image (Multi-arch) / Build & push (arm64) (push) Canceled after 0s
Release (Linux, macOS, Windows) / macOS Release (push) Canceled after 0s
Release (Linux, macOS, Windows) / Windows Release (push) Canceled after 0s
Publish Docker image (Multi-arch) / Create multi-arch manifests (push) Canceled after 0s
Publish Docker image (Multi-arch) / Build & push (amd64) (push) Failing after 9m20s
Release (Linux, macOS, Windows) / Linux Release (push) Failing after 55m7s
Publish Docker image (Multi-arch) / Build & push (arm64) (push) Canceled after 0s
Release (Linux, macOS, Windows) / macOS Release (push) Canceled after 0s
Release (Linux, macOS, Windows) / Windows Release (push) Canceled after 0s
Publish Docker image (Multi-arch) / Create multi-arch manifests (push) Canceled after 0s
This commit is contained in:
commit
bb7968b612
2381 files changed
+551494
No files matched your search
@@ -0,0 +1,31 @@
|
||||
package plugins_test
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestKlingResponsesProtocol(t *testing.T) {
|
||||
testVideoResponsesProtocol(t, videoResponsesTestCase{
|
||||
pluginKey: "kling",
|
||||
model: "kling-v2-master",
|
||||
requestBody: map[string]any{
|
||||
"model": "kling-v2-master",
|
||||
"input": []any{map[string]any{"role": "user", "content": []any{
|
||||
map[string]any{"type": "input_text", "text": "camera orbit"},
|
||||
map[string]any{"type": "input_image", "image_url": "https://cdn.example/frame.png"},
|
||||
}}},
|
||||
"seconds": 10,
|
||||
"metadata": map[string]any{
|
||||
"mode": "pro",
|
||||
},
|
||||
},
|
||||
wantAction: "image_to_video",
|
||||
wantRequest: map[string]any{
|
||||
"model": "kling-v2-master",
|
||||
"prompt": "camera orbit",
|
||||
"image": "https://cdn.example/frame.png",
|
||||
"duration": float64(10),
|
||||
"metadata": map[string]any{"mode": "pro"},
|
||||
},
|
||||
wantUsageKeys: []string{"units"},
|
||||
wantVendorName: "kling",
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user