Files
new-api-custom/plugins/doubao_responses_test.go
T
Codex bb7968b612
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
feat: publish v1.0.0-rc.36-custom.1
2026-09-11 05:07:48 +08:00

32 lines
951 B
Go

package plugins_test
import "testing"
func TestDoubaoResponsesProtocol(t *testing.T) {
testVideoResponsesProtocol(t, videoResponsesTestCase{
pluginKey: "doubao",
model: "doubao-seedance-2-0-260128",
requestBody: map[string]any{
"model": "doubao-seedance-2-0-260128",
"input": []any{map[string]any{"role": "user", "content": []any{
map[string]any{"type": "input_text", "text": "a running fox"},
map[string]any{"type": "input_image", "image_url": "https://cdn.example/frame.png"},
}}},
"seconds": 6,
"size": "1920x1080",
},
wantAction: "image_to_video",
wantRequest: map[string]any{
"model": "doubao-seedance-2-0-260128",
"prompt": "a running fox",
"images": []any{"https://cdn.example/frame.png"},
"seconds": float64(6),
"metadata": map[string]any{
"resolution": "1080p",
},
},
wantUsageKeys: []string{"resolution", "tokens", "video_input"},
wantVendorName: "doubao",
})
}