From 8b48b286f75ee254b87abd24b378d9b709248b65 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Jul 2026 17:17:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20HY-Image-V3.0=E6=94=B9=E4=B8=BAasync+que?= =?UTF-8?q?ry=E5=8F=8C=E7=AB=AF=E7=82=B9(/api/image/submit+query)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/hunyuan_models_migration.sql | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/scripts/hunyuan_models_migration.sql b/scripts/hunyuan_models_migration.sql index 9572815b..f2e99853 100644 --- a/scripts/hunyuan_models_migration.sql +++ b/scripts/hunyuan_models_migration.sql @@ -44,15 +44,25 @@ ON DUPLICATE KEY UPDATE description=VALUES(description),input_fields=VALUES(inpu UPDATE uapi SET ioid='hunyuan_chat_io' WHERE id='AP29-fYCll4l-byxm3DHN' AND upappid='5QXZ-AMP0K0NrcpZiTomA'; UPDATE uapi SET ioid='hunyuan_vision_io' WHERE id='qStjXm_Meu0nBjiRzdPew' AND upappid='5QXZ-AMP0K0NrcpZiTomA'; --- ===================== Part 4: image uapi (tokenhub) ===================== +-- ===================== Part 4: image uapi (tokenhub, async + query) ===================== 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','混元生图3.0 via TokenHub','0','async','/api/image/submit','POST', +('uapi_hunyuan_tokenhub_image','hunyuan-image-tokenhub','混元生图3.0','混元生图3.0异步提交','0','async','/api/image/submit','POST', '{"Content-Type":"application/json"}', '{"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"}', +'{"taskid":"{{id}}","taskstatus":"{{status}}","status":"{{status}}"}', 'hunyuan_image_io','5QXZ-AMP0K0NrcpZiTomA') ON DUPLICATE KEY UPDATE data=VALUES(data),response=VALUES(response),path=VALUES(path); +INSERT INTO uapi (id,name,title,description,need_auth,stream,path,httpmethod,headers,data,response,ioid,upappid) VALUES +('uapi_hunyuan_tokenhub_image_query','hunyuan-image-query','混元生图3.0查询','混元生图3.0任务查询','0','sync','/api/image/query','POST', +'{"Content-Type":"application/json"}', +'{"model":"{{model}}","id":"{{taskid}}"}', +'{"taskid":"{{id}}","taskstatus":"{{status}}","status":"{{status}}"{%if data%},"data":{{json.dumps(data,ensure_ascii=False)}}{%endif%}}', +'hunyuan_image_io','5QXZ-AMP0K0NrcpZiTomA') +ON DUPLICATE KEY UPDATE data=VALUES(data),response=VALUES(response),path=VALUES(path); + +UPDATE llm_api_map SET query_apiname='hunyuan-image-query', query_period='5' WHERE llmid='llm_hunyuan_image3'; + -- ===================== Part 5: pricing_program ===================== INSERT INTO pricing_program (id,name,ownerid,providerid,pricing_belong,description) VALUES ('pp_hunyuan_hy3','混元Hy3旗舰对话',NULL,'wNME9nrITooowlmCuR_XB',NULL,'295B参数·128K上下文·按token计费'),