mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-09 03:28:15 +00:00
28 lines
714 B
Go
28 lines
714 B
Go
package plugins_test
|
|
|
|
import "testing"
|
|
|
|
func TestJimengResponsesProtocol(t *testing.T) {
|
|
testVideoResponsesProtocol(t, videoResponsesTestCase{
|
|
pluginKey: "jimeng",
|
|
model: "jimeng_vgfm_t2v_l20",
|
|
requestBody: map[string]any{
|
|
"model": "jimeng_vgfm_t2v_l20",
|
|
"input": "a paper boat on a river",
|
|
"seconds": 10,
|
|
"metadata": map[string]any{
|
|
"aspect_ratio": "16:9",
|
|
},
|
|
},
|
|
wantAction: "text_to_video",
|
|
wantRequest: map[string]any{
|
|
"model": "jimeng_vgfm_t2v_l20",
|
|
"prompt": "a paper boat on a river",
|
|
"duration": float64(10),
|
|
"metadata": map[string]any{"aspect_ratio": "16:9"},
|
|
},
|
|
wantUsageKeys: []string{"product", "seconds"},
|
|
wantVendorName: "jimeng",
|
|
})
|
|
}
|