From 96bf6c439484fa2a475d0100a8215e5f64990fc3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Jul 2026 17:17:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20HY-Image-V3.0=E4=BF=AE=E6=AD=A3=E4=B8=BA?= =?UTF-8?q?tokenhub=E5=AE=98=E6=96=B9=E7=AB=AF=E7=82=B9/api/image/submit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/hunyuan_models_migration.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/hunyuan_models_migration.sql b/scripts/hunyuan_models_migration.sql index bb70d016..9572815b 100644 --- a/scripts/hunyuan_models_migration.sql +++ b/scripts/hunyuan_models_migration.sql @@ -46,12 +46,12 @@ UPDATE uapi SET ioid='hunyuan_vision_io' WHERE id='qStjXm_Meu0nBjiRzdPew' AND up -- ===================== Part 4: image uapi (tokenhub) ===================== INSERT INTO uapi (id,name,title,description,need_auth,stream,path,httpmethod,headers,data,response,ioid,upappid) VALUES -('uapi_hunyuan_tokenhub_image','hunyuan-image-tokenhub','混元Image','Hunyuan Image via TokenHub','0','async','/images/generations','POST', +('uapi_hunyuan_tokenhub_image','hunyuan-image-tokenhub','混元Image','混元生图3.0 via TokenHub','0','async','/api/image/submit','POST', '{"Content-Type":"application/json"}', -'{"model":"{{model}}","prompt":{{json.dumps(prompt,ensure_ascii=False)}}{%if size%},"size":"{{size}}"{%endif%}{%if n%},"n":{{n}}{%endif%}}', +'{"model":"{{model}}","prompt":{{json.dumps(prompt,ensure_ascii=False)}}{%if image_file%},"images":["{{image_file}}"]{%endif%}{%if n%},"n":{{n}}{%endif%}{%if size%},"size":"{{size}}"{%endif%}}', '{"taskid":"{{id}}","taskstatus":"PENDING","status":"PENDING"}', 'hunyuan_image_io','5QXZ-AMP0K0NrcpZiTomA') -ON DUPLICATE KEY UPDATE data=VALUES(data),response=VALUES(response); +ON DUPLICATE KEY UPDATE data=VALUES(data),response=VALUES(response),path=VALUES(path); -- ===================== Part 5: pricing_program ===================== INSERT INTO pricing_program (id,name,ownerid,providerid,pricing_belong,description) VALUES