Files
new-api/plugins/jimeng_responses_test.go
T

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",
})
}