feat(models): 统一模型规格价格与路由
This commit is contained in:
1 parent
d268a938e5
commit
236b850177
36 files changed
+3404
-421
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package service
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestModelRequestIntentNormalizesVideoResolution(t *testing.T) {
|
||||
input := map[string]any{
|
||||
"mode": "video",
|
||||
"config": map[string]any{"vquality": "480", "videoSeconds": "6", "size": "16:9"},
|
||||
}
|
||||
intent := ModelRequestIntentFromTaskInput(input, "video_generate", "text_to_video")
|
||||
if got := intent.Options["vquality"]; got != "480p" {
|
||||
t.Fatalf("vquality = %#v, want 480p", got)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user