fix: HY-Image-V3.0改为async+query双端点(/api/image/submit+query)
This commit is contained in:
parent
96bf6c4394
commit
8b48b286f7
@ -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_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';
|
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
|
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"}',
|
'{"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%}}',
|
'{"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')
|
'hunyuan_image_io','5QXZ-AMP0K0NrcpZiTomA')
|
||||||
ON DUPLICATE KEY UPDATE data=VALUES(data),response=VALUES(response),path=VALUES(path);
|
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 =====================
|
-- ===================== Part 5: pricing_program =====================
|
||||||
INSERT INTO pricing_program (id,name,ownerid,providerid,pricing_belong,description) VALUES
|
INSERT INTO pricing_program (id,name,ownerid,providerid,pricing_belong,description) VALUES
|
||||||
('pp_hunyuan_hy3','混元Hy3旗舰对话',NULL,'wNME9nrITooowlmCuR_XB',NULL,'295B参数·128K上下文·按token计费'),
|
('pp_hunyuan_hy3','混元Hy3旗舰对话',NULL,'wNME9nrITooowlmCuR_XB',NULL,'295B参数·128K上下文·按token计费'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user