model.openapi.json 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "默认模块",
  5. "description": "",
  6. "version": "1.0.0"
  7. },
  8. "servers": [
  9. {
  10. "url": "/",
  11. "description": "默认服务器"
  12. }
  13. ],
  14. "tags": [
  15. {
  16. "name": "ai-model",
  17. "description": "模型管理相关接口"
  18. },
  19. {
  20. "name": "ollama",
  21. "description": "ollama相关接口"
  22. }
  23. ],
  24. "paths": {
  25. "/api/ai/model/providers": {
  26. "post": {
  27. "summary": "根据模型类型获取支持的服务商列表及配置信息",
  28. "deprecated": false,
  29. "description": "",
  30. "tags": ["ai-model"],
  31. "parameters": [
  32. {
  33. "name": "Authorization",
  34. "in": "header",
  35. "description": "",
  36. "example": "bpm_client_1500870842102321152",
  37. "schema": {
  38. "type": "string",
  39. "default": "bpm_client_1500870842102321152"
  40. }
  41. }
  42. ],
  43. "requestBody": {
  44. "content": {
  45. "application/json": {
  46. "schema": {
  47. "type": "object",
  48. "properties": {
  49. "model_type": {
  50. "type": "string"
  51. }
  52. },
  53. "required": ["model_type"]
  54. },
  55. "example": {
  56. "keyword": "",
  57. "type": "",
  58. "source": "",
  59. "pageIndex": 1,
  60. "pageSize": 20
  61. }
  62. }
  63. },
  64. "required": true
  65. },
  66. "responses": {
  67. "200": {
  68. "description": "",
  69. "content": {
  70. "application/json": {
  71. "schema": {
  72. "type": "object",
  73. "properties": {
  74. "isSuccess": {
  75. "type": "boolean"
  76. },
  77. "code": {
  78. "type": "integer"
  79. },
  80. "result": {
  81. "type": "array",
  82. "items": {
  83. "type": "object",
  84. "properties": {
  85. "defaultUrls": {
  86. "type": "object",
  87. "properties": {
  88. "chat": {
  89. "type": "string"
  90. },
  91. "embedding": {
  92. "type": "string"
  93. },
  94. "rerank": {
  95. "type": "string"
  96. },
  97. "vllm": {
  98. "type": "string"
  99. }
  100. },
  101. "required": ["chat", "embedding", "rerank", "vllm"]
  102. },
  103. "description": {
  104. "type": "string"
  105. },
  106. "label": {
  107. "type": "string"
  108. },
  109. "modelTypes": {
  110. "type": "array",
  111. "items": {
  112. "type": "string"
  113. }
  114. },
  115. "value": {
  116. "type": "string"
  117. }
  118. },
  119. "required": ["defaultUrls", "description", "label", "modelTypes", "value"]
  120. }
  121. },
  122. "isAuthorized": {
  123. "type": "boolean"
  124. }
  125. },
  126. "required": ["isSuccess", "code", "result", "isAuthorized"]
  127. },
  128. "example": {
  129. "isSuccess": true,
  130. "code": 1,
  131. "result": [
  132. {
  133. "defaultUrls": {},
  134. "description": "Generic API endpoint (OpenAI-compatible)",
  135. "label": "自定义 (OpenAI兼容接口)",
  136. "modelTypes": ["chat", "embedding", "rerank", "vllm", "asr"],
  137. "value": "generic"
  138. },
  139. {
  140. "defaultUrls": {
  141. "chat": "https://weknora.weixin.qq.com",
  142. "embedding": "https://weknora.weixin.qq.com",
  143. "rerank": "https://weknora.weixin.qq.com",
  144. "vllm": "https://weknora.weixin.qq.com"
  145. },
  146. "description": "WeKnora云服务,模型:chat, embedding, rerank, vlm",
  147. "label": "WeKnoraCloud",
  148. "modelTypes": ["chat", "embedding", "rerank", "vllm"],
  149. "value": "weknoracloud"
  150. },
  151. {
  152. "defaultUrls": {
  153. "chat": "https://dashscope.aliyuncs.com/compatible-mode/v1",
  154. "embedding": "https://dashscope.aliyuncs.com/compatible-mode/v1",
  155. "rerank": "https://dashscope.aliyuncs.com/api/v1/services/rerank/text-rerank/text-rerank",
  156. "vllm": "https://dashscope.aliyuncs.com/compatible-mode/v1"
  157. },
  158. "description": "qwen-plus, tongyi-embedding-vision-plus, qwen3-rerank, etc.",
  159. "label": "阿里云 DashScope",
  160. "modelTypes": ["chat", "embedding", "rerank", "vllm"],
  161. "value": "aliyun"
  162. },
  163. {
  164. "defaultUrls": {
  165. "chat": "https://open.bigmodel.cn/api/paas/v4",
  166. "embedding": "https://open.bigmodel.cn/api/paas/v4",
  167. "rerank": "https://open.bigmodel.cn/api/paas/v4/rerank",
  168. "vllm": "https://open.bigmodel.cn/api/paas/v4"
  169. },
  170. "description": "glm-4.7, embedding-3, rerank, etc.",
  171. "label": "智谱 BigModel",
  172. "modelTypes": ["chat", "embedding", "rerank", "vllm"],
  173. "value": "zhipu"
  174. },
  175. {
  176. "defaultUrls": {
  177. "chat": "https://ark.cn-beijing.volces.com/api/v3",
  178. "embedding": "https://ark.cn-beijing.volces.com/api/v3/embeddings/multimodal",
  179. "vllm": "https://ark.cn-beijing.volces.com/api/v3"
  180. },
  181. "description": "doubao-1-5-pro-32k-250115, doubao-embedding-vision-250615, etc.",
  182. "label": "火山引擎 Volcengine",
  183. "modelTypes": ["chat", "embedding", "vllm"],
  184. "value": "volcengine"
  185. },
  186. {
  187. "defaultUrls": {
  188. "chat": "https://api.hunyuan.cloud.tencent.com/v1",
  189. "embedding": "https://api.hunyuan.cloud.tencent.com/v1"
  190. },
  191. "description": "hunyuan-pro, hunyuan-standard, hunyuan-embedding, etc.",
  192. "label": "腾讯混元 Hunyuan",
  193. "modelTypes": ["chat", "embedding"],
  194. "value": "hunyuan"
  195. },
  196. {
  197. "defaultUrls": {
  198. "chat": "https://api.siliconflow.cn/v1",
  199. "embedding": "https://api.siliconflow.cn/v1",
  200. "rerank": "https://api.siliconflow.cn/v1",
  201. "vllm": "https://api.siliconflow.cn/v1"
  202. },
  203. "description": "deepseek-ai/DeepSeek-V3.1, etc.",
  204. "label": "硅基流动 SiliconFlow",
  205. "modelTypes": ["chat", "embedding", "rerank", "vllm", "asr"],
  206. "value": "siliconflow"
  207. },
  208. {
  209. "defaultUrls": {
  210. "chat": "https://api.deepseek.com/v1"
  211. },
  212. "description": "deepseek-chat, deepseek-reasoner, etc.",
  213. "label": "DeepSeek",
  214. "modelTypes": ["chat"],
  215. "value": "deepseek"
  216. },
  217. {
  218. "defaultUrls": {
  219. "chat": "https://api.minimaxi.com/v1"
  220. },
  221. "description": "MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5, etc.",
  222. "label": "MiniMax",
  223. "modelTypes": ["chat"],
  224. "value": "minimax"
  225. },
  226. {
  227. "defaultUrls": {
  228. "chat": "https://api.moonshot.ai/v1",
  229. "vllm": "https://api.moonshot.ai/v1"
  230. },
  231. "description": "kimi-k2-turbo-preview, moonshot-v1-8k-vision-preview, etc.",
  232. "label": "月之暗面 Moonshot",
  233. "modelTypes": ["chat", "vllm"],
  234. "value": "moonshot"
  235. },
  236. {
  237. "defaultUrls": {
  238. "chat": "https://api-inference.modelscope.cn/v1",
  239. "embedding": "https://api-inference.modelscope.cn/v1",
  240. "vllm": "https://api-inference.modelscope.cn/v1"
  241. },
  242. "description": "Qwen/Qwen3-8B, Qwen/Qwen3-Embedding-8B, etc.",
  243. "label": "魔搭 ModelScope",
  244. "modelTypes": ["chat", "embedding", "vllm"],
  245. "value": "modelscope"
  246. },
  247. {
  248. "defaultUrls": {
  249. "chat": "https://qianfan.baidubce.com/v2",
  250. "embedding": "https://qianfan.baidubce.com/v2",
  251. "rerank": "https://qianfan.baidubce.com/v2",
  252. "vllm": "https://qianfan.baidubce.com/v2"
  253. },
  254. "description": "ernie-5.0-thinking-preview, embedding-v1, bce-reranker-base, etc.",
  255. "label": "百度千帆 Baidu Cloud",
  256. "modelTypes": ["chat", "embedding", "rerank", "vllm"],
  257. "value": "qianfan"
  258. },
  259. {
  260. "defaultUrls": {
  261. "chat": "https://api.qnaigc.com/v1"
  262. },
  263. "description": "deepseek/deepseek-v3.2-251201, z-ai/glm-4.7, etc.",
  264. "label": "七牛云 Qiniu",
  265. "modelTypes": ["chat"],
  266. "value": "qiniu"
  267. },
  268. {
  269. "defaultUrls": {
  270. "chat": "https://api.openai.com/v1",
  271. "embedding": "https://api.openai.com/v1",
  272. "rerank": "https://api.openai.com/v1",
  273. "vllm": "https://api.openai.com/v1"
  274. },
  275. "description": "gpt-5.2, gpt-5-mini, etc.",
  276. "label": "OpenAI",
  277. "modelTypes": ["chat", "embedding", "rerank", "vllm", "asr"],
  278. "value": "openai"
  279. },
  280. {
  281. "defaultUrls": {
  282. "chat": "https://generativelanguage.googleapis.com/v1beta/openai"
  283. },
  284. "description": "gemini-3-flash-preview, gemini-2.5-pro, etc.",
  285. "label": "Google Gemini",
  286. "modelTypes": ["chat"],
  287. "value": "gemini"
  288. },
  289. {
  290. "defaultUrls": {
  291. "chat": "https://openrouter.ai/api/v1",
  292. "embedding": "https://openrouter.ai/api/v1",
  293. "vllm": "https://openrouter.ai/api/v1"
  294. },
  295. "description": "openai/gpt-5.2-chat, google/gemini-3-flash-preview, etc.",
  296. "label": "OpenRouter",
  297. "modelTypes": ["chat", "embedding", "vllm"],
  298. "value": "openrouter"
  299. },
  300. {
  301. "defaultUrls": {
  302. "embedding": "https://api.jina.ai/v1",
  303. "rerank": "https://api.jina.ai/v1"
  304. },
  305. "description": "jina-clip-v1, jina-embeddings-v2-base-zh, etc.",
  306. "label": "Jina",
  307. "modelTypes": ["embedding", "rerank"],
  308. "value": "jina"
  309. },
  310. {
  311. "defaultUrls": {
  312. "chat": "https://api.xiaomimimo.com/v1"
  313. },
  314. "description": "mimo-v2-flash",
  315. "label": "小米 MiMo",
  316. "modelTypes": ["chat"],
  317. "value": "mimo"
  318. },
  319. {
  320. "defaultUrls": {
  321. "chat": "https://api.longcat.chat/openai/v1"
  322. },
  323. "description": "LongCat-Flash-Chat, LongCat-Flash-Thinking, etc.",
  324. "label": "LongCat AI",
  325. "modelTypes": ["chat"],
  326. "value": "longcat"
  327. },
  328. {
  329. "defaultUrls": {
  330. "chat": "https://api.lkeap.cloud.tencent.com/v1"
  331. },
  332. "description": "DeepSeek-R1, DeepSeek-V3 系列模型,支持思维链",
  333. "label": "腾讯云 LKEAP",
  334. "modelTypes": ["chat"],
  335. "value": "lkeap"
  336. },
  337. {
  338. "defaultUrls": {
  339. "chat": "http://your_gpustack_server_url/v1-openai",
  340. "embedding": "http://your_gpustack_server_url/v1-openai",
  341. "rerank": "http://your_gpustack_server_url/v1",
  342. "vllm": "http://your_gpustack_server_url/v1-openai"
  343. },
  344. "description": "Choose your deployed model on GPUStack",
  345. "label": "GPUStack",
  346. "modelTypes": ["chat", "embedding", "rerank", "vllm", "asr"],
  347. "value": "gpustack"
  348. },
  349. {
  350. "defaultUrls": {
  351. "chat": "https://integrate.api.nvidia.com/v1",
  352. "embedding": "https://integrate.api.nvidia.com/v1",
  353. "rerank": "https://ai.api.nvidia.com/v1/retrieval/nvidia/reranking",
  354. "vllm": "https://integrate.api.nvidia.com/v1"
  355. },
  356. "description": "deepseek-ai-deepseek-v3_1, nv-embed-v1, rerank-qa-mistral-4b, etc.",
  357. "label": "NVIDIA",
  358. "modelTypes": ["chat", "embedding", "rerank", "vllm"],
  359. "value": "nvidia"
  360. },
  361. {
  362. "defaultUrls": {
  363. "chat": "https://api.novita.ai/openai/v1",
  364. "embedding": "https://api.novita.ai/openai/v1",
  365. "vllm": "https://api.novita.ai/openai/v1"
  366. },
  367. "description": "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.7, qwen/qwen3-embedding-0.6b, etc.",
  368. "label": "Novita AI",
  369. "modelTypes": ["chat", "embedding", "vllm"],
  370. "value": "novita"
  371. },
  372. {
  373. "defaultUrls": {
  374. "chat": "https://{resource}.openai.azure.com",
  375. "embedding": "https://{resource}.openai.azure.com",
  376. "rerank": "https://{resource}.openai.azure.com",
  377. "vllm": "https://{resource}.openai.azure.com"
  378. },
  379. "description": "gpt-4o, gpt-4, text-embedding-ada-002, etc.",
  380. "label": "Azure OpenAI",
  381. "modelTypes": ["chat", "embedding", "vllm", "asr"],
  382. "value": "azure_openai"
  383. }
  384. ],
  385. "isAuthorized": true
  386. }
  387. }
  388. },
  389. "headers": {}
  390. }
  391. },
  392. "security": []
  393. }
  394. },
  395. "/api/ai/model/pageList": {
  396. "post": {
  397. "summary": "获取模型分页列表",
  398. "deprecated": false,
  399. "description": "",
  400. "tags": ["ai-model"],
  401. "parameters": [
  402. {
  403. "name": "Authorization",
  404. "in": "header",
  405. "description": "",
  406. "example": "bpm_client_1500870842102321152",
  407. "schema": {
  408. "type": "string",
  409. "default": "bpm_client_1500870842102321152"
  410. }
  411. }
  412. ],
  413. "requestBody": {
  414. "content": {
  415. "application/json": {
  416. "schema": {
  417. "type": "object",
  418. "properties": {
  419. "keyword": {
  420. "type": "string"
  421. },
  422. "type": {
  423. "type": "string"
  424. },
  425. "source": {
  426. "type": "string"
  427. },
  428. "pageIndex": {
  429. "type": "integer"
  430. },
  431. "pageSize": {
  432. "type": "integer"
  433. }
  434. },
  435. "required": ["keyword", "type", "source", "pageIndex", "pageSize"]
  436. },
  437. "example": {
  438. "keyword": "",
  439. "type": "",
  440. "source": "",
  441. "pageIndex": 1,
  442. "pageSize": 20
  443. }
  444. }
  445. },
  446. "required": true
  447. },
  448. "responses": {
  449. "200": {
  450. "description": "",
  451. "content": {
  452. "application/json": {
  453. "schema": {
  454. "type": "object",
  455. "properties": {
  456. "isSuccess": {
  457. "type": "boolean"
  458. },
  459. "code": {
  460. "type": "integer"
  461. },
  462. "result": {
  463. "type": "object",
  464. "properties": {
  465. "currentPage": {
  466. "type": "integer"
  467. },
  468. "hasNextPage": {
  469. "type": "boolean"
  470. },
  471. "hasPreviousPage": {
  472. "type": "boolean"
  473. },
  474. "model": {
  475. "type": "array",
  476. "items": {
  477. "type": "object",
  478. "properties": {
  479. "creationTime": {
  480. "type": "string"
  481. },
  482. "creatorUserId": {
  483. "type": "string"
  484. },
  485. "description": {
  486. "type": "string"
  487. },
  488. "id": {
  489. "type": "string"
  490. },
  491. "isDeleted": {
  492. "type": "boolean"
  493. },
  494. "is_default": {
  495. "type": "boolean"
  496. },
  497. "name": {
  498. "type": "string"
  499. },
  500. "parameters": {
  501. "type": "object",
  502. "properties": {
  503. "api_key": {
  504. "type": "string"
  505. },
  506. "base_url": {
  507. "type": "string"
  508. },
  509. "embedding_parameters": {
  510. "type": "object",
  511. "properties": {
  512. "dimension": {
  513. "type": "integer"
  514. },
  515. "truncate_prompt_tokens": {
  516. "type": "integer"
  517. }
  518. },
  519. "required": ["dimension", "truncate_prompt_tokens"]
  520. },
  521. "provider": {
  522. "type": "string"
  523. }
  524. },
  525. "required": [
  526. "api_key",
  527. "base_url",
  528. "embedding_parameters",
  529. "provider"
  530. ]
  531. },
  532. "provider": {
  533. "type": "string"
  534. },
  535. "source": {
  536. "type": "string"
  537. },
  538. "status": {
  539. "type": "string"
  540. },
  541. "title": {
  542. "type": "string"
  543. },
  544. "type": {
  545. "type": "string"
  546. },
  547. "updateTime": {
  548. "type": "string"
  549. }
  550. }
  551. }
  552. },
  553. "pageSize": {
  554. "type": "integer"
  555. },
  556. "totalCount": {
  557. "type": "integer"
  558. },
  559. "totalPages": {
  560. "type": "integer"
  561. }
  562. },
  563. "required": [
  564. "currentPage",
  565. "hasNextPage",
  566. "hasPreviousPage",
  567. "model",
  568. "pageSize",
  569. "totalCount",
  570. "totalPages"
  571. ]
  572. },
  573. "isAuthorized": {
  574. "type": "boolean"
  575. }
  576. },
  577. "required": ["isSuccess", "code", "result", "isAuthorized"]
  578. },
  579. "example": {
  580. "isSuccess": true,
  581. "code": 1,
  582. "result": {
  583. "currentPage": 1,
  584. "hasNextPage": true,
  585. "hasPreviousPage": false,
  586. "model": [
  587. {
  588. "creationTime": "2026-05-10 10:53:15",
  589. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  590. "description": "火山引擎 Volcengine-vllm",
  591. "id": "20ce3d44-0f68-45e5-b30c-06df4b402ec2",
  592. "isDeleted": false,
  593. "is_default": false,
  594. "name": "ep-20260415150834-6bp4p",
  595. "parameters": {
  596. "api_key": "45991062-123b-48a7-9764-e3dc7db9b989",
  597. "base_url": "https://ark.cn-beijing.volces.com/api/v3",
  598. "embedding_parameters": {
  599. "dimension": 0,
  600. "truncate_prompt_tokens": 0
  601. },
  602. "provider": "volcengine"
  603. },
  604. "provider": "volcengine",
  605. "source": "remote",
  606. "status": "active",
  607. "title": "火山引擎 Volcengine-vllm",
  608. "type": "VLLM",
  609. "updateTime": "2026-05-10 10:53:15"
  610. }
  611. ],
  612. "pageSize": 20,
  613. "totalCount": 1,
  614. "totalPages": 1
  615. },
  616. "isAuthorized": true
  617. }
  618. }
  619. },
  620. "headers": {}
  621. }
  622. },
  623. "security": []
  624. }
  625. },
  626. "/api/ai/model/info": {
  627. "post": {
  628. "summary": "模型详情",
  629. "deprecated": false,
  630. "description": "",
  631. "tags": ["ai-model"],
  632. "parameters": [
  633. {
  634. "name": "Authorization",
  635. "in": "header",
  636. "description": "",
  637. "example": "bpm_client_1500870842102321152",
  638. "schema": {
  639. "type": "string",
  640. "default": "bpm_client_1500870842102321152"
  641. }
  642. }
  643. ],
  644. "requestBody": {
  645. "content": {
  646. "application/json": {
  647. "schema": {
  648. "type": "object",
  649. "properties": {
  650. "id": {
  651. "type": "string"
  652. }
  653. },
  654. "required": ["id"]
  655. },
  656. "example": {
  657. "id": "287edb39-8f5d-4b0c-81be-f1b7517ae08a"
  658. }
  659. }
  660. },
  661. "required": true
  662. },
  663. "responses": {
  664. "200": {
  665. "description": "",
  666. "content": {
  667. "application/json": {
  668. "schema": {
  669. "type": "object",
  670. "properties": {
  671. "isSuccess": {
  672. "type": "boolean"
  673. },
  674. "code": {
  675. "type": "integer"
  676. },
  677. "result": {
  678. "type": "object",
  679. "properties": {
  680. "creationTime": {
  681. "type": "string"
  682. },
  683. "creatorUserId": {
  684. "type": "string"
  685. },
  686. "description": {
  687. "type": "string"
  688. },
  689. "id": {
  690. "type": "string"
  691. },
  692. "isDeleted": {
  693. "type": "boolean"
  694. },
  695. "is_default": {
  696. "type": "boolean"
  697. },
  698. "name": {
  699. "type": "string"
  700. },
  701. "parameters": {
  702. "type": "object",
  703. "properties": {
  704. "api_key": {
  705. "type": "string"
  706. },
  707. "base_url": {
  708. "type": "string"
  709. },
  710. "embedding_parameters": {
  711. "type": "object",
  712. "properties": {
  713. "dimension": {
  714. "type": "integer"
  715. },
  716. "truncate_prompt_tokens": {
  717. "type": "integer"
  718. }
  719. },
  720. "required": ["dimension", "truncate_prompt_tokens"]
  721. },
  722. "provider": {
  723. "type": "string"
  724. }
  725. },
  726. "required": ["api_key", "base_url", "embedding_parameters", "provider"]
  727. },
  728. "provider": {
  729. "type": "string"
  730. },
  731. "source": {
  732. "type": "string"
  733. },
  734. "status": {
  735. "type": "string"
  736. },
  737. "title": {
  738. "type": "string"
  739. },
  740. "type": {
  741. "type": "string"
  742. },
  743. "updateTime": {
  744. "type": "string"
  745. }
  746. },
  747. "required": [
  748. "creationTime",
  749. "creatorUserId",
  750. "description",
  751. "id",
  752. "isDeleted",
  753. "is_default",
  754. "name",
  755. "parameters",
  756. "provider",
  757. "source",
  758. "status",
  759. "title",
  760. "type",
  761. "updateTime"
  762. ]
  763. },
  764. "isAuthorized": {
  765. "type": "boolean"
  766. }
  767. },
  768. "required": ["isSuccess", "code", "result", "isAuthorized"]
  769. },
  770. "example": {
  771. "isSuccess": true,
  772. "code": 1,
  773. "result": {
  774. "creationTime": "2026-05-10 18:41:24",
  775. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  776. "description": "火山引擎 Volcengine-vllm",
  777. "id": "287edb39-8f5d-4b0c-81be-f1b7517ae08a",
  778. "isDeleted": false,
  779. "is_default": false,
  780. "name": "ep-20260415150834-6bp4p",
  781. "parameters": {
  782. "api_key": "45991062-123b-48a7-9764-e3dc7db9b989",
  783. "base_url": "https://ark.cn-beijing.volces.com/api/v3",
  784. "embedding_parameters": {
  785. "dimension": 0,
  786. "truncate_prompt_tokens": 0
  787. },
  788. "provider": "volcengine"
  789. },
  790. "provider": "volcengine",
  791. "source": "remote",
  792. "status": "active",
  793. "title": "火山引擎 Volcengine-vllm",
  794. "type": "VLLM",
  795. "updateTime": "2026-05-10 18:41:24"
  796. },
  797. "isAuthorized": true
  798. }
  799. }
  800. },
  801. "headers": {}
  802. }
  803. },
  804. "security": []
  805. }
  806. },
  807. "/api/ai/model/create": {
  808. "post": {
  809. "summary": "创建模型",
  810. "deprecated": false,
  811. "description": "",
  812. "tags": ["ai-model"],
  813. "parameters": [
  814. {
  815. "name": "Authorization",
  816. "in": "header",
  817. "description": "",
  818. "example": "bpm_client_1500870842102321152",
  819. "schema": {
  820. "type": "string",
  821. "default": "bpm_client_1500870842102321152"
  822. }
  823. }
  824. ],
  825. "requestBody": {
  826. "content": {
  827. "application/json": {
  828. "schema": {
  829. "type": "object",
  830. "properties": {
  831. "name": {
  832. "type": "string"
  833. },
  834. "title": {
  835. "type": "string"
  836. },
  837. "description": {
  838. "type": "string"
  839. },
  840. "type": {
  841. "type": "string"
  842. },
  843. "source": {
  844. "type": "string"
  845. },
  846. "provider": {
  847. "type": "string"
  848. },
  849. "base_url": {
  850. "type": "string"
  851. },
  852. "api_key": {
  853. "type": "string"
  854. },
  855. "custom_headers": {
  856. "type": "object",
  857. "properties": {}
  858. }
  859. },
  860. "required": [
  861. "name",
  862. "title",
  863. "description",
  864. "type",
  865. "source",
  866. "provider",
  867. "base_url",
  868. "api_key",
  869. "custom_headers"
  870. ]
  871. },
  872. "examples": {
  873. "1": {
  874. "value": {
  875. "name": "ep-20250312153410-5vdmg",
  876. "title": "火山引擎-deepseek-v3",
  877. "description": "火山引擎-deepseek-v3",
  878. "type": "KnowledgeQA",
  879. "source": "remote",
  880. "provider": "volcengine",
  881. "base_url": "https://ark.cn-beijing.volces.com/api/v3",
  882. "api_key": "45991062-123b-48a7-9764-e3dc7db9b989",
  883. "custom_headers": {}
  884. },
  885. "summary": "对话模型"
  886. },
  887. "2": {
  888. "value": {
  889. "name": "text-embedding-v4",
  890. "title": "阿里云-embedding",
  891. "description": "阿里云-embedding",
  892. "type": "Embedding",
  893. "source": "remote",
  894. "provider": "aliyun",
  895. "base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
  896. "api_key": "sk-42e82e5b8f3a48b98ff07244989b5725",
  897. "dimension": 1024,
  898. "truncate_prompt_tokens": 0,
  899. "custom_headers": {}
  900. },
  901. "summary": "Embedding模型"
  902. },
  903. "3": {
  904. "value": {
  905. "name": "qwen3-vl-rerank",
  906. "title": "阿里云-rerank",
  907. "description": "阿里云-rerank",
  908. "type": "Rerank",
  909. "source": "remote",
  910. "provider": "aliyun",
  911. "base_url": "https://dashscope.aliyuncs.com/api/v1/services/rerank/text-rerank/text-rerank",
  912. "api_key": "sk-42e82e5b8f3a48b98ff07244989b5725",
  913. "custom_headers": {}
  914. },
  915. "summary": "Rerank模型"
  916. },
  917. "4": {
  918. "value": {
  919. "name": "ep-20260415150834-6bp4p",
  920. "title": "火山引擎 Volcengine-vllm",
  921. "description": "火山引擎 Volcengine-vllm",
  922. "type": "VLLM",
  923. "source": "remote",
  924. "provider": "volcengine",
  925. "base_url": "https://ark.cn-beijing.volces.com/api/v3",
  926. "api_key": "45991062-123b-48a7-9764-e3dc7db9b989",
  927. "custom_headers": {}
  928. },
  929. "summary": "视觉模型"
  930. }
  931. }
  932. }
  933. },
  934. "required": true
  935. },
  936. "responses": {
  937. "200": {
  938. "description": "",
  939. "content": {
  940. "application/json": {
  941. "schema": {
  942. "type": "object",
  943. "properties": {
  944. "isSuccess": {
  945. "type": "boolean"
  946. },
  947. "code": {
  948. "type": "integer"
  949. },
  950. "isAuthorized": {
  951. "type": "boolean"
  952. }
  953. },
  954. "required": ["isSuccess", "code", "isAuthorized"]
  955. },
  956. "example": {
  957. "isSuccess": true,
  958. "code": 1,
  959. "isAuthorized": true
  960. }
  961. }
  962. },
  963. "headers": {}
  964. }
  965. },
  966. "security": []
  967. }
  968. },
  969. "/api/ai/model/update": {
  970. "post": {
  971. "summary": "更新模型",
  972. "deprecated": false,
  973. "description": "",
  974. "tags": ["ai-model"],
  975. "parameters": [
  976. {
  977. "name": "Authorization",
  978. "in": "header",
  979. "description": "",
  980. "example": "bpm_client_1500870842102321152",
  981. "schema": {
  982. "type": "string",
  983. "default": "bpm_client_1500870842102321152"
  984. }
  985. }
  986. ],
  987. "requestBody": {
  988. "content": {
  989. "application/json": {
  990. "schema": {
  991. "type": "object",
  992. "properties": {
  993. "id": {
  994. "type": "string"
  995. },
  996. "name": {
  997. "type": "string"
  998. },
  999. "title": {
  1000. "type": "string"
  1001. },
  1002. "description": {
  1003. "type": "string"
  1004. },
  1005. "base_url": {
  1006. "type": "string"
  1007. },
  1008. "api_key": {
  1009. "type": "string"
  1010. },
  1011. "custom_headers": {
  1012. "type": "object",
  1013. "properties": {}
  1014. }
  1015. },
  1016. "required": [
  1017. "id",
  1018. "name",
  1019. "title",
  1020. "description",
  1021. "base_url",
  1022. "api_key",
  1023. "custom_headers"
  1024. ]
  1025. },
  1026. "examples": {
  1027. "1": {
  1028. "value": {
  1029. "id": "4d9606c9-42ac-485e-b2ce-2bf5e2b109f7",
  1030. "name": "ep-20250312153410-5vdmg",
  1031. "title": "新的火山引擎-deepseek-v3",
  1032. "description": "新的火山引擎-deepseek-v3",
  1033. "base_url": "https://ark.cn-beijing.volces.com/api/v3",
  1034. "api_key": "45991062-123b-48a7-9764-e3dc7db9b989",
  1035. "custom_headers": {}
  1036. },
  1037. "summary": "对话模型"
  1038. },
  1039. "2": {
  1040. "value": {
  1041. "id": "40be5435-929e-4c81-8f01-d3be8df4ad34",
  1042. "name": "text-embedding-v4",
  1043. "title": "阿里云-embedding",
  1044. "description": "阿里云-embedding",
  1045. "base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
  1046. "api_key": "sk-42e82e5b8f3a48b98ff07244989b5725",
  1047. "dimension": 1024,
  1048. "truncate_prompt_tokens": 0,
  1049. "custom_headers": {}
  1050. },
  1051. "summary": "Embedding模型"
  1052. },
  1053. "3": {
  1054. "value": {
  1055. "id": "211afd74-45d6-443f-969e-8624aa9f5c0a",
  1056. "name": "qwen3-vl-rerank",
  1057. "title": "阿里云-rerank",
  1058. "description": "阿里云-rerank",
  1059. "base_url": "https://dashscope.aliyuncs.com/api/v1/services/rerank/text-rerank/text-rerank",
  1060. "api_key": "sk-42e82e5b8f3a48b98ff07244989b5725",
  1061. "custom_headers": {}
  1062. },
  1063. "summary": "Rerank模型"
  1064. },
  1065. "4": {
  1066. "value": {
  1067. "id": "081412f6-d5cf-4c84-bc0d-ccaab3065d7b",
  1068. "name": "ep-20260415150834-6bp4p",
  1069. "title": "火山引擎 Volcengine-vllm",
  1070. "description": "火山引擎 Volcengine-vllm",
  1071. "base_url": "https://ark.cn-beijing.volces.com/api/v3",
  1072. "api_key": "45991062-123b-48a7-9764-e3dc7db9b989",
  1073. "custom_headers": {}
  1074. },
  1075. "summary": "视觉模型"
  1076. }
  1077. }
  1078. }
  1079. },
  1080. "required": true
  1081. },
  1082. "responses": {
  1083. "200": {
  1084. "description": "",
  1085. "content": {
  1086. "application/json": {
  1087. "schema": {
  1088. "type": "object",
  1089. "properties": {
  1090. "isSuccess": {
  1091. "type": "boolean"
  1092. },
  1093. "code": {
  1094. "type": "integer"
  1095. },
  1096. "isAuthorized": {
  1097. "type": "boolean"
  1098. }
  1099. },
  1100. "required": ["isSuccess", "code", "isAuthorized"]
  1101. },
  1102. "example": {
  1103. "isSuccess": true,
  1104. "code": 1,
  1105. "isAuthorized": true
  1106. }
  1107. }
  1108. },
  1109. "headers": {}
  1110. }
  1111. },
  1112. "security": []
  1113. }
  1114. },
  1115. "/api/ai/model/delete": {
  1116. "post": {
  1117. "summary": "删除模型",
  1118. "deprecated": false,
  1119. "description": "",
  1120. "tags": ["ai-model"],
  1121. "parameters": [
  1122. {
  1123. "name": "Authorization",
  1124. "in": "header",
  1125. "description": "",
  1126. "example": "bpm_client_1500870842102321152",
  1127. "schema": {
  1128. "type": "string",
  1129. "default": "bpm_client_1500870842102321152"
  1130. }
  1131. }
  1132. ],
  1133. "requestBody": {
  1134. "content": {
  1135. "application/json": {
  1136. "schema": {
  1137. "type": "object",
  1138. "properties": {
  1139. "id": {
  1140. "type": "string"
  1141. }
  1142. },
  1143. "required": ["id"]
  1144. },
  1145. "example": {
  1146. "id": "081412f6-d5cf-4c84-bc0d-ccaab3065d7b"
  1147. }
  1148. }
  1149. },
  1150. "required": true
  1151. },
  1152. "responses": {
  1153. "200": {
  1154. "description": "",
  1155. "content": {
  1156. "application/json": {
  1157. "schema": {
  1158. "type": "object",
  1159. "properties": {
  1160. "isSuccess": {
  1161. "type": "boolean"
  1162. },
  1163. "code": {
  1164. "type": "integer"
  1165. },
  1166. "isAuthorized": {
  1167. "type": "boolean"
  1168. }
  1169. },
  1170. "required": ["isSuccess", "code", "isAuthorized"]
  1171. },
  1172. "example": {
  1173. "isSuccess": true,
  1174. "code": 1,
  1175. "isAuthorized": true
  1176. }
  1177. }
  1178. },
  1179. "headers": {}
  1180. }
  1181. },
  1182. "security": []
  1183. }
  1184. },
  1185. "/api/ai/model/check": {
  1186. "post": {
  1187. "summary": "检查模型",
  1188. "deprecated": false,
  1189. "description": "",
  1190. "tags": ["ai-model"],
  1191. "parameters": [
  1192. {
  1193. "name": "Authorization",
  1194. "in": "header",
  1195. "description": "",
  1196. "example": "bpm_client_1500870842102321152",
  1197. "schema": {
  1198. "type": "string",
  1199. "default": "bpm_client_1500870842102321152"
  1200. }
  1201. }
  1202. ],
  1203. "requestBody": {
  1204. "content": {
  1205. "application/json": {
  1206. "schema": {
  1207. "type": "object",
  1208. "properties": {
  1209. "name": {
  1210. "type": "string"
  1211. },
  1212. "type": {
  1213. "type": "string"
  1214. },
  1215. "source": {
  1216. "type": "string"
  1217. },
  1218. "provider": {
  1219. "type": "string"
  1220. },
  1221. "api_key": {
  1222. "type": "string"
  1223. }
  1224. },
  1225. "required": ["name", "type", "source", "provider", "api_key"]
  1226. },
  1227. "examples": {
  1228. "1": {
  1229. "value": {
  1230. "name": "ep-20250312153410-5vdmg",
  1231. "type": "KnowledgeQA",
  1232. "source": "remote",
  1233. "provider": "volcengine",
  1234. "api_key": "45991062-123b-48a7-9764-e3dc7db9b989"
  1235. },
  1236. "summary": "对话模型"
  1237. },
  1238. "2": {
  1239. "value": {
  1240. "name": "text-embedding-v4",
  1241. "type": "Embedding",
  1242. "source": "remote",
  1243. "provider": "aliyun",
  1244. "api_key": "sk-42e82e5b8f3a48b98ff07244989b5725",
  1245. "dimension": 1024,
  1246. "truncate_prompt_tokens": 0
  1247. },
  1248. "summary": "Embedding模型"
  1249. },
  1250. "3": {
  1251. "value": {
  1252. "name": "qwen3-vl-rerank",
  1253. "type": "Rerank",
  1254. "source": "remote",
  1255. "provider": "aliyun",
  1256. "api_key": "sk-42e82e5b8f3a48b98ff07244989b5725"
  1257. },
  1258. "summary": "Rerank模型"
  1259. },
  1260. "4": {
  1261. "value": {
  1262. "name": "ep-20260415150834-6bp4p",
  1263. "type": "VLLM",
  1264. "source": "remote",
  1265. "provider": "volcengine",
  1266. "api_key": "45991062-123b-48a7-9764-e3dc7db9b989"
  1267. },
  1268. "summary": "视觉模型"
  1269. }
  1270. }
  1271. }
  1272. },
  1273. "required": true
  1274. },
  1275. "responses": {
  1276. "200": {
  1277. "description": "",
  1278. "content": {
  1279. "application/json": {
  1280. "schema": {
  1281. "type": "object",
  1282. "properties": {
  1283. "isSuccess": {
  1284. "type": "boolean"
  1285. },
  1286. "code": {
  1287. "type": "integer"
  1288. },
  1289. "isAuthorized": {
  1290. "type": "boolean"
  1291. },
  1292. "result": {
  1293. "type": "object"
  1294. }
  1295. },
  1296. "required": ["isSuccess", "code", "isAuthorized"]
  1297. },
  1298. "example": {
  1299. "isSuccess": true,
  1300. "code": 1,
  1301. "isAuthorized": true
  1302. }
  1303. }
  1304. },
  1305. "headers": {}
  1306. }
  1307. },
  1308. "security": []
  1309. }
  1310. },
  1311. "/api/ai/ollama/status": {
  1312. "post": {
  1313. "summary": "检查Ollama状态",
  1314. "deprecated": false,
  1315. "description": "",
  1316. "tags": ["ollama"],
  1317. "parameters": [
  1318. {
  1319. "name": "Authorization",
  1320. "in": "header",
  1321. "description": "",
  1322. "example": "bpm_client_1500870842102321152",
  1323. "schema": {
  1324. "type": "string",
  1325. "default": "bpm_client_1500870842102321152"
  1326. }
  1327. }
  1328. ],
  1329. "requestBody": {
  1330. "content": {
  1331. "application/json": {
  1332. "schema": {
  1333. "type": "object",
  1334. "properties": {}
  1335. },
  1336. "examples": {}
  1337. }
  1338. },
  1339. "required": true
  1340. },
  1341. "responses": {
  1342. "200": {
  1343. "description": "",
  1344. "content": {
  1345. "application/json": {
  1346. "schema": {
  1347. "type": "object",
  1348. "properties": {}
  1349. }
  1350. }
  1351. },
  1352. "headers": {}
  1353. }
  1354. },
  1355. "security": []
  1356. }
  1357. },
  1358. "/api/ai/ollama/models": {
  1359. "post": {
  1360. "summary": "获取模型列表",
  1361. "deprecated": false,
  1362. "description": "",
  1363. "tags": ["ollama"],
  1364. "parameters": [
  1365. {
  1366. "name": "Authorization",
  1367. "in": "header",
  1368. "description": "",
  1369. "example": "bpm_client_1500870842102321152",
  1370. "schema": {
  1371. "type": "string",
  1372. "default": "bpm_client_1500870842102321152"
  1373. }
  1374. }
  1375. ],
  1376. "requestBody": {
  1377. "content": {
  1378. "application/json": {
  1379. "schema": {
  1380. "type": "object",
  1381. "properties": {}
  1382. },
  1383. "example": {}
  1384. }
  1385. },
  1386. "required": true
  1387. },
  1388. "responses": {
  1389. "200": {
  1390. "description": "",
  1391. "content": {
  1392. "application/json": {
  1393. "schema": {
  1394. "type": "object",
  1395. "properties": {
  1396. "isSuccess": {
  1397. "type": "boolean"
  1398. },
  1399. "code": {
  1400. "type": "integer"
  1401. },
  1402. "result": {
  1403. "type": "array",
  1404. "items": {
  1405. "type": "object",
  1406. "properties": {
  1407. "digest": {
  1408. "type": "string"
  1409. },
  1410. "modified_at": {
  1411. "type": "string"
  1412. },
  1413. "name": {
  1414. "type": "string"
  1415. },
  1416. "size": {
  1417. "type": "integer"
  1418. }
  1419. }
  1420. }
  1421. },
  1422. "isAuthorized": {
  1423. "type": "boolean"
  1424. }
  1425. },
  1426. "required": ["isSuccess", "code", "result", "isAuthorized"]
  1427. },
  1428. "example": {
  1429. "isSuccess": true,
  1430. "code": 1,
  1431. "result": [
  1432. {
  1433. "digest": "baf6a787fdffd633537aa2eb51cfd54cb93ff08e28040095462bb63daf552878",
  1434. "modified_at": "2026-04-29T16:17:20.046777106Z",
  1435. "name": "llama3.2:1b",
  1436. "size": 1321098329
  1437. }
  1438. ],
  1439. "isAuthorized": true
  1440. }
  1441. }
  1442. },
  1443. "headers": {}
  1444. }
  1445. },
  1446. "security": []
  1447. }
  1448. },
  1449. "/api/ai/ollama/checkModels": {
  1450. "post": {
  1451. "summary": "批量检查模型是否可用",
  1452. "deprecated": false,
  1453. "description": "",
  1454. "tags": ["ollama"],
  1455. "parameters": [
  1456. {
  1457. "name": "Authorization",
  1458. "in": "header",
  1459. "description": "",
  1460. "example": "bpm_client_1500870842102321152",
  1461. "schema": {
  1462. "type": "string",
  1463. "default": "bpm_client_1500870842102321152"
  1464. }
  1465. }
  1466. ],
  1467. "requestBody": {
  1468. "content": {
  1469. "application/json": {
  1470. "schema": {
  1471. "type": "object",
  1472. "properties": {
  1473. "models": {
  1474. "type": "array",
  1475. "items": {
  1476. "type": "string"
  1477. }
  1478. }
  1479. },
  1480. "required": ["models"]
  1481. },
  1482. "example": {
  1483. "models": ["llama3.2:1b"]
  1484. }
  1485. }
  1486. },
  1487. "required": true
  1488. },
  1489. "responses": {
  1490. "200": {
  1491. "description": "",
  1492. "content": {
  1493. "application/json": {
  1494. "schema": {
  1495. "type": "object",
  1496. "properties": {
  1497. "isSuccess": {
  1498. "type": "boolean"
  1499. },
  1500. "code": {
  1501. "type": "integer"
  1502. },
  1503. "result": {
  1504. "type": "array",
  1505. "items": {
  1506. "type": "object",
  1507. "properties": {
  1508. "available": {
  1509. "type": "boolean"
  1510. },
  1511. "name": {
  1512. "type": "string"
  1513. }
  1514. }
  1515. }
  1516. },
  1517. "isAuthorized": {
  1518. "type": "boolean"
  1519. }
  1520. },
  1521. "required": ["isSuccess", "code", "result", "isAuthorized"]
  1522. },
  1523. "example": {
  1524. "isSuccess": true,
  1525. "code": 1,
  1526. "result": [
  1527. {
  1528. "available": true,
  1529. "name": "llama3.2:1b"
  1530. }
  1531. ],
  1532. "isAuthorized": true
  1533. }
  1534. }
  1535. },
  1536. "headers": {}
  1537. }
  1538. },
  1539. "security": []
  1540. }
  1541. },
  1542. "/api/ai/ollama/downloadModel": {
  1543. "post": {
  1544. "summary": "下载模型",
  1545. "deprecated": false,
  1546. "description": "",
  1547. "tags": ["ollama"],
  1548. "parameters": [
  1549. {
  1550. "name": "Authorization",
  1551. "in": "header",
  1552. "description": "",
  1553. "example": "bpm_client_1500870842102321152",
  1554. "schema": {
  1555. "type": "string",
  1556. "default": "bpm_client_1500870842102321152"
  1557. }
  1558. }
  1559. ],
  1560. "requestBody": {
  1561. "content": {
  1562. "application/json": {
  1563. "schema": {
  1564. "type": "object",
  1565. "properties": {
  1566. "model": {
  1567. "type": "string"
  1568. }
  1569. },
  1570. "required": ["model"]
  1571. },
  1572. "example": {
  1573. "model": "qwen3-embedding:4b"
  1574. }
  1575. }
  1576. },
  1577. "required": true
  1578. },
  1579. "responses": {
  1580. "200": {
  1581. "description": "",
  1582. "content": {
  1583. "application/json": {
  1584. "schema": {
  1585. "type": "object",
  1586. "properties": {
  1587. "isSuccess": {
  1588. "type": "boolean"
  1589. },
  1590. "code": {
  1591. "type": "integer"
  1592. },
  1593. "result": {
  1594. "type": "object",
  1595. "properties": {
  1596. "modelName": {
  1597. "type": "string"
  1598. },
  1599. "progress": {
  1600. "type": "integer"
  1601. },
  1602. "status": {
  1603. "type": "string"
  1604. },
  1605. "taskId": {
  1606. "type": "string"
  1607. }
  1608. },
  1609. "required": ["modelName", "progress", "status", "taskId"]
  1610. },
  1611. "isAuthorized": {
  1612. "type": "boolean"
  1613. }
  1614. },
  1615. "required": ["isSuccess", "code", "result", "isAuthorized"]
  1616. },
  1617. "example": {
  1618. "isSuccess": true,
  1619. "code": 1,
  1620. "result": {
  1621. "modelName": "qwen3-embedding:4b",
  1622. "progress": 0,
  1623. "status": "pending",
  1624. "taskId": "9aaad22d-3749-4d8d-9b34-9aa9d119becc"
  1625. },
  1626. "isAuthorized": true
  1627. }
  1628. }
  1629. },
  1630. "headers": {}
  1631. }
  1632. },
  1633. "security": []
  1634. }
  1635. },
  1636. "/api/ai/ollama/downloadProcess": {
  1637. "post": {
  1638. "summary": "获取下载进度",
  1639. "deprecated": false,
  1640. "description": "",
  1641. "tags": ["ollama"],
  1642. "parameters": [
  1643. {
  1644. "name": "Authorization",
  1645. "in": "header",
  1646. "description": "",
  1647. "example": "bpm_client_1500870842102321152",
  1648. "schema": {
  1649. "type": "string",
  1650. "default": "bpm_client_1500870842102321152"
  1651. }
  1652. }
  1653. ],
  1654. "requestBody": {
  1655. "content": {
  1656. "application/json": {
  1657. "schema": {
  1658. "type": "object",
  1659. "properties": {
  1660. "taskId": {
  1661. "type": "string"
  1662. }
  1663. },
  1664. "required": ["taskId"]
  1665. },
  1666. "example": {
  1667. "taskId": "9aaad22d-3749-4d8d-9b34-9aa9d119becc"
  1668. }
  1669. }
  1670. },
  1671. "required": true
  1672. },
  1673. "responses": {
  1674. "200": {
  1675. "description": "",
  1676. "content": {
  1677. "application/json": {
  1678. "schema": {
  1679. "type": "object",
  1680. "properties": {
  1681. "isSuccess": {
  1682. "type": "boolean"
  1683. },
  1684. "code": {
  1685. "type": "integer"
  1686. },
  1687. "result": {
  1688. "type": "object",
  1689. "properties": {
  1690. "id": {
  1691. "type": "string"
  1692. },
  1693. "message": {
  1694. "type": "string"
  1695. },
  1696. "modelName": {
  1697. "type": "string"
  1698. },
  1699. "progress": {
  1700. "type": "number"
  1701. },
  1702. "startTime": {
  1703. "type": "string"
  1704. },
  1705. "status": {
  1706. "type": "string"
  1707. }
  1708. },
  1709. "required": ["id", "message", "modelName", "progress", "startTime", "status"]
  1710. },
  1711. "isAuthorized": {
  1712. "type": "boolean"
  1713. }
  1714. },
  1715. "required": ["isSuccess", "code", "result", "isAuthorized"]
  1716. },
  1717. "example": {
  1718. "isSuccess": true,
  1719. "code": 1,
  1720. "result": {
  1721. "id": "9aaad22d-3749-4d8d-9b34-9aa9d119becc",
  1722. "message": "下载中: 0.3% (pulling 2b0cf8f17b4c)",
  1723. "modelName": "qwen3-embedding:4b",
  1724. "progress": 0.33791762086877225,
  1725. "startTime": "2026-05-10T17:56:51.675831455+08:00",
  1726. "status": "downloading"
  1727. },
  1728. "isAuthorized": true
  1729. }
  1730. }
  1731. },
  1732. "headers": {}
  1733. }
  1734. },
  1735. "security": []
  1736. }
  1737. },
  1738. "/api/ai/ollama/downloadTasks": {
  1739. "post": {
  1740. "summary": "获取所有下载任务列表",
  1741. "deprecated": false,
  1742. "description": "",
  1743. "tags": ["ollama"],
  1744. "parameters": [
  1745. {
  1746. "name": "Authorization",
  1747. "in": "header",
  1748. "description": "",
  1749. "example": "bpm_client_1500870842102321152",
  1750. "schema": {
  1751. "type": "string",
  1752. "default": "bpm_client_1500870842102321152"
  1753. }
  1754. }
  1755. ],
  1756. "requestBody": {
  1757. "content": {
  1758. "application/json": {
  1759. "schema": {
  1760. "type": "object",
  1761. "properties": {}
  1762. },
  1763. "example": {}
  1764. }
  1765. },
  1766. "required": true
  1767. },
  1768. "responses": {
  1769. "200": {
  1770. "description": "",
  1771. "content": {
  1772. "application/json": {
  1773. "schema": {
  1774. "type": "object",
  1775. "properties": {
  1776. "isSuccess": {
  1777. "type": "boolean"
  1778. },
  1779. "code": {
  1780. "type": "integer"
  1781. },
  1782. "result": {
  1783. "type": "array",
  1784. "items": {
  1785. "type": "object",
  1786. "properties": {
  1787. "id": {
  1788. "type": "string"
  1789. },
  1790. "message": {
  1791. "type": "string"
  1792. },
  1793. "modelName": {
  1794. "type": "string"
  1795. },
  1796. "progress": {
  1797. "type": "integer"
  1798. },
  1799. "startTime": {
  1800. "type": "string"
  1801. },
  1802. "status": {
  1803. "type": "string"
  1804. }
  1805. }
  1806. }
  1807. },
  1808. "isAuthorized": {
  1809. "type": "boolean"
  1810. }
  1811. },
  1812. "required": ["isSuccess", "code", "result", "isAuthorized"]
  1813. },
  1814. "example": {
  1815. "isSuccess": true,
  1816. "code": 1,
  1817. "result": [
  1818. {
  1819. "id": "9aaad22d-3749-4d8d-9b34-9aa9d119becc",
  1820. "message": "下载完成",
  1821. "modelName": "qwen3-embedding:4b",
  1822. "progress": 100,
  1823. "startTime": "2026-05-10T17:56:51.675831455+08:00",
  1824. "status": "completed"
  1825. }
  1826. ],
  1827. "isAuthorized": true
  1828. }
  1829. }
  1830. },
  1831. "headers": {}
  1832. }
  1833. },
  1834. "security": []
  1835. }
  1836. }
  1837. },
  1838. "components": {
  1839. "schemas": {
  1840. "AgentNode": {
  1841. "type": "object",
  1842. "properties": {
  1843. "appAgentId": {
  1844. "type": "string",
  1845. "format": "uuid"
  1846. },
  1847. "creationTime": {
  1848. "type": "string",
  1849. "format": "date-time"
  1850. },
  1851. "creatorUserId": {
  1852. "type": "string",
  1853. "format": "uuid"
  1854. },
  1855. "data": {
  1856. "$ref": "#/components/schemas/NodeData"
  1857. },
  1858. "height": {
  1859. "type": "integer"
  1860. },
  1861. "id": {
  1862. "type": "string",
  1863. "format": "uuid"
  1864. },
  1865. "isDeleted": {
  1866. "type": "boolean"
  1867. },
  1868. "position": {
  1869. "type": "object",
  1870. "properties": {
  1871. "x": {
  1872. "type": "integer"
  1873. },
  1874. "y": {
  1875. "type": "integer"
  1876. }
  1877. },
  1878. "required": ["x", "y"]
  1879. },
  1880. "selected": {
  1881. "type": "boolean"
  1882. },
  1883. "type": {
  1884. "type": "string",
  1885. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  1886. },
  1887. "updateTime": {
  1888. "type": "string",
  1889. "format": "date-time"
  1890. },
  1891. "width": {
  1892. "type": "integer"
  1893. },
  1894. "zIndex": {
  1895. "type": "integer"
  1896. }
  1897. },
  1898. "required": [
  1899. "appAgentId",
  1900. "creationTime",
  1901. "creatorUserId",
  1902. "data",
  1903. "id",
  1904. "position",
  1905. "type"
  1906. ]
  1907. },
  1908. "NodeData": {
  1909. "type": "object",
  1910. "properties": {
  1911. "outputs": {
  1912. "type": "array",
  1913. "items": {
  1914. "type": "object",
  1915. "properties": {
  1916. "name": {
  1917. "type": "string"
  1918. },
  1919. "describe": {
  1920. "type": "string"
  1921. },
  1922. "type": {
  1923. "type": "string",
  1924. "enum": ["string", "number", "boolean", "object", "array"]
  1925. }
  1926. },
  1927. "required": ["name", "describe", "type"]
  1928. }
  1929. },
  1930. "output_can_alter": {
  1931. "type": "boolean"
  1932. },
  1933. "variables": {
  1934. "type": "array",
  1935. "items": {
  1936. "type": "string"
  1937. }
  1938. },
  1939. "method": {
  1940. "type": "string",
  1941. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  1942. },
  1943. "ssl_verify": {
  1944. "type": "boolean"
  1945. },
  1946. "isInIteration": {
  1947. "type": "boolean"
  1948. },
  1949. "default_value": {
  1950. "type": "array",
  1951. "items": {
  1952. "type": "string"
  1953. }
  1954. },
  1955. "body": {
  1956. "$ref": "#/components/schemas/RequestBody"
  1957. },
  1958. "params": {
  1959. "type": "array",
  1960. "items": {
  1961. "type": "string"
  1962. }
  1963. },
  1964. "title": {
  1965. "type": "string"
  1966. },
  1967. "type": {
  1968. "type": "string",
  1969. "enum": ["http-request", "condition", "task"]
  1970. },
  1971. "error_strategy": {
  1972. "type": "string",
  1973. "enum": ["none", "retry", "abort", "continue"]
  1974. },
  1975. "retry_config": {
  1976. "type": "object",
  1977. "properties": {
  1978. "max_retries": {
  1979. "type": "integer",
  1980. "minimum": 0,
  1981. "maximum": 10
  1982. },
  1983. "retry_enabled": {
  1984. "type": "boolean"
  1985. },
  1986. "retry_interval": {
  1987. "type": "integer",
  1988. "minimum": 0,
  1989. "maximum": 5000
  1990. }
  1991. },
  1992. "required": ["max_retries", "retry_enabled", "retry_interval"]
  1993. },
  1994. "url": {
  1995. "type": "string",
  1996. "format": "uri"
  1997. },
  1998. "authorization": {
  1999. "type": "object",
  2000. "properties": {
  2001. "type": {
  2002. "type": "string",
  2003. "enum": ["none", "bearer", "basic", "api-key"]
  2004. },
  2005. "config": {
  2006. "type": "object",
  2007. "properties": {
  2008. "api_key": {
  2009. "type": "string"
  2010. },
  2011. "header": {
  2012. "type": "string"
  2013. },
  2014. "type": {
  2015. "type": "string"
  2016. }
  2017. }
  2018. }
  2019. },
  2020. "required": ["type", "config"]
  2021. },
  2022. "timeout_config": {
  2023. "type": "object",
  2024. "properties": {
  2025. "max_write_timeout": {
  2026. "type": "integer",
  2027. "minimum": 0
  2028. },
  2029. "max_read_timeout": {
  2030. "type": "integer",
  2031. "minimum": 0
  2032. },
  2033. "max_connect_timeout": {
  2034. "type": "integer",
  2035. "minimum": 0
  2036. }
  2037. },
  2038. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  2039. },
  2040. "heads": {
  2041. "type": "array",
  2042. "items": {
  2043. "$ref": "#/components/schemas/HttpHeader"
  2044. }
  2045. },
  2046. "selected": {
  2047. "type": "boolean"
  2048. },
  2049. "desc": {
  2050. "type": "string"
  2051. },
  2052. "isInLoop": {
  2053. "type": "boolean"
  2054. }
  2055. },
  2056. "required": ["outputs", "method", "title", "type", "url"]
  2057. },
  2058. "RequestBody": {
  2059. "type": "object",
  2060. "properties": {
  2061. "data": {
  2062. "type": "array",
  2063. "items": {
  2064. "$ref": "#/components/schemas/RequestDataItem"
  2065. }
  2066. },
  2067. "type": {
  2068. "type": "string",
  2069. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  2070. }
  2071. },
  2072. "required": ["data", "type"]
  2073. },
  2074. "RequestDataItem": {
  2075. "type": "object",
  2076. "properties": {
  2077. "type": {
  2078. "type": "string",
  2079. "enum": ["text", "file", "json"]
  2080. },
  2081. "value": {
  2082. "type": "string"
  2083. },
  2084. "key": {
  2085. "type": "string"
  2086. }
  2087. },
  2088. "required": ["type", "value"]
  2089. },
  2090. "HttpHeader": {
  2091. "type": "object",
  2092. "properties": {
  2093. "name": {
  2094. "type": "string"
  2095. },
  2096. "value": {
  2097. "type": "string"
  2098. }
  2099. },
  2100. "required": ["name", "value"]
  2101. }
  2102. },
  2103. "securitySchemes": {
  2104. "ApiKeyAuth": {
  2105. "type": "apiKey",
  2106. "in": "header",
  2107. "name": "Authorization"
  2108. }
  2109. }
  2110. },
  2111. "security": [
  2112. {
  2113. "ApiKeyAuth": []
  2114. }
  2115. ]
  2116. }