Compare commits
No commits in common. "8b48b286f75ee254b87abd24b378d9b709248b65" and "a5d06c80854caedd5287eaa727d5fea4f50836b5" have entirely different histories.
8b48b286f7
...
a5d06c8085
@ -44,24 +44,14 @@ 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, async + query) =====================
|
||||
-- ===================== 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','混元生图3.0','混元生图3.0异步提交','0','async','/api/image/submit','POST',
|
||||
('uapi_hunyuan_tokenhub_image','hunyuan-image-tokenhub','混元Image','Hunyuan Image via TokenHub','0','async','/images/generations','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":"{{status}}","status":"{{status}}"}',
|
||||
'{"model":"{{model}}","prompt":{{json.dumps(prompt,ensure_ascii=False)}}{%if size%},"size":"{{size}}"{%endif%}{%if n%},"n":{{n}}{%endif%}}',
|
||||
'{"taskid":"{{id}}","taskstatus":"PENDING","status":"PENDING"}',
|
||||
'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';
|
||||
ON DUPLICATE KEY UPDATE data=VALUES(data),response=VALUES(response);
|
||||
|
||||
-- ===================== Part 5: pricing_program =====================
|
||||
INSERT INTO pricing_program (id,name,ownerid,providerid,pricing_belong,description) VALUES
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user