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
26 lines
591 B
Go
26 lines
591 B
Go
package plugins_test
|
|
|
|
import "testing"
|
|
|
|
func TestSoraResponsesProtocol(t *testing.T) {
|
|
testVideoResponsesProtocol(t, videoResponsesTestCase{
|
|
pluginKey: "sora",
|
|
model: "sora-2-pro",
|
|
requestBody: map[string]any{
|
|
"model": "sora-2-pro",
|
|
"input": "waves at sunset",
|
|
"seconds": 8,
|
|
"size": "1792x1024",
|
|
},
|
|
wantAction: "text_to_video",
|
|
wantRequest: map[string]any{
|
|
"model": "sora-2-pro",
|
|
"prompt": "waves at sunset",
|
|
"seconds": float64(8),
|
|
"size": "1792x1024",
|
|
},
|
|
wantUsageKeys: []string{"seconds", "size"},
|
|
wantVendorName: "sora",
|
|
})
|
|
}
|