feat: publish v1.0.0-rc.36-custom.1
This commit is contained in:
commit
3a7e8f3b54
2381 files changed
+551494
No files matched your search
@@ -0,0 +1,31 @@
|
||||
package plugins_test
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestViduResponsesProtocol(t *testing.T) {
|
||||
testVideoResponsesProtocol(t, videoResponsesTestCase{
|
||||
pluginKey: "vidu",
|
||||
model: "viduq2",
|
||||
requestBody: map[string]any{
|
||||
"model": "viduq2",
|
||||
"input": []any{map[string]any{"role": "user", "content": []any{
|
||||
map[string]any{"type": "input_text", "text": "move between frames"},
|
||||
map[string]any{"type": "input_image", "image_url": "https://cdn.example/first.png"},
|
||||
map[string]any{"type": "input_image", "image_url": "https://cdn.example/last.png"},
|
||||
}}},
|
||||
"seconds": 8,
|
||||
"size": "720p",
|
||||
},
|
||||
wantAction: "first_tail_to_video",
|
||||
wantRequest: map[string]any{
|
||||
"model": "viduq2",
|
||||
"prompt": "move between frames",
|
||||
"images": []any{"https://cdn.example/first.png", "https://cdn.example/last.png"},
|
||||
"duration": float64(8),
|
||||
"size": "720p",
|
||||
},
|
||||
wantUsageKeys: []string{"credits", "duration", "resolution"},
|
||||
wantSubmitUsageKeys: []string{"duration", "resolution"},
|
||||
wantVendorName: "vidu",
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user