-- ============================================================
-- HappyHorse + image model name 修复
-- upstream aliyun 不认识中文模型名，需用英文 model identifier
-- ============================================================

-- t2v (HappyHorse 文生视频)
UPDATE uapi SET data = REPLACE(data, '"model": "{{model}}"', '"model": "happyhorse-1.0-t2v"')
WHERE name='t2v' AND upappid='tongyi-wan';

-- wan2.7-image-pro
UPDATE uapi SET data = REPLACE(data, '"model": "{{model}}"', '"model": "wan2.7-image-pro"')
WHERE name='wan2.7-image-sync' AND upappid='tongyi-wan';
