feat(task): replace built-in task adaptors with a sandboxed JS plugin system (#7076)

This commit is contained in:
Calcium-Ion
2026-08-29 18:51:57 +08:00
committed by GitHub
parent 7037ac15bd
commit eb48396d5f
336 changed files with 52333 additions and 6369 deletions
+25
View File
@@ -0,0 +1,25 @@
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",
})
}