reeval 0.13.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/README.md +5 -3
  2. package/THIRD_PARTY_NOTICES.md +190 -190
  3. package/assets/gateway-models.mjs +74 -0
  4. package/dist/{adapter-IKKo4sZj.js → adapter-CbqbMR7y.js} +55 -14
  5. package/dist/adapter-CbqbMR7y.js.map +1 -0
  6. package/dist/{agent-ClE-g9VL.js → agent-Zgn-kiqq.js} +105 -35
  7. package/dist/agent-Zgn-kiqq.js.map +1 -0
  8. package/dist/{analysis-B0nOfAzA.js → analysis-C2-aEbr7.js} +4 -4
  9. package/dist/{analysis-B0nOfAzA.js.map → analysis-C2-aEbr7.js.map} +1 -1
  10. package/dist/app-files-ChbvRx3P.js +11 -0
  11. package/dist/app-files-ChbvRx3P.js.map +1 -0
  12. package/dist/{assemble-BO93VAk1.js → assemble-SKQGW_QF.js} +213 -136
  13. package/dist/assemble-SKQGW_QF.js.map +1 -0
  14. package/dist/assemble-XBWuK3Ed.js +1 -0
  15. package/dist/{attempt-jI0OWxlz.js → attempt-Ba2QerOK.js} +10 -10
  16. package/dist/{attempt-jI0OWxlz.js.map → attempt-Ba2QerOK.js.map} +1 -1
  17. package/dist/attempt-host-BOp8JklD.js +295 -0
  18. package/dist/attempt-host-BOp8JklD.js.map +1 -0
  19. package/dist/{capture-dn2hjSLj.js → capture-BM_3100g.js} +600 -53
  20. package/dist/capture-BM_3100g.js.map +1 -0
  21. package/dist/capture-DSK8O5bA.js +1 -0
  22. package/dist/{cli-BCE1xlm4.js → cli-PdYrcoKM.js} +177 -249
  23. package/dist/cli-PdYrcoKM.js.map +1 -0
  24. package/dist/{cli-spec-BXIBUlaK.js → cli-spec-D0qyrPZi.js} +9 -21
  25. package/dist/cli-spec-D0qyrPZi.js.map +1 -0
  26. package/dist/cli.js +2 -2
  27. package/dist/{assert-EUIoRdIt.js → client-Ct6s6OnF.js} +106 -3
  28. package/dist/client-Ct6s6OnF.js.map +1 -0
  29. package/dist/{command-CANun0m0.js → command-4pJYVCT4.js} +34 -21
  30. package/dist/command-4pJYVCT4.js.map +1 -0
  31. package/dist/{validate-DWjkshl1.js → command-9xm5ImqI.js} +420 -60
  32. package/dist/command-9xm5ImqI.js.map +1 -0
  33. package/dist/{command-D_kEnYcX.js → command-BqBxLgTc.js} +33 -31
  34. package/dist/command-BqBxLgTc.js.map +1 -0
  35. package/dist/{command-Bh3yhN_b.js → command-DbSMcxZL.js} +35 -15
  36. package/dist/command-DbSMcxZL.js.map +1 -0
  37. package/dist/{commands-7tH3EsVu.js → commands-BU6YJCz9.js} +183 -71
  38. package/dist/commands-BU6YJCz9.js.map +1 -0
  39. package/dist/{commands-BKGzBMgb.js → commands-Bi2SEQtr.js} +1 -1
  40. package/dist/config-k6m7XbAz.js +3777 -0
  41. package/dist/config-k6m7XbAz.js.map +1 -0
  42. package/dist/{contrasts-B4nOhn0Z.js → contrasts-DLZF4dGF.js} +3 -2
  43. package/dist/contrasts-DLZF4dGF.js.map +1 -0
  44. package/dist/cost-C5RBTTJr.js +1 -0
  45. package/dist/cost-ChPa8-Fp.js +359 -0
  46. package/dist/cost-ChPa8-Fp.js.map +1 -0
  47. package/dist/db-CpsifVln.js +1530 -0
  48. package/dist/db-CpsifVln.js.map +1 -0
  49. package/dist/db-DkD-F-X-.js +2 -0
  50. package/dist/{debug-D24NOQH1.js → debug-BhizgAsU.js} +2 -1
  51. package/dist/{debug-D24NOQH1.js.map → debug-BhizgAsU.js.map} +1 -1
  52. package/dist/debug-DeM5pswK.js +1 -0
  53. package/dist/{dist-Dp_AJgYN.js → dist-CYrBwyHA.js} +2 -2
  54. package/dist/{dist-Dp_AJgYN.js.map → dist-CYrBwyHA.js.map} +1 -1
  55. package/dist/{docker-DuHcQidD.js → docker-51WvhN_X.js} +5 -4
  56. package/dist/docker-51WvhN_X.js.map +1 -0
  57. package/dist/{docker-CQxucRPe.js → docker-B4-rx4dA.js} +48 -14
  58. package/dist/docker-B4-rx4dA.js.map +1 -0
  59. package/dist/{docker-Dac6Zalz.js → docker-YFj4H1Cr.js} +1 -1
  60. package/dist/{doctor-De_QlOTM.js → doctor-BuQnfz4e.js} +390 -53
  61. package/dist/doctor-BuQnfz4e.js.map +1 -0
  62. package/dist/{env-BQqj93gu.js → env-CARj5Axq.js} +6 -3
  63. package/dist/env-CARj5Axq.js.map +1 -0
  64. package/dist/{environment-B4IuURK1.js → environment-BOFgzFDg.js} +117 -297
  65. package/dist/environment-BOFgzFDg.js.map +1 -0
  66. package/dist/{errors-r025B0Zb.js → errors-UjcLWelF.js} +2 -2
  67. package/dist/{errors-r025B0Zb.js.map → errors-UjcLWelF.js.map} +1 -1
  68. package/dist/eval-source-Dje3rERU.js +145 -0
  69. package/dist/eval-source-Dje3rERU.js.map +1 -0
  70. package/dist/{evaluate-Djk1YPFL.js → evaluate-BPP9s3s6.js} +406 -130
  71. package/dist/evaluate-BPP9s3s6.js.map +1 -0
  72. package/dist/evaluate-dqXccn4k.d.ts +44 -0
  73. package/dist/{files-CN1QfenC.js → files-Bi461Be2.js} +202 -91
  74. package/dist/files-Bi461Be2.js.map +1 -0
  75. package/dist/files-C2h2Cw4F.js +1 -0
  76. package/dist/files-Clipx4OW.js +37 -0
  77. package/dist/files-Clipx4OW.js.map +1 -0
  78. package/dist/files-DmUrRmmL.js +1 -0
  79. package/dist/{files-D27nUk0K.js → files-H24pz0hL.js} +20 -9
  80. package/dist/files-H24pz0hL.js.map +1 -0
  81. package/dist/gateway.d.ts +30 -0
  82. package/dist/gateway.js +39 -0
  83. package/dist/gateway.js.map +1 -0
  84. package/dist/{git-rPfl7AD1.js → git-CsVZkNNL.js} +3 -3
  85. package/dist/{git-rPfl7AD1.js.map → git-CsVZkNNL.js.map} +1 -1
  86. package/dist/harness-3NVyTSGK.js +392 -0
  87. package/dist/harness-3NVyTSGK.js.map +1 -0
  88. package/dist/harness.d.ts +33 -21
  89. package/dist/harness.js +1 -1
  90. package/dist/{images-m784ueGK.js → images-4mwhNkvh.js} +8 -8
  91. package/dist/{images-m784ueGK.js.map → images-4mwhNkvh.js.map} +1 -1
  92. package/dist/index.d.ts +34 -35
  93. package/dist/index.js +5 -6
  94. package/dist/init-BDEOopK7.js +1 -0
  95. package/dist/{init-hiTkiM4L.js → init-cOk3D44b.js} +12 -15
  96. package/dist/init-cOk3D44b.js.map +1 -0
  97. package/dist/{invocations-D_ePcwyL.js → invocations-DW-lTk2f.js} +10 -6
  98. package/dist/invocations-DW-lTk2f.js.map +1 -0
  99. package/dist/judge-CKdgEXN7.js +575 -0
  100. package/dist/judge-CKdgEXN7.js.map +1 -0
  101. package/dist/judge.d.ts +8 -9
  102. package/dist/judge.js +7 -9
  103. package/dist/judge.js.map +1 -1
  104. package/dist/{live-DYd2QEyR.js → live-XJQ6nqK4.js} +2 -2
  105. package/dist/{live-DYd2QEyR.js.map → live-XJQ6nqK4.js.map} +1 -1
  106. package/dist/{matchers-Ddmc2z7H.js → matchers-DT2TaGix.js} +2 -2
  107. package/dist/{matchers-Ddmc2z7H.js.map → matchers-DT2TaGix.js.map} +1 -1
  108. package/dist/{model-DpkclE4r.js → model-Bq3G0OG1.js} +52 -45
  109. package/dist/model-Bq3G0OG1.js.map +1 -0
  110. package/dist/{model-UgHDMhI1.js → model-CTnyvh7H.js} +345 -382
  111. package/dist/model-CTnyvh7H.js.map +1 -0
  112. package/dist/model-D-SWrLZG.js +1 -0
  113. package/dist/model-g3XnzUv0.js +1 -0
  114. package/dist/model-vRiUycWh.js +77 -0
  115. package/dist/model-vRiUycWh.js.map +1 -0
  116. package/dist/{node-CGZYh4Fj.js → node-BVbbnFtv.js} +80 -51
  117. package/dist/node-BVbbnFtv.js.map +1 -0
  118. package/dist/opencode-providers-Bz0l7OZI.js +3276 -0
  119. package/dist/opencode-providers-Bz0l7OZI.js.map +1 -0
  120. package/dist/openrouter-models-CWRwLX-G.js +34 -0
  121. package/dist/openrouter-models-CWRwLX-G.js.map +1 -0
  122. package/dist/{pairs-DP6XOJby.js → pairs-puYi-zj2.js} +17 -9
  123. package/dist/pairs-puYi-zj2.js.map +1 -0
  124. package/dist/patch-CquGAGX5.js +76 -0
  125. package/dist/patch-CquGAGX5.js.map +1 -0
  126. package/dist/{patch-uMq9rCl_.js → patch-DKJiC5Sq.js} +5 -7
  127. package/dist/patch-DKJiC5Sq.js.map +1 -0
  128. package/dist/{plan-CZYgXnZh.js → plan-DdWkM6SW.js} +118 -46
  129. package/dist/plan-DdWkM6SW.js.map +1 -0
  130. package/dist/{plugins-P-uh54VF.js → plugins-D-CP6mMd.js} +254 -18
  131. package/dist/plugins-D-CP6mMd.js.map +1 -0
  132. package/dist/{preflight-D3HvKeAx.js → preflight-9ixuXzsx.js} +3 -3
  133. package/dist/{preflight-D3HvKeAx.js.map → preflight-9ixuXzsx.js.map} +1 -1
  134. package/dist/{preflight-BQlPTHVu.js → preflight-DTiVv0gY.js} +1 -1
  135. package/dist/{prepare-Dx7dOnJB.js → prepare-BfyikQit.js} +8 -8
  136. package/dist/{prepare-Dx7dOnJB.js.map → prepare-BfyikQit.js.map} +1 -1
  137. package/dist/{prepare-DCwM2KKD.js → prepare-tmBBf4W8.js} +2 -2
  138. package/dist/prices-QaS-kjSQ.js +253 -0
  139. package/dist/prices-QaS-kjSQ.js.map +1 -0
  140. package/dist/{provenance-C_-8y-x3.js → provenance-BizwUn3h.js} +4 -4
  141. package/dist/{provenance-C_-8y-x3.js.map → provenance-BizwUn3h.js.map} +1 -1
  142. package/dist/{providers-CF5UEaP8.js → providers-B6b9Tnyi.js} +5 -5
  143. package/dist/{providers-CF5UEaP8.js.map → providers-B6b9Tnyi.js.map} +1 -1
  144. package/dist/{providers-CTBYvMxu.js → providers-DkOupEBl.js} +1 -1
  145. package/dist/query-Clm2mNSm.js +1 -0
  146. package/dist/{query-DXthKmq0.js → query-DyM-VExS.js} +3 -3
  147. package/dist/{query-DXthKmq0.js.map → query-DyM-VExS.js.map} +1 -1
  148. package/dist/questions-BRhU8MzB.js +861 -0
  149. package/dist/questions-BRhU8MzB.js.map +1 -0
  150. package/dist/{record-kk9M1hj-.js → record-DZBCjuwm.js} +6 -6
  151. package/dist/{record-kk9M1hj-.js.map → record-DZBCjuwm.js.map} +1 -1
  152. package/dist/redact-DVIaahLv.js +658 -0
  153. package/dist/redact-DVIaahLv.js.map +1 -0
  154. package/dist/remarks-BwJ8pcTQ.js +1 -0
  155. package/dist/remarks-C7i2LMRb.js +596 -0
  156. package/dist/remarks-C7i2LMRb.js.map +1 -0
  157. package/dist/{header-BVzbRnNv.js → remarks-D_3qhBWU.js} +34 -9
  158. package/dist/remarks-D_3qhBWU.js.map +1 -0
  159. package/dist/{remarks-1521zwfW.js → remarks-dA8LyoPc.js} +12 -6
  160. package/dist/remarks-dA8LyoPc.js.map +1 -0
  161. package/dist/remote-DFIzcx_6.js +273 -0
  162. package/dist/remote-DFIzcx_6.js.map +1 -0
  163. package/dist/resolve--rQZ8u6Z.js +1 -0
  164. package/dist/{resolve-DzdWcIL6.js → resolve-DWSJpKHX.js} +48 -33
  165. package/dist/resolve-DWSJpKHX.js.map +1 -0
  166. package/dist/{results-D-naai_Q.js → results-BC3pcG_Z.js} +15 -30
  167. package/dist/results-BC3pcG_Z.js.map +1 -0
  168. package/dist/{resume-8-nnW8iO.js → resume-j-rcIryi.js} +47 -17
  169. package/dist/resume-j-rcIryi.js.map +1 -0
  170. package/dist/{root-DNuLhaA5.js → root-Dlff-zp8.js} +4 -4
  171. package/dist/{root-DNuLhaA5.js.map → root-Dlff-zp8.js.map} +1 -1
  172. package/dist/{runtime-PX_oXiCS.js → runtime-d56Gg3J5.js} +42 -13
  173. package/dist/runtime-d56Gg3J5.js.map +1 -0
  174. package/dist/{sandbox-YLbk9mO7.js → sandbox-Cmln11gU.js} +2 -2
  175. package/dist/{sandbox-YLbk9mO7.js.map → sandbox-Cmln11gU.js.map} +1 -1
  176. package/dist/sandbox.d.ts +2 -1
  177. package/dist/sandbox.js +1 -1
  178. package/dist/{server-De8oH3bt.js → server-BOoH10J8.js} +69 -52
  179. package/dist/server-BOoH10J8.js.map +1 -0
  180. package/dist/server-DpuVAbrO.js +1 -0
  181. package/dist/{shared-CA61BuPJ.js → shared-B_lvGqWz.js} +20 -12
  182. package/dist/shared-B_lvGqWz.js.map +1 -0
  183. package/dist/shared-CHvO7eLi.d.ts +1 -0
  184. package/dist/source-BFd6f0-R.js +1 -0
  185. package/dist/{source-C686eZpY.js → source-wD04-rRG.js} +15 -10
  186. package/dist/source-wD04-rRG.js.map +1 -0
  187. package/dist/{src-CzQrAcF8.js → src-1lpTocbd.js} +152 -75
  188. package/dist/src-1lpTocbd.js.map +1 -0
  189. package/dist/{src-DrJSnoMR.js → src-6_zz7oJs.js} +1 -1
  190. package/dist/{src-cbCb-MPy.js → src-8yTF251P.js} +68 -22
  191. package/dist/{src-cbCb-MPy.js.map → src-8yTF251P.js.map} +1 -1
  192. package/dist/{src-Xj_BZKbq.js → src-BO8AYqJ5.js} +45 -18
  193. package/dist/src-BO8AYqJ5.js.map +1 -0
  194. package/dist/{src-DeY52Gyf.js → src-BYDOXw_Y.js} +26 -10
  195. package/dist/{src-DeY52Gyf.js.map → src-BYDOXw_Y.js.map} +1 -1
  196. package/dist/src-BYPMM1x7.js +2 -0
  197. package/dist/src-Bp4aN3rA.js +2 -0
  198. package/dist/src-C7upnZSd.js +2 -0
  199. package/dist/{src-CIpKL45U.js → src-D91Hd6hT.js} +566 -1070
  200. package/dist/src-D91Hd6hT.js.map +1 -0
  201. package/dist/src-DH-9IO7f.js +1 -0
  202. package/dist/{src-djNNYIdP.js → src-DSZyg0Uq.js} +178 -29
  203. package/dist/src-DSZyg0Uq.js.map +1 -0
  204. package/dist/{src-DIL0jST0.js → src-DgHuStEi.js} +159 -31
  205. package/dist/src-DgHuStEi.js.map +1 -0
  206. package/dist/src-HSxBazcg.js +3 -0
  207. package/dist/src-LD1BAJFa.js +2 -0
  208. package/dist/src-dlX-Lmxg.js +2 -0
  209. package/dist/{src-C7W6kg81.js → src-gn7YlnRg.js} +64 -17
  210. package/dist/{src-C7W6kg81.js.map → src-gn7YlnRg.js.map} +1 -1
  211. package/dist/src-kYeaJJrl.js +2 -0
  212. package/dist/state-B5PLm5qY.js +1 -0
  213. package/dist/{state-C0i_ujQZ.js → state-DrJ687ut.js} +18 -18
  214. package/dist/{state-C0i_ujQZ.js.map → state-DrJ687ut.js.map} +1 -1
  215. package/dist/stats-hfpuYsAM.js +315 -0
  216. package/dist/stats-hfpuYsAM.js.map +1 -0
  217. package/dist/suite-22Kt9Grx.js +2 -0
  218. package/dist/{suite-DmuF_ApO.js → suite-Co8cwelb.js} +92 -42
  219. package/dist/suite-Co8cwelb.js.map +1 -0
  220. package/dist/{summary-BFMHMTz2.js → summary-DLFHVoux.js} +131 -280
  221. package/dist/summary-DLFHVoux.js.map +1 -0
  222. package/dist/testing.d.ts +449 -2
  223. package/dist/testing.js +16 -3
  224. package/dist/testing.js.map +1 -0
  225. package/dist/{text-CrVy5ioL.js → text-DTigcA64.js} +9 -5
  226. package/dist/text-DTigcA64.js.map +1 -0
  227. package/dist/{transcript-BTxJpW4R.js → transcript-DxPaWHTZ.js} +12 -4
  228. package/dist/transcript-DxPaWHTZ.js.map +1 -0
  229. package/dist/types-C5vI3g1C.js.map +1 -1
  230. package/dist/{types-B-9b1MDV.d.ts → types-coMWHaU2.d.ts} +493 -745
  231. package/dist/{usage-CleNKkly.js → usage-BNY1ABrU.js} +3 -3
  232. package/dist/{usage-CleNKkly.js.map → usage-BNY1ABrU.js.map} +1 -1
  233. package/dist/vertex-Bv7vhMgs.js +1 -0
  234. package/dist/vertex-C7PI-WPc.d.ts +3 -0
  235. package/dist/vertex-DypYjx71.js +456 -0
  236. package/dist/vertex-DypYjx71.js.map +1 -0
  237. package/dist/view/index.d.ts +505 -43
  238. package/dist/view/index.js +10 -9
  239. package/dist/{views-Dk8MCQKr.js → views-BFO1BLKu.js} +14 -13
  240. package/dist/views-BFO1BLKu.js.map +1 -0
  241. package/dist/views-BOf8qEL8.js +2 -0
  242. package/dist/{worker-entry-CqrzGPF4.js → worker-entry-CJtdsKBP.js} +21 -14
  243. package/dist/worker-entry-CJtdsKBP.js.map +1 -0
  244. package/dist/{workspace-CLeOybkr.js → workspace-BRxjfa8N.js} +5 -5
  245. package/dist/{workspace-CLeOybkr.js.map → workspace-BRxjfa8N.js.map} +1 -1
  246. package/dist/workspace-DDHzkMjm.js +1 -0
  247. package/docker/seccomp-default.json +1 -0
  248. package/package.json +10 -2
  249. package/skills/eval-rubric/SKILL.md +43 -103
  250. package/dist/adapter-IKKo4sZj.js.map +0 -1
  251. package/dist/agent-ClE-g9VL.js.map +0 -1
  252. package/dist/assemble-BO93VAk1.js.map +0 -1
  253. package/dist/assemble-VQxyoDxK.js +0 -1
  254. package/dist/assert-EUIoRdIt.js.map +0 -1
  255. package/dist/capture-dn2hjSLj.js.map +0 -1
  256. package/dist/capture-nIJ-7kUE.js +0 -1
  257. package/dist/cli-BCE1xlm4.js.map +0 -1
  258. package/dist/cli-spec-BXIBUlaK.js.map +0 -1
  259. package/dist/client-fcwgwOAD.js +0 -106
  260. package/dist/client-fcwgwOAD.js.map +0 -1
  261. package/dist/command-Bh3yhN_b.js.map +0 -1
  262. package/dist/command-C6vwmjS7.js +0 -91
  263. package/dist/command-C6vwmjS7.js.map +0 -1
  264. package/dist/command-CANun0m0.js.map +0 -1
  265. package/dist/command-CBaHukyl.js +0 -335
  266. package/dist/command-CBaHukyl.js.map +0 -1
  267. package/dist/command-D_kEnYcX.js.map +0 -1
  268. package/dist/commands-7tH3EsVu.js.map +0 -1
  269. package/dist/config-D7TFvUpL.js +0 -759
  270. package/dist/config-D7TFvUpL.js.map +0 -1
  271. package/dist/contrasts-B4nOhn0Z.js.map +0 -1
  272. package/dist/db-DJUuFoWQ.js +0 -602
  273. package/dist/db-DJUuFoWQ.js.map +0 -1
  274. package/dist/db-W9EFlXnn.js +0 -2
  275. package/dist/debug-D7bEv_UV.js +0 -1
  276. package/dist/docker-CQxucRPe.js.map +0 -1
  277. package/dist/docker-DuHcQidD.js.map +0 -1
  278. package/dist/doctor-De_QlOTM.js.map +0 -1
  279. package/dist/egress-DEAvq8Fl.js +0 -1258
  280. package/dist/egress-DEAvq8Fl.js.map +0 -1
  281. package/dist/env-BQqj93gu.js.map +0 -1
  282. package/dist/environment-B4IuURK1.js.map +0 -1
  283. package/dist/evaluate-C9-ritA5.d.ts +0 -92
  284. package/dist/evaluate-Djk1YPFL.js.map +0 -1
  285. package/dist/facts-Cfx1H70y.js +0 -898
  286. package/dist/facts-Cfx1H70y.js.map +0 -1
  287. package/dist/files-Bs6H3HiG.js +0 -65
  288. package/dist/files-Bs6H3HiG.js.map +0 -1
  289. package/dist/files-CN1QfenC.js.map +0 -1
  290. package/dist/files-CtjEXWXm.js +0 -1
  291. package/dist/files-D27nUk0K.js.map +0 -1
  292. package/dist/files-D3gJa91B.js +0 -1
  293. package/dist/generate-BnrvBAzF.js +0 -1646
  294. package/dist/generate-BnrvBAzF.js.map +0 -1
  295. package/dist/harness-1OkumOAm.js +0 -323
  296. package/dist/harness-1OkumOAm.js.map +0 -1
  297. package/dist/header-BVzbRnNv.js.map +0 -1
  298. package/dist/init-hiTkiM4L.js.map +0 -1
  299. package/dist/init-kMkTgTZc.js +0 -1
  300. package/dist/insights-B2Xmhz9o.js +0 -64
  301. package/dist/insights-B2Xmhz9o.js.map +0 -1
  302. package/dist/invocations-D_ePcwyL.js.map +0 -1
  303. package/dist/judge-CEDIfRiU.js +0 -186
  304. package/dist/judge-CEDIfRiU.js.map +0 -1
  305. package/dist/model-B8H3gL69.js +0 -1
  306. package/dist/model-CTiuzkWw.js +0 -46
  307. package/dist/model-CTiuzkWw.js.map +0 -1
  308. package/dist/model-DcIbmggK.js +0 -1
  309. package/dist/model-DpkclE4r.js.map +0 -1
  310. package/dist/model-UgHDMhI1.js.map +0 -1
  311. package/dist/node-CGZYh4Fj.js.map +0 -1
  312. package/dist/opencode-providers-snfeWd6Z.js +0 -3305
  313. package/dist/opencode-providers-snfeWd6Z.js.map +0 -1
  314. package/dist/options-CyAyLjgJ.js +0 -1129
  315. package/dist/options-CyAyLjgJ.js.map +0 -1
  316. package/dist/pairs-DP6XOJby.js.map +0 -1
  317. package/dist/patch-uMq9rCl_.js.map +0 -1
  318. package/dist/plan-CZYgXnZh.js.map +0 -1
  319. package/dist/plugins-P-uh54VF.js.map +0 -1
  320. package/dist/query-D_1ARx5q.js +0 -1
  321. package/dist/questions-KENpWnfV.js +0 -523
  322. package/dist/questions-KENpWnfV.js.map +0 -1
  323. package/dist/redact-CRGdfV2s.js +0 -240
  324. package/dist/redact-CRGdfV2s.js.map +0 -1
  325. package/dist/remarks-1521zwfW.js.map +0 -1
  326. package/dist/remarks-BhAV1H4V.js +0 -1
  327. package/dist/remarks-Ml6bcSdV.js +0 -278
  328. package/dist/remarks-Ml6bcSdV.js.map +0 -1
  329. package/dist/remote-Dkeghk8k.js +0 -378
  330. package/dist/remote-Dkeghk8k.js.map +0 -1
  331. package/dist/resolve-CMmhACr6.js +0 -1
  332. package/dist/resolve-DzdWcIL6.js.map +0 -1
  333. package/dist/results-D-naai_Q.js.map +0 -1
  334. package/dist/resume-8-nnW8iO.js.map +0 -1
  335. package/dist/rules-CcV3zLDR.js +0 -318
  336. package/dist/rules-CcV3zLDR.js.map +0 -1
  337. package/dist/run-Bel7Vde4.js +0 -88
  338. package/dist/run-Bel7Vde4.js.map +0 -1
  339. package/dist/runtime-PX_oXiCS.js.map +0 -1
  340. package/dist/server-C-ysqkLv.js +0 -1
  341. package/dist/server-De8oH3bt.js.map +0 -1
  342. package/dist/shared-CA61BuPJ.js.map +0 -1
  343. package/dist/source-C686eZpY.js.map +0 -1
  344. package/dist/source-DjgypUHW.js +0 -1
  345. package/dist/src-3mP821Pt.js +0 -2
  346. package/dist/src-B3KCLZVk.js +0 -3
  347. package/dist/src-BAyg6CtQ.js +0 -2
  348. package/dist/src-BezgGX4X.js +0 -2
  349. package/dist/src-CIpKL45U.js.map +0 -1
  350. package/dist/src-ChBhk06Q.js +0 -2
  351. package/dist/src-CoqZYspK.js +0 -2
  352. package/dist/src-CzQrAcF8.js.map +0 -1
  353. package/dist/src-D9fSTxlc.js +0 -1
  354. package/dist/src-DIL0jST0.js.map +0 -1
  355. package/dist/src-Xj_BZKbq.js.map +0 -1
  356. package/dist/src-dhSTRN50.js +0 -2
  357. package/dist/src-djNNYIdP.js.map +0 -1
  358. package/dist/state-BGWGAwdo.js +0 -1
  359. package/dist/state-CeR6oz0k.js +0 -66
  360. package/dist/state-CeR6oz0k.js.map +0 -1
  361. package/dist/studio-app/assets/index-Bb_cid9k.js +0 -58
  362. package/dist/studio-app/assets/index-CwQN3f_h.css +0 -2
  363. package/dist/studio-app/favicon.svg +0 -1
  364. package/dist/studio-app/index.html +0 -15
  365. package/dist/suite-DmuF_ApO.js.map +0 -1
  366. package/dist/suite-mn9g4veR.js +0 -2
  367. package/dist/summary-BFMHMTz2.js.map +0 -1
  368. package/dist/text-CrVy5ioL.js.map +0 -1
  369. package/dist/transcript-BTxJpW4R.js.map +0 -1
  370. package/dist/usage-BDo2q_yu.js +0 -1
  371. package/dist/validate-DWjkshl1.js.map +0 -1
  372. package/dist/views-DE2A1jEX.js +0 -2
  373. package/dist/views-Dk8MCQKr.js.map +0 -1
  374. package/dist/worker-entry-CqrzGPF4.js.map +0 -1
  375. package/dist/workspace-B1eGO46M.js +0 -1
@@ -1,3305 +0,0 @@
1
- //#region ../harness-opencode/src/opencode-provider-table.ts
2
- /** Every provider whose key OpenCode sends in a header on known hosts, as the probe saw it. */
3
- const OPENCODE_PROVIDERS = [
4
- {
5
- id: "302ai",
6
- name: "302.AI",
7
- env: "302AI_API_KEY",
8
- headers: [{
9
- name: "authorization",
10
- scheme: "bearer"
11
- }],
12
- endpoints: [{
13
- host: "api.302.ai",
14
- method: ["POST"],
15
- path: { exact: "/v1/chat/completions" }
16
- }]
17
- },
18
- {
19
- id: "abacus",
20
- name: "Abacus",
21
- env: "ABACUS_API_KEY",
22
- headers: [{
23
- name: "authorization",
24
- scheme: "bearer"
25
- }],
26
- endpoints: [{
27
- host: "routellm.abacus.ai",
28
- method: ["POST"],
29
- path: { exact: "/v1/chat/completions" }
30
- }]
31
- },
32
- {
33
- id: "abliteration-ai",
34
- name: "abliteration.ai",
35
- env: "ABLIT_KEY",
36
- headers: [{
37
- name: "authorization",
38
- scheme: "bearer"
39
- }],
40
- endpoints: [{
41
- host: "api.abliteration.ai",
42
- method: ["POST"],
43
- path: { exact: "/v1/chat/completions" }
44
- }]
45
- },
46
- {
47
- id: "above",
48
- name: "above.dev",
49
- env: "ABOVE_API_KEY",
50
- headers: [{
51
- name: "authorization",
52
- scheme: "bearer"
53
- }],
54
- endpoints: [{
55
- host: "api.above.dev",
56
- method: ["POST"],
57
- path: { exact: "/v1/chat/completions" }
58
- }]
59
- },
60
- {
61
- id: "agentrouter",
62
- name: "AgentRouter",
63
- env: "AGENTROUTER_API_KEY",
64
- headers: [{
65
- name: "authorization",
66
- scheme: "bearer"
67
- }, {
68
- name: "x-api-key",
69
- scheme: "raw"
70
- }],
71
- endpoints: [{
72
- host: "agentrouter.org",
73
- method: ["POST"],
74
- path: { exact: "/v1/chat/completions" }
75
- }, {
76
- host: "agentrouter.org",
77
- method: ["POST"],
78
- path: { exact: "/v1/messages" }
79
- }]
80
- },
81
- {
82
- id: "agnes",
83
- name: "Agnes AI",
84
- env: "AGNES_API_KEY",
85
- headers: [{
86
- name: "authorization",
87
- scheme: "bearer"
88
- }],
89
- endpoints: [{
90
- host: "apihub.agnes-ai.com",
91
- method: ["POST"],
92
- path: { exact: "/v1/chat/completions" }
93
- }]
94
- },
95
- {
96
- id: "ai-router",
97
- name: "AI-ROUTER",
98
- env: "AI_ROUTER_API_KEY",
99
- headers: [{
100
- name: "authorization",
101
- scheme: "bearer"
102
- }],
103
- endpoints: [{
104
- host: "api.ai-router.dev",
105
- method: ["POST"],
106
- path: { exact: "/v1/chat/completions" }
107
- }]
108
- },
109
- {
110
- id: "ai21",
111
- name: "AI21 Labs",
112
- env: "AI21_API_KEY",
113
- headers: [{
114
- name: "authorization",
115
- scheme: "bearer"
116
- }],
117
- endpoints: [{
118
- host: "api.ai21.com",
119
- method: ["POST"],
120
- path: { exact: "/studio/v1/chat/completions" }
121
- }]
122
- },
123
- {
124
- id: "aiand",
125
- name: "ai&",
126
- env: "AIAND_API_KEY",
127
- headers: [{
128
- name: "authorization",
129
- scheme: "bearer"
130
- }],
131
- endpoints: [{
132
- host: "api.aiand.com",
133
- method: ["POST"],
134
- path: { exact: "/v1/chat/completions" }
135
- }]
136
- },
137
- {
138
- id: "aimlapi",
139
- name: "AI/ML API",
140
- env: "AIMLAPI_API_KEY",
141
- headers: [{
142
- name: "authorization",
143
- scheme: "bearer"
144
- }],
145
- endpoints: [{
146
- host: "api.aimlapi.com",
147
- method: ["POST"],
148
- path: { exact: "/v1/chat/completions" }
149
- }]
150
- },
151
- {
152
- id: "ainetcafe",
153
- name: "ainetcafe",
154
- env: "AINETCAFE_API_KEY",
155
- headers: [{
156
- name: "authorization",
157
- scheme: "bearer"
158
- }],
159
- endpoints: [{
160
- host: "microquickjs.com",
161
- method: ["POST"],
162
- path: { exact: "/v1/chat/completions" }
163
- }]
164
- },
165
- {
166
- id: "aixy",
167
- name: "Aixy",
168
- env: "AIXY_API_KEY",
169
- headers: [{
170
- name: "authorization",
171
- scheme: "bearer"
172
- }, {
173
- name: "x-api-key",
174
- scheme: "raw"
175
- }],
176
- endpoints: [
177
- {
178
- host: "api.aixy-gateway.com",
179
- method: ["POST"],
180
- path: { exact: "/v1/chat/completions" }
181
- },
182
- {
183
- host: "api.aixy-gateway.com",
184
- method: ["POST"],
185
- path: { exact: "/v1/messages" }
186
- },
187
- {
188
- host: "api.aixy-gateway.com",
189
- method: ["POST"],
190
- path: { exact: "/v1/responses" }
191
- }
192
- ]
193
- },
194
- {
195
- id: "aki-io",
196
- name: "AKI.IO",
197
- env: "AKI_IO_API_KEY",
198
- headers: [{
199
- name: "authorization",
200
- scheme: "bearer"
201
- }],
202
- endpoints: [{
203
- host: "aki.io",
204
- method: ["POST"],
205
- path: { exact: "/v1/chat/completions" }
206
- }]
207
- },
208
- {
209
- id: "alibaba",
210
- name: "Alibaba",
211
- env: "DASHSCOPE_API_KEY",
212
- headers: [{
213
- name: "authorization",
214
- scheme: "bearer"
215
- }],
216
- endpoints: [{
217
- host: "dashscope-intl.aliyuncs.com",
218
- method: ["POST"],
219
- path: { exact: "/compatible-mode/v1/chat/completions" }
220
- }]
221
- },
222
- {
223
- id: "alibaba-cn",
224
- name: "Alibaba (China)",
225
- env: "DASHSCOPE_API_KEY",
226
- headers: [{
227
- name: "authorization",
228
- scheme: "bearer"
229
- }],
230
- endpoints: [{
231
- host: "dashscope.aliyuncs.com",
232
- method: ["POST"],
233
- path: { exact: "/compatible-mode/v1/chat/completions" }
234
- }]
235
- },
236
- {
237
- id: "alibaba-coding-plan",
238
- name: "Alibaba Coding Plan",
239
- env: "ALIBABA_CODING_PLAN_API_KEY",
240
- headers: [{
241
- name: "authorization",
242
- scheme: "bearer"
243
- }],
244
- endpoints: [{
245
- host: "coding-intl.dashscope.aliyuncs.com",
246
- method: ["POST"],
247
- path: { exact: "/v1/chat/completions" }
248
- }]
249
- },
250
- {
251
- id: "alibaba-coding-plan-cn",
252
- name: "Alibaba Coding Plan (China)",
253
- env: "ALIBABA_CODING_PLAN_API_KEY",
254
- headers: [{
255
- name: "authorization",
256
- scheme: "bearer"
257
- }],
258
- endpoints: [{
259
- host: "coding.dashscope.aliyuncs.com",
260
- method: ["POST"],
261
- path: { exact: "/v1/chat/completions" }
262
- }]
263
- },
264
- {
265
- id: "alibaba-token-plan",
266
- name: "Alibaba Token Plan",
267
- env: "ALIBABA_TOKEN_PLAN_API_KEY",
268
- headers: [{
269
- name: "authorization",
270
- scheme: "bearer"
271
- }],
272
- endpoints: [{
273
- host: "token-plan.ap-southeast-1.maas.aliyuncs.com",
274
- method: ["POST"],
275
- path: { exact: "/compatible-mode/v1/chat/completions" }
276
- }]
277
- },
278
- {
279
- id: "alibaba-token-plan-cn",
280
- name: "Alibaba Token Plan (China)",
281
- env: "ALIBABA_TOKEN_PLAN_API_KEY",
282
- headers: [{
283
- name: "authorization",
284
- scheme: "bearer"
285
- }],
286
- endpoints: [{
287
- host: "token-plan.cn-beijing.maas.aliyuncs.com",
288
- method: ["POST"],
289
- path: { exact: "/compatible-mode/v1/chat/completions" }
290
- }]
291
- },
292
- {
293
- id: "amazon-bedrock",
294
- name: "Amazon Bedrock",
295
- env: "AWS_BEARER_TOKEN_BEDROCK",
296
- vars: [{
297
- name: "AWS_REGION",
298
- default: "us-east-1",
299
- pattern: "^[a-z]{2}(-[a-z]+)+-\\d{1,2}$"
300
- }],
301
- headers: [{
302
- name: "authorization",
303
- scheme: "bearer"
304
- }],
305
- endpoints: [
306
- {
307
- host: "bedrock-mantle.{AWS_REGION}.api.aws",
308
- method: ["POST"],
309
- path: { exact: "/openai/v1/responses" }
310
- },
311
- {
312
- host: "bedrock-mantle.{AWS_REGION}.api.aws",
313
- method: ["POST"],
314
- path: { exact: "/v1/chat/completions" }
315
- },
316
- {
317
- host: "bedrock-runtime.{AWS_REGION}.amazonaws.com",
318
- method: ["POST"],
319
- path: { regex: "^/model/([^/]+)/converse-stream$" }
320
- }
321
- ]
322
- },
323
- {
324
- id: "ambient",
325
- name: "Ambient",
326
- env: "AMBIENT_API_KEY",
327
- headers: [{
328
- name: "authorization",
329
- scheme: "bearer"
330
- }],
331
- endpoints: [{
332
- host: "api.ambient.xyz",
333
- method: ["POST"],
334
- path: { exact: "/v1/chat/completions" }
335
- }]
336
- },
337
- {
338
- id: "amd",
339
- name: "AMD",
340
- env: "AMD_API_KEY",
341
- headers: [{
342
- name: "authorization",
343
- scheme: "bearer"
344
- }],
345
- endpoints: [{
346
- host: "developer.amd.com.cn",
347
- method: ["POST"],
348
- path: { exact: "/radeon/api/v1/chat/completions" }
349
- }]
350
- },
351
- {
352
- id: "anthropic",
353
- name: "Anthropic",
354
- env: "ANTHROPIC_API_KEY",
355
- headers: [{
356
- name: "x-api-key",
357
- scheme: "raw"
358
- }],
359
- endpoints: [{
360
- host: "api.anthropic.com",
361
- method: ["POST"],
362
- path: { exact: "/v1/messages" }
363
- }]
364
- },
365
- {
366
- id: "anyapi",
367
- name: "AnyAPI",
368
- env: "ANYAPI_API_KEY",
369
- headers: [{
370
- name: "authorization",
371
- scheme: "bearer"
372
- }],
373
- endpoints: [{
374
- host: "api.anyapi.ai",
375
- method: ["POST"],
376
- path: { exact: "/v1/chat/completions" }
377
- }]
378
- },
379
- {
380
- id: "arcee",
381
- name: "Arcee",
382
- env: "ARCEE_API_KEY",
383
- headers: [{
384
- name: "authorization",
385
- scheme: "bearer"
386
- }],
387
- endpoints: [{
388
- host: "api.arcee.ai",
389
- method: ["POST"],
390
- path: { exact: "/api/v1/chat/completions" }
391
- }]
392
- },
393
- {
394
- id: "auriko",
395
- name: "Auriko",
396
- env: "AURIKO_API_KEY",
397
- headers: [{
398
- name: "authorization",
399
- scheme: "bearer"
400
- }],
401
- endpoints: [{
402
- host: "api.auriko.ai",
403
- method: ["POST"],
404
- path: { exact: "/v1/chat/completions" }
405
- }]
406
- },
407
- {
408
- id: "bailing",
409
- name: "Bailing",
410
- env: "BAILING_API_TOKEN",
411
- headers: [{
412
- name: "authorization",
413
- scheme: "bearer"
414
- }],
415
- endpoints: [{
416
- host: "api.tbox.cn",
417
- method: ["POST"],
418
- path: { exact: "/api/llm/v1/chat/completions" }
419
- }]
420
- },
421
- {
422
- id: "baseten",
423
- name: "Baseten",
424
- env: "BASETEN_API_KEY",
425
- headers: [{
426
- name: "authorization",
427
- scheme: "bearer"
428
- }],
429
- endpoints: [{
430
- host: "inference.baseten.co",
431
- method: ["POST"],
432
- path: { exact: "/v1/chat/completions" }
433
- }]
434
- },
435
- {
436
- id: "bee",
437
- name: "Bee by HEOSSI",
438
- env: "BEE_API_KEY",
439
- headers: [{
440
- name: "authorization",
441
- scheme: "bearer"
442
- }],
443
- endpoints: [{
444
- host: "api.bee.heossi.com",
445
- method: ["POST"],
446
- path: { exact: "/bee/chat/completions" }
447
- }]
448
- },
449
- {
450
- id: "berget",
451
- name: "Berget.AI",
452
- env: "BERGET_API_KEY",
453
- headers: [{
454
- name: "authorization",
455
- scheme: "bearer"
456
- }],
457
- endpoints: [{
458
- host: "api.berget.ai",
459
- method: ["POST"],
460
- path: { exact: "/v1/chat/completions" }
461
- }]
462
- },
463
- {
464
- id: "blueclaw",
465
- name: "Blue Claw",
466
- env: "BLUECLAW_API_KEY",
467
- headers: [{
468
- name: "authorization",
469
- scheme: "bearer"
470
- }],
471
- endpoints: [{
472
- host: "openai.blueclaw.network",
473
- method: ["POST"],
474
- path: { exact: "/v1/chat/completions" }
475
- }]
476
- },
477
- {
478
- id: "bothub",
479
- name: "Bothub",
480
- env: "BOTHUB_API_KEY",
481
- headers: [{
482
- name: "authorization",
483
- scheme: "bearer"
484
- }],
485
- endpoints: [{
486
- host: "openai.bothub.ru",
487
- method: ["POST"],
488
- path: { exact: "/v1/chat/completions" }
489
- }]
490
- },
491
- {
492
- id: "boundless",
493
- name: "Boundless",
494
- env: "BOUNDLESS_API_KEY",
495
- headers: [{
496
- name: "authorization",
497
- scheme: "bearer"
498
- }],
499
- endpoints: [{
500
- host: "api.inference.boundless.network",
501
- method: ["POST"],
502
- path: { exact: "/v1/chat/completions" }
503
- }]
504
- },
505
- {
506
- id: "cerebras",
507
- name: "Cerebras",
508
- env: "CEREBRAS_API_KEY",
509
- headers: [{
510
- name: "authorization",
511
- scheme: "bearer"
512
- }],
513
- endpoints: [{
514
- host: "api.cerebras.ai",
515
- method: ["POST"],
516
- path: { exact: "/v1/chat/completions" }
517
- }]
518
- },
519
- {
520
- id: "chutes",
521
- name: "Chutes",
522
- env: "CHUTES_API_KEY",
523
- headers: [{
524
- name: "authorization",
525
- scheme: "bearer"
526
- }],
527
- endpoints: [{
528
- host: "llm.chutes.ai",
529
- method: ["POST"],
530
- path: { exact: "/v1/chat/completions" }
531
- }]
532
- },
533
- {
534
- id: "clarifai",
535
- name: "Clarifai",
536
- env: "CLARIFAI_PAT",
537
- headers: [{
538
- name: "authorization",
539
- scheme: "bearer"
540
- }],
541
- endpoints: [{
542
- host: "api.clarifai.com",
543
- method: ["POST"],
544
- path: { exact: "/v2/ext/openai/v1/chat/completions" }
545
- }]
546
- },
547
- {
548
- id: "claudinio",
549
- name: "Claudinio",
550
- env: "CLAUDINIO_API_KEY",
551
- headers: [{
552
- name: "authorization",
553
- scheme: "bearer"
554
- }],
555
- endpoints: [{
556
- host: "api.claudin.io",
557
- method: ["POST"],
558
- path: { exact: "/v1/chat/completions" }
559
- }]
560
- },
561
- {
562
- id: "cline-pass",
563
- name: "ClinePass",
564
- env: "CLINE_API_KEY",
565
- headers: [{
566
- name: "authorization",
567
- scheme: "bearer"
568
- }],
569
- endpoints: [{
570
- host: "api.cline.bot",
571
- method: ["POST"],
572
- path: { exact: "/api/v1/chat/completions" }
573
- }]
574
- },
575
- {
576
- id: "cloudferro-sherlock",
577
- name: "CloudFerro Sherlock",
578
- env: "CLOUDFERRO_SHERLOCK_API_KEY",
579
- headers: [{
580
- name: "authorization",
581
- scheme: "bearer"
582
- }],
583
- endpoints: [{
584
- host: "api-sherlock.cloudferro.com",
585
- method: ["POST"],
586
- path: { exact: "/openai/v1/chat/completions" }
587
- }]
588
- },
589
- {
590
- id: "cohere",
591
- name: "Cohere",
592
- env: "COHERE_API_KEY",
593
- headers: [{
594
- name: "authorization",
595
- scheme: "bearer"
596
- }],
597
- endpoints: [{
598
- host: "api.cohere.ai",
599
- method: ["POST"],
600
- path: { exact: "/compatibility/v1/chat/completions" }
601
- }, {
602
- host: "api.cohere.com",
603
- method: ["POST"],
604
- path: { exact: "/v2/chat" }
605
- }]
606
- },
607
- {
608
- id: "commandcode",
609
- name: "CommandCode",
610
- env: "CMD_API_KEY",
611
- headers: [{
612
- name: "authorization",
613
- scheme: "bearer"
614
- }, {
615
- name: "x-api-key",
616
- scheme: "raw"
617
- }],
618
- endpoints: [{
619
- host: "api.commandcode.ai",
620
- method: ["POST"],
621
- path: { exact: "/provider/v1/chat/completions" }
622
- }, {
623
- host: "api.commandcode.ai",
624
- method: ["POST"],
625
- path: { exact: "/provider/v1/messages" }
626
- }]
627
- },
628
- {
629
- id: "coralbricks",
630
- name: "CoralBricks",
631
- env: "CORAL_API_KEY",
632
- headers: [{
633
- name: "authorization",
634
- scheme: "bearer"
635
- }],
636
- endpoints: [{
637
- host: "inference.coralbricks.ai",
638
- method: ["POST"],
639
- path: { exact: "/v1/chat/completions" }
640
- }]
641
- },
642
- {
643
- id: "cortecs",
644
- name: "Cortecs",
645
- env: "CORTECS_API_KEY",
646
- headers: [{
647
- name: "authorization",
648
- scheme: "bearer"
649
- }],
650
- endpoints: [{
651
- host: "api.cortecs.ai",
652
- method: ["POST"],
653
- path: { exact: "/v1/chat/completions" }
654
- }]
655
- },
656
- {
657
- id: "crossmodel",
658
- name: "CrossModel",
659
- env: "CROSSMODEL_API_KEY",
660
- headers: [{
661
- name: "authorization",
662
- scheme: "bearer"
663
- }],
664
- endpoints: [{
665
- host: "api.crossmodel.ai",
666
- method: ["POST"],
667
- path: { exact: "/v1/chat/completions" }
668
- }]
669
- },
670
- {
671
- id: "crusoe",
672
- name: "Crusoe",
673
- env: "CRUSOE_API_KEY",
674
- headers: [{
675
- name: "authorization",
676
- scheme: "bearer"
677
- }],
678
- endpoints: [{
679
- host: "api.inference.crusoecloud.com",
680
- method: ["POST"],
681
- path: { exact: "/v1/chat/completions" }
682
- }]
683
- },
684
- {
685
- id: "daoxe",
686
- name: "DaoXE",
687
- env: "DAOXE_API_KEY",
688
- headers: [{
689
- name: "authorization",
690
- scheme: "bearer"
691
- }],
692
- endpoints: [{
693
- host: "daoxe.com",
694
- method: ["POST"],
695
- path: { exact: "/v1/chat/completions" }
696
- }]
697
- },
698
- {
699
- id: "deepinfra",
700
- name: "Deep Infra",
701
- env: "DEEPINFRA_API_KEY",
702
- headers: [{
703
- name: "authorization",
704
- scheme: "bearer"
705
- }],
706
- endpoints: [{
707
- host: "api.deepinfra.com",
708
- method: ["POST"],
709
- path: { exact: "/v1/openai/chat/completions" }
710
- }]
711
- },
712
- {
713
- id: "deepseek",
714
- name: "DeepSeek",
715
- env: "DEEPSEEK_API_KEY",
716
- headers: [{
717
- name: "authorization",
718
- scheme: "bearer"
719
- }],
720
- endpoints: [{
721
- host: "api.deepseek.com",
722
- method: ["POST"],
723
- path: { exact: "/chat/completions" }
724
- }]
725
- },
726
- {
727
- id: "digitalocean",
728
- name: "DigitalOcean",
729
- env: "DIGITALOCEAN_ACCESS_TOKEN",
730
- headers: [{
731
- name: "authorization",
732
- scheme: "bearer"
733
- }],
734
- endpoints: [{
735
- host: "inference.do-ai.run",
736
- method: ["POST"],
737
- path: { exact: "/v1/chat/completions" }
738
- }]
739
- },
740
- {
741
- id: "dinference",
742
- name: "DInference",
743
- env: "DINFERENCE_API_KEY",
744
- headers: [{
745
- name: "authorization",
746
- scheme: "bearer"
747
- }],
748
- endpoints: [{
749
- host: "api.dinference.com",
750
- method: ["POST"],
751
- path: { exact: "/v1/chat/completions" }
752
- }]
753
- },
754
- {
755
- id: "drun",
756
- name: "D.Run (China)",
757
- env: "DRUN_API_KEY",
758
- headers: [{
759
- name: "authorization",
760
- scheme: "bearer"
761
- }],
762
- endpoints: [{
763
- host: "chat.d.run",
764
- method: ["POST"],
765
- path: { exact: "/v1/chat/completions" }
766
- }]
767
- },
768
- {
769
- id: "ebcloud",
770
- name: "EBCloud",
771
- env: "EBCLOUD_API_KEY",
772
- headers: [{
773
- name: "authorization",
774
- scheme: "bearer"
775
- }],
776
- endpoints: [{
777
- host: "maas-api.ebcloud.com",
778
- method: ["POST"],
779
- path: { exact: "/v1/chat/completions" }
780
- }]
781
- },
782
- {
783
- id: "echo",
784
- name: "Echo",
785
- env: "ECHO_API_KEY",
786
- headers: [{
787
- name: "authorization",
788
- scheme: "bearer"
789
- }],
790
- endpoints: [{
791
- host: "echo.tracerml.ai",
792
- method: ["POST"],
793
- path: { exact: "/v1/chat/completions" }
794
- }]
795
- },
796
- {
797
- id: "edenai",
798
- name: "Eden AI",
799
- env: "EDENAI_API_KEY",
800
- headers: [{
801
- name: "authorization",
802
- scheme: "bearer"
803
- }],
804
- endpoints: [{
805
- host: "api.edenai.run",
806
- method: ["POST"],
807
- path: { exact: "/v3/chat/completions" }
808
- }]
809
- },
810
- {
811
- id: "empiriolabs",
812
- name: "EmpirioLabs AI",
813
- env: "EMPIRIOLABS_API_KEY",
814
- headers: [{
815
- name: "authorization",
816
- scheme: "bearer"
817
- }],
818
- endpoints: [{
819
- host: "api.empiriolabs.ai",
820
- method: ["POST"],
821
- path: { exact: "/v1/chat/completions" }
822
- }]
823
- },
824
- {
825
- id: "engy",
826
- name: "engy",
827
- env: "ENGY_API_KEY",
828
- headers: [{
829
- name: "authorization",
830
- scheme: "bearer"
831
- }],
832
- endpoints: [{
833
- host: "api.engy.ai",
834
- method: ["POST"],
835
- path: { exact: "/v1/chat/completions" }
836
- }]
837
- },
838
- {
839
- id: "evroc",
840
- name: "evroc",
841
- env: "EVROC_API_KEY",
842
- headers: [{
843
- name: "authorization",
844
- scheme: "bearer"
845
- }],
846
- endpoints: [{
847
- host: "models.think.evroc.com",
848
- method: ["POST"],
849
- path: { exact: "/v1/chat/completions" }
850
- }]
851
- },
852
- {
853
- id: "fastrouter",
854
- name: "FastRouter",
855
- env: "FASTROUTER_API_KEY",
856
- headers: [{
857
- name: "authorization",
858
- scheme: "bearer"
859
- }],
860
- endpoints: [{
861
- host: "go.fastrouter.ai",
862
- method: ["POST"],
863
- path: { exact: "/api/v1/chat/completions" }
864
- }]
865
- },
866
- {
867
- id: "fireworks-ai",
868
- name: "Fireworks AI",
869
- env: "FIREWORKS_API_KEY",
870
- headers: [{
871
- name: "authorization",
872
- scheme: "bearer"
873
- }],
874
- endpoints: [{
875
- host: "api.fireworks.ai",
876
- method: ["POST"],
877
- path: { exact: "/inference/v1/chat/completions" }
878
- }]
879
- },
880
- {
881
- id: "freemodel",
882
- name: "FreeModel",
883
- env: "FREEMODEL_API_KEY",
884
- headers: [{
885
- name: "x-api-key",
886
- scheme: "raw"
887
- }, {
888
- name: "authorization",
889
- scheme: "bearer"
890
- }],
891
- endpoints: [{
892
- host: "api.freemodel.dev",
893
- method: ["POST"],
894
- path: { exact: "/v1/chat/completions" }
895
- }, {
896
- host: "cc.freemodel.dev",
897
- method: ["POST"],
898
- path: { exact: "/v1/messages" }
899
- }]
900
- },
901
- {
902
- id: "friendli",
903
- name: "Friendli",
904
- env: "FRIENDLI_TOKEN",
905
- headers: [{
906
- name: "authorization",
907
- scheme: "bearer"
908
- }],
909
- endpoints: [{
910
- host: "api.friendli.ai",
911
- method: ["POST"],
912
- path: { exact: "/serverless/v1/chat/completions" }
913
- }]
914
- },
915
- {
916
- id: "frogbot",
917
- name: "FrogBot",
918
- env: "FROGBOT_API_KEY",
919
- headers: [{
920
- name: "authorization",
921
- scheme: "bearer"
922
- }],
923
- endpoints: [{
924
- host: "app.frogbot.ai",
925
- method: ["POST"],
926
- path: { exact: "/api/v1/chat/completions" }
927
- }]
928
- },
929
- {
930
- id: "gmicloud",
931
- name: "GMI Cloud",
932
- env: "GMICLOUD_API_KEY",
933
- headers: [{
934
- name: "authorization",
935
- scheme: "bearer"
936
- }],
937
- endpoints: [{
938
- host: "api.gmi-serving.com",
939
- method: ["POST"],
940
- path: { exact: "/v1/chat/completions" }
941
- }]
942
- },
943
- {
944
- id: "google",
945
- name: "Google",
946
- env: "GOOGLE_GENERATIVE_AI_API_KEY",
947
- headers: [{
948
- name: "x-goog-api-key",
949
- scheme: "raw"
950
- }],
951
- endpoints: [{
952
- host: "generativelanguage.googleapis.com",
953
- method: ["POST"],
954
- path: { regex: "^/v1beta/models/([^/]+):streamGenerateContent$" }
955
- }]
956
- },
957
- {
958
- id: "greenpt",
959
- name: "GreenPT",
960
- env: "GREENPT_API_KEY",
961
- headers: [{
962
- name: "authorization",
963
- scheme: "bearer"
964
- }],
965
- endpoints: [{
966
- host: "api.greenpt.ai",
967
- method: ["POST"],
968
- path: { exact: "/v1/chat/completions" }
969
- }]
970
- },
971
- {
972
- id: "groq",
973
- name: "Groq",
974
- env: "GROQ_API_KEY",
975
- headers: [{
976
- name: "authorization",
977
- scheme: "bearer"
978
- }],
979
- endpoints: [{
980
- host: "api.groq.com",
981
- method: ["POST"],
982
- path: { exact: "/openai/v1/chat/completions" }
983
- }]
984
- },
985
- {
986
- id: "helicone",
987
- name: "Helicone",
988
- env: "HELICONE_API_KEY",
989
- headers: [{
990
- name: "authorization",
991
- scheme: "bearer"
992
- }],
993
- endpoints: [{
994
- host: "ai-gateway.helicone.ai",
995
- method: ["POST"],
996
- path: { exact: "/v1/chat/completions" }
997
- }]
998
- },
999
- {
1000
- id: "hetzner",
1001
- name: "Hetzner",
1002
- env: "HETZNER_API_KEY",
1003
- headers: [{
1004
- name: "authorization",
1005
- scheme: "bearer"
1006
- }],
1007
- endpoints: [{
1008
- host: "inference.hetzner.com",
1009
- method: ["POST"],
1010
- path: { exact: "/api/v1/chat/completions" }
1011
- }]
1012
- },
1013
- {
1014
- id: "hpc-ai",
1015
- name: "HPC-AI",
1016
- env: "HPC_AI_API_KEY",
1017
- headers: [{
1018
- name: "authorization",
1019
- scheme: "bearer"
1020
- }],
1021
- endpoints: [{
1022
- host: "api.hpc-ai.com",
1023
- method: ["POST"],
1024
- path: { exact: "/inference/v1/chat/completions" }
1025
- }]
1026
- },
1027
- {
1028
- id: "huggingface",
1029
- name: "Hugging Face",
1030
- env: "HF_TOKEN",
1031
- headers: [{
1032
- name: "authorization",
1033
- scheme: "bearer"
1034
- }],
1035
- endpoints: [{
1036
- host: "router.huggingface.co",
1037
- method: ["POST"],
1038
- path: { exact: "/v1/chat/completions" }
1039
- }]
1040
- },
1041
- {
1042
- id: "hyper",
1043
- name: "Charm Hyper",
1044
- env: "HYPER_API_KEY",
1045
- headers: [{
1046
- name: "authorization",
1047
- scheme: "bearer"
1048
- }],
1049
- endpoints: [{
1050
- host: "hyper.charm.land",
1051
- method: ["POST"],
1052
- path: { exact: "/v1/chat/completions" }
1053
- }]
1054
- },
1055
- {
1056
- id: "iflowcn",
1057
- name: "iFlow",
1058
- env: "IFLOW_API_KEY",
1059
- headers: [{
1060
- name: "authorization",
1061
- scheme: "bearer"
1062
- }],
1063
- endpoints: [{
1064
- host: "apis.iflow.cn",
1065
- method: ["POST"],
1066
- path: { exact: "/v1/chat/completions" }
1067
- }]
1068
- },
1069
- {
1070
- id: "impossibl",
1071
- name: "Impossibl",
1072
- env: "IMPOSSIBL_API_KEY",
1073
- headers: [{
1074
- name: "authorization",
1075
- scheme: "bearer"
1076
- }],
1077
- endpoints: [{
1078
- host: "api.impossibl.com",
1079
- method: ["POST"],
1080
- path: { exact: "/v1/chat/completions" }
1081
- }]
1082
- },
1083
- {
1084
- id: "inception",
1085
- name: "Inception",
1086
- env: "INCEPTION_API_KEY",
1087
- headers: [{
1088
- name: "authorization",
1089
- scheme: "bearer"
1090
- }],
1091
- endpoints: [{
1092
- host: "api.inceptionlabs.ai",
1093
- method: ["POST"],
1094
- path: { exact: "/v1/chat/completions" }
1095
- }]
1096
- },
1097
- {
1098
- id: "inceptron",
1099
- name: "Inceptron",
1100
- env: "INCEPTRON_API_KEY",
1101
- headers: [{
1102
- name: "authorization",
1103
- scheme: "bearer"
1104
- }],
1105
- endpoints: [{
1106
- host: "api.inceptron.io",
1107
- method: ["POST"],
1108
- path: { exact: "/v1/chat/completions" }
1109
- }]
1110
- },
1111
- {
1112
- id: "inco",
1113
- name: "Inco",
1114
- env: "INCO_API_KEY",
1115
- headers: [{
1116
- name: "authorization",
1117
- scheme: "bearer"
1118
- }],
1119
- endpoints: [{
1120
- host: "api.inco.ai",
1121
- method: ["POST"],
1122
- path: { exact: "/v1/chat/completions" }
1123
- }]
1124
- },
1125
- {
1126
- id: "infer",
1127
- name: "Infer by Flow7",
1128
- env: "INFER_API_KEY",
1129
- headers: [{
1130
- name: "authorization",
1131
- scheme: "bearer"
1132
- }],
1133
- endpoints: [{
1134
- host: "infer.flow7.org",
1135
- method: ["POST"],
1136
- path: { exact: "/v1/responses" }
1137
- }]
1138
- },
1139
- {
1140
- id: "inference",
1141
- name: "Inference",
1142
- env: "INFERENCE_API_KEY",
1143
- headers: [{
1144
- name: "authorization",
1145
- scheme: "bearer"
1146
- }],
1147
- endpoints: [{
1148
- host: "inference.net",
1149
- method: ["POST"],
1150
- path: { exact: "/v1/chat/completions" }
1151
- }]
1152
- },
1153
- {
1154
- id: "inferx",
1155
- name: "InferX",
1156
- env: "INFERX_API_KEY",
1157
- headers: [{
1158
- name: "authorization",
1159
- scheme: "bearer"
1160
- }],
1161
- endpoints: [{
1162
- host: "model.inferx.net",
1163
- method: ["POST"],
1164
- path: { exact: "/endpoints/v1/chat/completions" }
1165
- }]
1166
- },
1167
- {
1168
- id: "io-net",
1169
- name: "IO.NET",
1170
- env: "IOINTELLIGENCE_API_KEY",
1171
- headers: [{
1172
- name: "authorization",
1173
- scheme: "bearer"
1174
- }],
1175
- endpoints: [{
1176
- host: "api.intelligence.io.solutions",
1177
- method: ["POST"],
1178
- path: { exact: "/api/v1/chat/completions" }
1179
- }]
1180
- },
1181
- {
1182
- id: "iteracompute",
1183
- name: "IteraCompute",
1184
- env: "ITERACOMPUTE_API_KEY",
1185
- headers: [{
1186
- name: "authorization",
1187
- scheme: "bearer"
1188
- }],
1189
- endpoints: [{
1190
- host: "api.iteracompute.com",
1191
- method: ["POST"],
1192
- path: { exact: "/v1/chat/completions" }
1193
- }]
1194
- },
1195
- {
1196
- id: "jalapeno",
1197
- name: "Jalapeno Cloud",
1198
- env: "JALAPENO_API_KEY",
1199
- headers: [{
1200
- name: "authorization",
1201
- scheme: "bearer"
1202
- }],
1203
- endpoints: [{
1204
- host: "api.jalapeno-cloud.ai",
1205
- method: ["POST"],
1206
- path: { exact: "/v1/chat/completions" }
1207
- }]
1208
- },
1209
- {
1210
- id: "jiekou",
1211
- name: "Jiekou.AI",
1212
- env: "JIEKOU_API_KEY",
1213
- headers: [{
1214
- name: "authorization",
1215
- scheme: "bearer"
1216
- }],
1217
- endpoints: [{
1218
- host: "api.jiekou.ai",
1219
- method: ["POST"],
1220
- path: { exact: "/openai/chat/completions" }
1221
- }]
1222
- },
1223
- {
1224
- id: "kenari",
1225
- name: "Kenari",
1226
- env: "KENARI_API_KEY",
1227
- headers: [{
1228
- name: "authorization",
1229
- scheme: "bearer"
1230
- }],
1231
- endpoints: [{
1232
- host: "kenari.id",
1233
- method: ["POST"],
1234
- path: { exact: "/v1/chat/completions" }
1235
- }]
1236
- },
1237
- {
1238
- id: "kilo",
1239
- name: "Kilo Gateway",
1240
- env: "KILO_API_KEY",
1241
- headers: [{
1242
- name: "authorization",
1243
- scheme: "bearer"
1244
- }],
1245
- endpoints: [{
1246
- host: "api.kilo.ai",
1247
- method: ["POST"],
1248
- path: { exact: "/api/gateway/chat/completions" }
1249
- }]
1250
- },
1251
- {
1252
- id: "kimi-code-plan-cn",
1253
- name: "Kimi For Coding (kimi.com)",
1254
- env: "KIMI_API_KEY",
1255
- headers: [{
1256
- name: "authorization",
1257
- scheme: "bearer"
1258
- }],
1259
- endpoints: [{
1260
- host: "api.kimi.com",
1261
- method: ["POST"],
1262
- path: { exact: "/coding/v1/chat/completions" }
1263
- }]
1264
- },
1265
- {
1266
- id: "kimi-code-plan-global",
1267
- name: "Kimi For Coding (kimi.ai)",
1268
- env: "KIMI_API_KEY",
1269
- headers: [{
1270
- name: "authorization",
1271
- scheme: "bearer"
1272
- }],
1273
- endpoints: [{
1274
- host: "api.kimi.ai",
1275
- method: ["POST"],
1276
- path: { exact: "/coding/v1/chat/completions" }
1277
- }]
1278
- },
1279
- {
1280
- id: "klokintegration",
1281
- name: "klokintegration.se",
1282
- env: "KLOKINTEGRATION_API_KEY",
1283
- headers: [{
1284
- name: "authorization",
1285
- scheme: "bearer"
1286
- }],
1287
- endpoints: [{
1288
- host: "api-gw.klok.ipaas.se",
1289
- method: ["POST"],
1290
- path: { exact: "/proxy/kloker-key/v1/chat/completions" }
1291
- }]
1292
- },
1293
- {
1294
- id: "kosmik",
1295
- name: "Kosmik Compute",
1296
- env: "KOSMIK_API_KEY",
1297
- headers: [{
1298
- name: "authorization",
1299
- scheme: "bearer"
1300
- }],
1301
- endpoints: [{
1302
- host: "api.koscompute.com",
1303
- method: ["POST"],
1304
- path: { exact: "/v1/chat/completions" }
1305
- }]
1306
- },
1307
- {
1308
- id: "kuae-cloud-coding-plan",
1309
- name: "KUAE Cloud Coding Plan",
1310
- env: "KUAE_API_KEY",
1311
- headers: [{
1312
- name: "authorization",
1313
- scheme: "bearer"
1314
- }],
1315
- endpoints: [{
1316
- host: "coding-plan-endpoint.kuaecloud.net",
1317
- method: ["POST"],
1318
- path: { exact: "/v1/chat/completions" }
1319
- }]
1320
- },
1321
- {
1322
- id: "lilac",
1323
- name: "Lilac",
1324
- env: "LILAC_API_KEY",
1325
- headers: [{
1326
- name: "authorization",
1327
- scheme: "bearer"
1328
- }],
1329
- endpoints: [{
1330
- host: "api.getlilac.com",
1331
- method: ["POST"],
1332
- path: { exact: "/v1/chat/completions" }
1333
- }]
1334
- },
1335
- {
1336
- id: "liquid",
1337
- name: "Liquid Inference",
1338
- env: "LIQUID_API_KEY",
1339
- headers: [{
1340
- name: "authorization",
1341
- scheme: "bearer"
1342
- }],
1343
- endpoints: [{
1344
- host: "router.inference.ai.exchange",
1345
- method: ["POST"],
1346
- path: { exact: "/v1/chat/completions" }
1347
- }]
1348
- },
1349
- {
1350
- id: "llama",
1351
- name: "Llama",
1352
- env: "LLAMA_API_KEY",
1353
- headers: [{
1354
- name: "authorization",
1355
- scheme: "bearer"
1356
- }],
1357
- endpoints: [{
1358
- host: "api.llama.com",
1359
- method: ["POST"],
1360
- path: { exact: "/compat/v1/chat/completions" }
1361
- }]
1362
- },
1363
- {
1364
- id: "llmgateway",
1365
- name: "DevPass (LLM Gateway)",
1366
- env: "LLMGATEWAY_API_KEY",
1367
- headers: [{
1368
- name: "authorization",
1369
- scheme: "bearer"
1370
- }],
1371
- endpoints: [{
1372
- host: "api.llmgateway.io",
1373
- method: ["POST"],
1374
- path: { exact: "/v1/chat/completions" }
1375
- }]
1376
- },
1377
- {
1378
- id: "llmgateway-providers",
1379
- name: "LLM Gateway",
1380
- env: "LLMGATEWAY_API_KEY",
1381
- headers: [{
1382
- name: "authorization",
1383
- scheme: "bearer"
1384
- }],
1385
- endpoints: [{
1386
- host: "api.llmgateway.io",
1387
- method: ["POST"],
1388
- path: { exact: "/v1/chat/completions" }
1389
- }]
1390
- },
1391
- {
1392
- id: "llmtech",
1393
- name: "LLM Tech",
1394
- env: "LLMTECH_API_KEY",
1395
- headers: [{
1396
- name: "authorization",
1397
- scheme: "bearer"
1398
- }],
1399
- endpoints: [{
1400
- host: "api.llmtech.eu",
1401
- method: ["POST"],
1402
- path: { exact: "/v1/chat/completions" }
1403
- }]
1404
- },
1405
- {
1406
- id: "llmtr",
1407
- name: "LLMTR",
1408
- env: "LLMTR_API_KEY",
1409
- headers: [{
1410
- name: "authorization",
1411
- scheme: "bearer"
1412
- }],
1413
- endpoints: [{
1414
- host: "llmtr.com",
1415
- method: ["POST"],
1416
- path: { exact: "/v1/chat/completions" }
1417
- }]
1418
- },
1419
- {
1420
- id: "longcat",
1421
- name: "LongCat",
1422
- env: "LONGCAT_API_KEY",
1423
- headers: [{
1424
- name: "authorization",
1425
- scheme: "bearer"
1426
- }],
1427
- endpoints: [{
1428
- host: "api.longcat.chat",
1429
- method: ["POST"],
1430
- path: { exact: "/openai/chat/completions" }
1431
- }]
1432
- },
1433
- {
1434
- id: "lowrouter",
1435
- name: "LowRouter",
1436
- env: "LOWROUTER_API_KEY",
1437
- headers: [{
1438
- name: "authorization",
1439
- scheme: "bearer"
1440
- }],
1441
- endpoints: [{
1442
- host: "api.lowrouter.ai",
1443
- method: ["POST"],
1444
- path: { exact: "/v1/chat/completions" }
1445
- }]
1446
- },
1447
- {
1448
- id: "lucidquery",
1449
- name: "LucidQuery",
1450
- env: "LUCIDQUERY_API_KEY",
1451
- headers: [{
1452
- name: "authorization",
1453
- scheme: "bearer"
1454
- }],
1455
- endpoints: [{
1456
- host: "api.lucidquery.com",
1457
- method: ["POST"],
1458
- path: { exact: "/v1/chat/completions" }
1459
- }]
1460
- },
1461
- {
1462
- id: "meganova",
1463
- name: "Meganova",
1464
- env: "MEGANOVA_API_KEY",
1465
- headers: [{
1466
- name: "authorization",
1467
- scheme: "bearer"
1468
- }],
1469
- endpoints: [{
1470
- host: "api.meganova.ai",
1471
- method: ["POST"],
1472
- path: { exact: "/v1/chat/completions" }
1473
- }]
1474
- },
1475
- {
1476
- id: "melious",
1477
- name: "Melious",
1478
- env: "MELIOUS_API_KEY",
1479
- headers: [{
1480
- name: "authorization",
1481
- scheme: "bearer"
1482
- }],
1483
- endpoints: [{
1484
- host: "api.melious.ai",
1485
- method: ["POST"],
1486
- path: { exact: "/v1/chat/completions" }
1487
- }]
1488
- },
1489
- {
1490
- id: "meta",
1491
- name: "Meta",
1492
- env: "META_MODEL_API_KEY",
1493
- headers: [{
1494
- name: "authorization",
1495
- scheme: "bearer"
1496
- }],
1497
- endpoints: [{
1498
- host: "api.meta.ai",
1499
- method: ["POST"],
1500
- path: { exact: "/v1/responses" }
1501
- }]
1502
- },
1503
- {
1504
- id: "minimax",
1505
- name: "MiniMax (minimax.io)",
1506
- env: "MINIMAX_API_KEY",
1507
- headers: [{
1508
- name: "authorization",
1509
- scheme: "bearer"
1510
- }],
1511
- endpoints: [{
1512
- host: "api.minimax.io",
1513
- method: ["POST"],
1514
- path: { exact: "/anthropic/v1/messages" }
1515
- }]
1516
- },
1517
- {
1518
- id: "minimax-cn",
1519
- name: "MiniMax (minimax.cn)",
1520
- env: "MINIMAX_API_KEY",
1521
- headers: [{
1522
- name: "authorization",
1523
- scheme: "bearer"
1524
- }],
1525
- endpoints: [{
1526
- host: "api.minimax.cn",
1527
- method: ["POST"],
1528
- path: { exact: "/anthropic/v1/messages" }
1529
- }]
1530
- },
1531
- {
1532
- id: "minimax-cn-coding-plan",
1533
- name: "MiniMax Token Plan (minimax.cn)",
1534
- env: "MINIMAX_API_KEY",
1535
- headers: [{
1536
- name: "authorization",
1537
- scheme: "bearer"
1538
- }],
1539
- endpoints: [{
1540
- host: "api.minimax.cn",
1541
- method: ["POST"],
1542
- path: { exact: "/anthropic/v1/messages" }
1543
- }]
1544
- },
1545
- {
1546
- id: "minimax-coding-plan",
1547
- name: "MiniMax Token Plan (minimax.io)",
1548
- env: "MINIMAX_API_KEY",
1549
- headers: [{
1550
- name: "authorization",
1551
- scheme: "bearer"
1552
- }],
1553
- endpoints: [{
1554
- host: "api.minimax.io",
1555
- method: ["POST"],
1556
- path: { exact: "/anthropic/v1/messages" }
1557
- }]
1558
- },
1559
- {
1560
- id: "mistral",
1561
- name: "Mistral",
1562
- env: "MISTRAL_API_KEY",
1563
- headers: [{
1564
- name: "authorization",
1565
- scheme: "bearer"
1566
- }],
1567
- endpoints: [{
1568
- host: "api.mistral.ai",
1569
- method: ["POST"],
1570
- path: { exact: "/v1/chat/completions" }
1571
- }]
1572
- },
1573
- {
1574
- id: "mixlayer",
1575
- name: "Mixlayer",
1576
- env: "MIXLAYER_API_KEY",
1577
- headers: [{
1578
- name: "authorization",
1579
- scheme: "bearer"
1580
- }],
1581
- endpoints: [{
1582
- host: "models.mixlayer.ai",
1583
- method: ["POST"],
1584
- path: { exact: "/v1/chat/completions" }
1585
- }]
1586
- },
1587
- {
1588
- id: "moark",
1589
- name: "Moark",
1590
- env: "MOARK_API_KEY",
1591
- headers: [{
1592
- name: "authorization",
1593
- scheme: "bearer"
1594
- }],
1595
- endpoints: [{
1596
- host: "moark.com",
1597
- method: ["POST"],
1598
- path: { exact: "/v1/chat/completions" }
1599
- }]
1600
- },
1601
- {
1602
- id: "modal",
1603
- name: "Modal",
1604
- env: "MODAL_PROXY_TOKEN",
1605
- headers: [{
1606
- name: "authorization",
1607
- scheme: "bearer"
1608
- }],
1609
- endpoints: [{
1610
- host: "inference.us-west.modal.direct",
1611
- method: ["GET"],
1612
- path: { exact: "/v1/models" }
1613
- }, {
1614
- host: "inference.us-west.modal.direct",
1615
- method: ["POST"],
1616
- path: { exact: "/v1/chat/completions" }
1617
- }]
1618
- },
1619
- {
1620
- id: "model-oracle-ai",
1621
- name: "Model Oracle AI",
1622
- env: "MODEL_ORACLE_API_KEY",
1623
- headers: [{
1624
- name: "authorization",
1625
- scheme: "bearer"
1626
- }],
1627
- endpoints: [{
1628
- host: "api.modeloracle.com",
1629
- method: ["POST"],
1630
- path: { exact: "/api/v1/chat/completions" }
1631
- }]
1632
- },
1633
- {
1634
- id: "modelis",
1635
- name: "Modelis",
1636
- env: "MODELIS_API_KEY",
1637
- headers: [{
1638
- name: "authorization",
1639
- scheme: "bearer"
1640
- }],
1641
- endpoints: [{
1642
- host: "modelishub.com",
1643
- method: ["POST"],
1644
- path: { exact: "/v1/chat/completions" }
1645
- }]
1646
- },
1647
- {
1648
- id: "modelscope",
1649
- name: "ModelScope",
1650
- env: "MODELSCOPE_API_KEY",
1651
- headers: [{
1652
- name: "authorization",
1653
- scheme: "bearer"
1654
- }],
1655
- endpoints: [{
1656
- host: "api-inference.modelscope.cn",
1657
- method: ["POST"],
1658
- path: { exact: "/v1/chat/completions" }
1659
- }]
1660
- },
1661
- {
1662
- id: "moonshotai",
1663
- name: "Moonshot AI",
1664
- env: "MOONSHOT_API_KEY",
1665
- headers: [{
1666
- name: "authorization",
1667
- scheme: "bearer"
1668
- }],
1669
- endpoints: [{
1670
- host: "api.moonshot.ai",
1671
- method: ["POST"],
1672
- path: { exact: "/v1/chat/completions" }
1673
- }]
1674
- },
1675
- {
1676
- id: "moonshotai-cn",
1677
- name: "Moonshot AI (China)",
1678
- env: "MOONSHOT_API_KEY",
1679
- headers: [{
1680
- name: "authorization",
1681
- scheme: "bearer"
1682
- }],
1683
- endpoints: [{
1684
- host: "api.moonshot.cn",
1685
- method: ["POST"],
1686
- path: { exact: "/v1/chat/completions" }
1687
- }]
1688
- },
1689
- {
1690
- id: "nan",
1691
- name: "NaN",
1692
- env: "NAN_API_KEY",
1693
- headers: [{
1694
- name: "authorization",
1695
- scheme: "bearer"
1696
- }],
1697
- endpoints: [{
1698
- host: "api.nan.builders",
1699
- method: ["POST"],
1700
- path: { exact: "/v1/chat/completions" }
1701
- }]
1702
- },
1703
- {
1704
- id: "nano-gpt",
1705
- name: "NanoGPT",
1706
- env: "NANO_GPT_API_KEY",
1707
- headers: [{
1708
- name: "authorization",
1709
- scheme: "bearer"
1710
- }],
1711
- endpoints: [{
1712
- host: "nano-gpt.com",
1713
- method: ["POST"],
1714
- path: { exact: "/api/v1/chat/completions" }
1715
- }]
1716
- },
1717
- {
1718
- id: "nearai",
1719
- name: "NEAR AI Cloud",
1720
- env: "NEARAI_API_KEY",
1721
- headers: [{
1722
- name: "authorization",
1723
- scheme: "bearer"
1724
- }],
1725
- endpoints: [{
1726
- host: "cloud-api.near.ai",
1727
- method: ["POST"],
1728
- path: { exact: "/v1/chat/completions" }
1729
- }]
1730
- },
1731
- {
1732
- id: "nebius",
1733
- name: "Nebius Token Factory",
1734
- env: "NEBIUS_API_KEY",
1735
- headers: [{
1736
- name: "authorization",
1737
- scheme: "bearer"
1738
- }],
1739
- endpoints: [{
1740
- host: "api.tokenfactory.nebius.com",
1741
- method: ["POST"],
1742
- path: { exact: "/v1/chat/completions" }
1743
- }]
1744
- },
1745
- {
1746
- id: "neosmith",
1747
- name: "NeoSmith",
1748
- env: "NEOSMITH_API_KEY",
1749
- headers: [{
1750
- name: "authorization",
1751
- scheme: "bearer"
1752
- }],
1753
- endpoints: [{
1754
- host: "router.neosmith.ai",
1755
- method: ["POST"],
1756
- path: { exact: "/v1/responses" }
1757
- }]
1758
- },
1759
- {
1760
- id: "neuralwatt",
1761
- name: "Neuralwatt",
1762
- env: "NEURALWATT_API_KEY",
1763
- headers: [{
1764
- name: "authorization",
1765
- scheme: "bearer"
1766
- }],
1767
- endpoints: [{
1768
- host: "api.neuralwatt.com",
1769
- method: ["POST"],
1770
- path: { exact: "/v1/chat/completions" }
1771
- }]
1772
- },
1773
- {
1774
- id: "nova",
1775
- name: "Nova",
1776
- env: "NOVA_API_KEY",
1777
- headers: [{
1778
- name: "authorization",
1779
- scheme: "bearer"
1780
- }],
1781
- endpoints: [{
1782
- host: "api.nova.amazon.com",
1783
- method: ["POST"],
1784
- path: { exact: "/v1/chat/completions" }
1785
- }]
1786
- },
1787
- {
1788
- id: "novita-ai",
1789
- name: "Novita AI",
1790
- env: "NOVITA_API_KEY",
1791
- headers: [{
1792
- name: "authorization",
1793
- scheme: "bearer"
1794
- }],
1795
- endpoints: [{
1796
- host: "api.novita.ai",
1797
- method: ["POST"],
1798
- path: { exact: "/openai/chat/completions" }
1799
- }]
1800
- },
1801
- {
1802
- id: "nvidia",
1803
- name: "Nvidia",
1804
- env: "NVIDIA_API_KEY",
1805
- headers: [{
1806
- name: "authorization",
1807
- scheme: "bearer"
1808
- }],
1809
- endpoints: [{
1810
- host: "integrate.api.nvidia.com",
1811
- method: ["POST"],
1812
- path: { exact: "/v1/chat/completions" }
1813
- }]
1814
- },
1815
- {
1816
- id: "oci",
1817
- name: "OCI Generative AI",
1818
- env: "OCI_GENAI_API_KEY",
1819
- headers: [{
1820
- name: "authorization",
1821
- scheme: "bearer"
1822
- }],
1823
- endpoints: [{
1824
- host: "inference.generativeai.us-chicago-1.oci.oraclecloud.com",
1825
- method: ["POST"],
1826
- path: { exact: "/openai/v1/chat/completions" }
1827
- }]
1828
- },
1829
- {
1830
- id: "ofox",
1831
- name: "Ofox",
1832
- env: "OFOX_API_KEY",
1833
- headers: [
1834
- {
1835
- name: "authorization",
1836
- scheme: "bearer"
1837
- },
1838
- {
1839
- name: "x-goog-api-key",
1840
- scheme: "raw"
1841
- },
1842
- {
1843
- name: "x-api-key",
1844
- scheme: "raw"
1845
- }
1846
- ],
1847
- endpoints: [
1848
- {
1849
- host: "api.ofox.ai",
1850
- method: ["POST"],
1851
- path: { exact: "/anthropic/v1/messages" }
1852
- },
1853
- {
1854
- host: "api.ofox.ai",
1855
- method: ["POST"],
1856
- path: { exact: "/v1/chat/completions" }
1857
- },
1858
- {
1859
- host: "api.ofox.ai",
1860
- method: ["POST"],
1861
- path: { exact: "/v1/responses" }
1862
- },
1863
- {
1864
- host: "api.ofox.ai",
1865
- method: ["POST"],
1866
- path: { regex: "^/gemini/v1beta/models/([^/]+):streamGenerateContent$" }
1867
- }
1868
- ]
1869
- },
1870
- {
1871
- id: "ollama-cloud",
1872
- name: "Ollama Cloud",
1873
- env: "OLLAMA_API_KEY",
1874
- headers: [{
1875
- name: "authorization",
1876
- scheme: "bearer"
1877
- }],
1878
- endpoints: [{
1879
- host: "ollama.com",
1880
- method: ["POST"],
1881
- path: { exact: "/v1/chat/completions" }
1882
- }]
1883
- },
1884
- {
1885
- id: "openai",
1886
- name: "OpenAI",
1887
- env: "OPENAI_API_KEY",
1888
- headers: [{
1889
- name: "authorization",
1890
- scheme: "bearer"
1891
- }],
1892
- endpoints: [{
1893
- host: "api.openai.com",
1894
- method: ["POST"],
1895
- path: { exact: "/v1/responses" }
1896
- }]
1897
- },
1898
- {
1899
- id: "opencode",
1900
- name: "OpenCode Console",
1901
- env: "OPENCODE_API_KEY",
1902
- headers: [
1903
- {
1904
- name: "authorization",
1905
- scheme: "bearer"
1906
- },
1907
- {
1908
- name: "x-goog-api-key",
1909
- scheme: "raw"
1910
- },
1911
- {
1912
- name: "x-api-key",
1913
- scheme: "raw"
1914
- }
1915
- ],
1916
- endpoints: [
1917
- {
1918
- host: "opencode.ai",
1919
- method: ["GET"],
1920
- path: { exact: "/console/api/v2/config" }
1921
- },
1922
- {
1923
- host: "opencode.ai",
1924
- method: ["POST"],
1925
- path: { exact: "/inference/anthropic/v1/messages" }
1926
- },
1927
- {
1928
- host: "opencode.ai",
1929
- method: ["POST"],
1930
- path: { exact: "/inference/openai/v1/chat/completions" }
1931
- },
1932
- {
1933
- host: "opencode.ai",
1934
- method: ["POST"],
1935
- path: { exact: "/inference/openai/v1/responses" }
1936
- },
1937
- {
1938
- host: "opencode.ai",
1939
- method: ["POST"],
1940
- path: { regex: "^/inference/google/v1beta/models/([^/]+):streamGenerateContent$" }
1941
- }
1942
- ]
1943
- },
1944
- {
1945
- id: "opencode-go",
1946
- name: "OpenCode Go",
1947
- env: "OPENCODE_API_KEY",
1948
- headers: [
1949
- {
1950
- name: "authorization",
1951
- scheme: "bearer"
1952
- },
1953
- {
1954
- name: "x-goog-api-key",
1955
- scheme: "raw"
1956
- },
1957
- {
1958
- name: "x-api-key",
1959
- scheme: "raw"
1960
- }
1961
- ],
1962
- endpoints: [
1963
- {
1964
- host: "opencode.ai",
1965
- method: ["GET"],
1966
- path: { exact: "/console/api/v2/config" }
1967
- },
1968
- {
1969
- host: "opencode.ai",
1970
- method: ["POST"],
1971
- path: { exact: "/inference/go/anthropic/v1/messages" }
1972
- },
1973
- {
1974
- host: "opencode.ai",
1975
- method: ["POST"],
1976
- path: { exact: "/inference/go/openai/v1/chat/completions" }
1977
- },
1978
- {
1979
- host: "opencode.ai",
1980
- method: ["POST"],
1981
- path: { exact: "/inference/go/openai/v1/responses" }
1982
- },
1983
- {
1984
- host: "opencode.ai",
1985
- method: ["POST"],
1986
- path: { regex: "^/inference/go/google/v1beta/models/([^/]+):streamGenerateContent$" }
1987
- }
1988
- ]
1989
- },
1990
- {
1991
- id: "openreason",
1992
- name: "OpenReason",
1993
- env: "OPENREASON_API_KEY",
1994
- headers: [{
1995
- name: "authorization",
1996
- scheme: "bearer"
1997
- }],
1998
- endpoints: [{
1999
- host: "api.openreason.app",
2000
- method: ["POST"],
2001
- path: { exact: "/v1/chat/completions" }
2002
- }]
2003
- },
2004
- {
2005
- id: "openrouter",
2006
- name: "OpenRouter",
2007
- env: "OPENROUTER_API_KEY",
2008
- headers: [{
2009
- name: "authorization",
2010
- scheme: "bearer"
2011
- }],
2012
- endpoints: [{
2013
- host: "openrouter.ai",
2014
- method: ["POST"],
2015
- path: { exact: "/api/v1/chat/completions" }
2016
- }]
2017
- },
2018
- {
2019
- id: "opper",
2020
- name: "Opper",
2021
- env: "OPPER_API_KEY",
2022
- headers: [{
2023
- name: "authorization",
2024
- scheme: "bearer"
2025
- }],
2026
- endpoints: [{
2027
- host: "api.opper.ai",
2028
- method: ["POST"],
2029
- path: { exact: "/v3/compat/chat/completions" }
2030
- }]
2031
- },
2032
- {
2033
- id: "orcarouter",
2034
- name: "OrcaRouter",
2035
- env: "ORCAROUTER_API_KEY",
2036
- headers: [{
2037
- name: "authorization",
2038
- scheme: "bearer"
2039
- }],
2040
- endpoints: [{
2041
- host: "api.orcarouter.ai",
2042
- method: ["POST"],
2043
- path: { exact: "/v1/chat/completions" }
2044
- }]
2045
- },
2046
- {
2047
- id: "ovhcloud",
2048
- name: "OVHcloud AI Endpoints",
2049
- env: "OVHCLOUD_API_KEY",
2050
- headers: [{
2051
- name: "authorization",
2052
- scheme: "bearer"
2053
- }],
2054
- endpoints: [{
2055
- host: "oai.endpoints.kepler.ai.cloud.ovh.net",
2056
- method: ["POST"],
2057
- path: { exact: "/v1/chat/completions" }
2058
- }]
2059
- },
2060
- {
2061
- id: "pareto",
2062
- name: "Pareto Inference",
2063
- env: "PARETO_API_KEY",
2064
- headers: [{
2065
- name: "authorization",
2066
- scheme: "bearer"
2067
- }],
2068
- endpoints: [{
2069
- host: "api.paretoinference.com",
2070
- method: ["POST"],
2071
- path: { exact: "/v1/chat/completions" }
2072
- }]
2073
- },
2074
- {
2075
- id: "pendra",
2076
- name: "Pendra",
2077
- env: "PENDRA_API_KEY",
2078
- headers: [{
2079
- name: "authorization",
2080
- scheme: "bearer"
2081
- }],
2082
- endpoints: [{
2083
- host: "api.pendra.ai",
2084
- method: ["POST"],
2085
- path: { exact: "/api/v1/chat/completions" }
2086
- }]
2087
- },
2088
- {
2089
- id: "perplexity-agent",
2090
- name: "Perplexity Agent",
2091
- env: "PERPLEXITY_API_KEY",
2092
- headers: [{
2093
- name: "authorization",
2094
- scheme: "bearer"
2095
- }],
2096
- endpoints: [{
2097
- host: "api.perplexity.ai",
2098
- method: ["POST"],
2099
- path: { exact: "/v1/responses" }
2100
- }]
2101
- },
2102
- {
2103
- id: "pioneer",
2104
- name: "Pioneer",
2105
- env: "PIONEER_API_KEY",
2106
- headers: [{
2107
- name: "authorization",
2108
- scheme: "bearer"
2109
- }],
2110
- endpoints: [{
2111
- host: "api.fastino.ai",
2112
- method: ["POST"],
2113
- path: { exact: "/v1/chat/completions" }
2114
- }]
2115
- },
2116
- {
2117
- id: "poe",
2118
- name: "Poe",
2119
- env: "POE_API_KEY",
2120
- headers: [{
2121
- name: "authorization",
2122
- scheme: "bearer"
2123
- }],
2124
- endpoints: [{
2125
- host: "api.poe.com",
2126
- method: ["POST"],
2127
- path: { exact: "/v1/chat/completions" }
2128
- }]
2129
- },
2130
- {
2131
- id: "poolside",
2132
- name: "Poolside",
2133
- env: "POOLSIDE_API_KEY",
2134
- headers: [{
2135
- name: "authorization",
2136
- scheme: "bearer"
2137
- }],
2138
- endpoints: [{
2139
- host: "inference.poolside.ai",
2140
- method: ["POST"],
2141
- path: { exact: "/v1/chat/completions" }
2142
- }]
2143
- },
2144
- {
2145
- id: "prime",
2146
- name: "Prime Inference",
2147
- env: "PRIME_API_KEY",
2148
- headers: [{
2149
- name: "authorization",
2150
- scheme: "bearer"
2151
- }],
2152
- endpoints: [{
2153
- host: "api.pinference.ai",
2154
- method: ["POST"],
2155
- path: { exact: "/api/v1/chat/completions" }
2156
- }]
2157
- },
2158
- {
2159
- id: "qihang-ai",
2160
- name: "QiHang",
2161
- env: "QIHANG_API_KEY",
2162
- headers: [{
2163
- name: "authorization",
2164
- scheme: "bearer"
2165
- }],
2166
- endpoints: [{
2167
- host: "api.qhaigc.net",
2168
- method: ["POST"],
2169
- path: { exact: "/v1/chat/completions" }
2170
- }]
2171
- },
2172
- {
2173
- id: "qiniu-ai",
2174
- name: "Qiniu",
2175
- env: "QINIU_API_KEY",
2176
- headers: [{
2177
- name: "authorization",
2178
- scheme: "bearer"
2179
- }],
2180
- endpoints: [{
2181
- host: "api.qnaigc.com",
2182
- method: ["POST"],
2183
- path: { exact: "/v1/chat/completions" }
2184
- }]
2185
- },
2186
- {
2187
- id: "reflection",
2188
- name: "Reflection",
2189
- env: "REFLECTION_API_KEY",
2190
- headers: [{
2191
- name: "authorization",
2192
- scheme: "bearer"
2193
- }],
2194
- endpoints: [{
2195
- host: "api.reflection.ai",
2196
- method: ["POST"],
2197
- path: { exact: "/openai/v1/chat/completions" }
2198
- }]
2199
- },
2200
- {
2201
- id: "regolo-ai",
2202
- name: "Regolo AI",
2203
- env: "REGOLO_API_KEY",
2204
- headers: [{
2205
- name: "authorization",
2206
- scheme: "bearer"
2207
- }],
2208
- endpoints: [{
2209
- host: "api.regolo.ai",
2210
- method: ["POST"],
2211
- path: { exact: "/v1/chat/completions" }
2212
- }]
2213
- },
2214
- {
2215
- id: "requesty",
2216
- name: "Requesty",
2217
- env: "REQUESTY_API_KEY",
2218
- headers: [{
2219
- name: "authorization",
2220
- scheme: "bearer"
2221
- }],
2222
- endpoints: [{
2223
- host: "router.requesty.ai",
2224
- method: ["POST"],
2225
- path: { exact: "/v1/chat/completions" }
2226
- }]
2227
- },
2228
- {
2229
- id: "routing-run",
2230
- name: "routing.run",
2231
- env: "ROUTING_RUN_API_KEY",
2232
- headers: [{
2233
- name: "authorization",
2234
- scheme: "bearer"
2235
- }],
2236
- endpoints: [{
2237
- host: "api.routing.run",
2238
- method: ["POST"],
2239
- path: { exact: "/v1/chat/completions" }
2240
- }]
2241
- },
2242
- {
2243
- id: "runinfra",
2244
- name: "RunInfra",
2245
- env: "RUNINFRA_GATEWAY_KEY",
2246
- headers: [{
2247
- name: "authorization",
2248
- scheme: "bearer"
2249
- }],
2250
- endpoints: [{
2251
- host: "api.runinfra.ai",
2252
- method: ["POST"],
2253
- path: { exact: "/v1/chat/completions" }
2254
- }]
2255
- },
2256
- {
2257
- id: "sakana",
2258
- name: "Sakana AI",
2259
- env: "SAKANA_API_KEY",
2260
- headers: [{
2261
- name: "authorization",
2262
- scheme: "bearer"
2263
- }],
2264
- endpoints: [{
2265
- host: "api.sakana.ai",
2266
- method: ["POST"],
2267
- path: { exact: "/v1/chat/completions" }
2268
- }]
2269
- },
2270
- {
2271
- id: "sambanova",
2272
- name: "SambaNova",
2273
- env: "SAMBANOVA_API_KEY",
2274
- headers: [{
2275
- name: "authorization",
2276
- scheme: "bearer"
2277
- }],
2278
- endpoints: [{
2279
- host: "api.sambanova.ai",
2280
- method: ["POST"],
2281
- path: { exact: "/v1/chat/completions" }
2282
- }]
2283
- },
2284
- {
2285
- id: "sarvam",
2286
- name: "Sarvam AI",
2287
- env: "SARVAM_API_KEY",
2288
- headers: [{
2289
- name: "authorization",
2290
- scheme: "bearer"
2291
- }],
2292
- endpoints: [{
2293
- host: "api.sarvam.ai",
2294
- method: ["POST"],
2295
- path: { exact: "/v1/chat/completions" }
2296
- }]
2297
- },
2298
- {
2299
- id: "scaleway",
2300
- name: "Scaleway",
2301
- env: "SCALEWAY_API_KEY",
2302
- headers: [{
2303
- name: "authorization",
2304
- scheme: "bearer"
2305
- }],
2306
- endpoints: [{
2307
- host: "api.scaleway.ai",
2308
- method: ["POST"],
2309
- path: { exact: "/v1/chat/completions" }
2310
- }]
2311
- },
2312
- {
2313
- id: "scnet-token-plan",
2314
- name: "SCNet Token Plan",
2315
- env: "SCNET_API_KEY",
2316
- headers: [{
2317
- name: "authorization",
2318
- scheme: "bearer"
2319
- }],
2320
- endpoints: [{
2321
- host: "api.scnet.cn",
2322
- method: ["POST"],
2323
- path: { exact: "/api/llm/v1/chat/completions" }
2324
- }]
2325
- },
2326
- {
2327
- id: "scx-ai",
2328
- name: "SCX.ai",
2329
- env: "SCX_API_KEY",
2330
- headers: [{
2331
- name: "authorization",
2332
- scheme: "bearer"
2333
- }],
2334
- endpoints: [{
2335
- host: "api.scx.ai",
2336
- method: ["POST"],
2337
- path: { exact: "/v1/chat/completions" }
2338
- }]
2339
- },
2340
- {
2341
- id: "sensenova",
2342
- name: "SenseNova (China)",
2343
- env: "SENSENOVA_API_KEY",
2344
- headers: [{
2345
- name: "authorization",
2346
- scheme: "bearer"
2347
- }],
2348
- endpoints: [{
2349
- host: "token.sensenova.cn",
2350
- method: ["POST"],
2351
- path: { exact: "/v1/chat/completions" }
2352
- }]
2353
- },
2354
- {
2355
- id: "siliconflow",
2356
- name: "SiliconFlow",
2357
- env: "SILICONFLOW_API_KEY",
2358
- headers: [{
2359
- name: "authorization",
2360
- scheme: "bearer"
2361
- }],
2362
- endpoints: [{
2363
- host: "api.siliconflow.com",
2364
- method: ["POST"],
2365
- path: { exact: "/v1/chat/completions" }
2366
- }]
2367
- },
2368
- {
2369
- id: "siliconflow-cn",
2370
- name: "SiliconFlow (China)",
2371
- env: "SILICONFLOW_CN_API_KEY",
2372
- headers: [{
2373
- name: "authorization",
2374
- scheme: "bearer"
2375
- }],
2376
- endpoints: [{
2377
- host: "api.siliconflow.cn",
2378
- method: ["POST"],
2379
- path: { exact: "/v1/chat/completions" }
2380
- }]
2381
- },
2382
- {
2383
- id: "stackit",
2384
- name: "STACKIT",
2385
- env: "STACKIT_API_KEY",
2386
- headers: [{
2387
- name: "authorization",
2388
- scheme: "bearer"
2389
- }],
2390
- endpoints: [{
2391
- host: "api.openai-compat.model-serving.eu01.onstackit.cloud",
2392
- method: ["POST"],
2393
- path: { exact: "/v1/chat/completions" }
2394
- }]
2395
- },
2396
- {
2397
- id: "standardcompute",
2398
- name: "Standard Compute",
2399
- env: "STANDARDCOMPUTE_API_KEY",
2400
- headers: [{
2401
- name: "authorization",
2402
- scheme: "bearer"
2403
- }],
2404
- endpoints: [{
2405
- host: "api.stdcmpt.com",
2406
- method: ["POST"],
2407
- path: { exact: "/v1/chat/completions" }
2408
- }]
2409
- },
2410
- {
2411
- id: "stepfun",
2412
- name: "StepFun (China)",
2413
- env: "STEPFUN_API_KEY",
2414
- headers: [{
2415
- name: "authorization",
2416
- scheme: "bearer"
2417
- }],
2418
- endpoints: [{
2419
- host: "api.stepfun.com",
2420
- method: ["POST"],
2421
- path: { exact: "/v1/chat/completions" }
2422
- }]
2423
- },
2424
- {
2425
- id: "stepfun-ai",
2426
- name: "StepFun (Global)",
2427
- env: "STEPFUN_API_KEY",
2428
- headers: [{
2429
- name: "authorization",
2430
- scheme: "bearer"
2431
- }],
2432
- endpoints: [{
2433
- host: "api.stepfun.ai",
2434
- method: ["POST"],
2435
- path: { exact: "/v1/chat/completions" }
2436
- }]
2437
- },
2438
- {
2439
- id: "stepfun-ai-step-plan",
2440
- name: "StepFun Step Plan (Global)",
2441
- env: "STEPFUN_API_KEY",
2442
- headers: [{
2443
- name: "authorization",
2444
- scheme: "bearer"
2445
- }],
2446
- endpoints: [{
2447
- host: "api.stepfun.ai",
2448
- method: ["POST"],
2449
- path: { exact: "/step_plan/v1/chat/completions" }
2450
- }]
2451
- },
2452
- {
2453
- id: "stepfun-step-plan",
2454
- name: "StepFun Step Plan (China)",
2455
- env: "STEPFUN_API_KEY",
2456
- headers: [{
2457
- name: "authorization",
2458
- scheme: "bearer"
2459
- }],
2460
- endpoints: [{
2461
- host: "api.stepfun.com",
2462
- method: ["POST"],
2463
- path: { exact: "/step_plan/v1/chat/completions" }
2464
- }]
2465
- },
2466
- {
2467
- id: "subconscious",
2468
- name: "Subconscious",
2469
- env: "SUBCONSCIOUS_API_KEY",
2470
- headers: [{
2471
- name: "x-api-key",
2472
- scheme: "raw"
2473
- }],
2474
- endpoints: [{
2475
- host: "api.subconscious.dev",
2476
- method: ["POST"],
2477
- path: { exact: "/v1/messages" }
2478
- }]
2479
- },
2480
- {
2481
- id: "submodel",
2482
- name: "submodel",
2483
- env: "SUBMODEL_INSTAGEN_ACCESS_KEY",
2484
- headers: [{
2485
- name: "authorization",
2486
- scheme: "bearer"
2487
- }],
2488
- endpoints: [{
2489
- host: "llm.submodel.ai",
2490
- method: ["POST"],
2491
- path: { exact: "/v1/chat/completions" }
2492
- }]
2493
- },
2494
- {
2495
- id: "synthetic",
2496
- name: "Synthetic",
2497
- env: "SYNTHETIC_API_KEY",
2498
- headers: [{
2499
- name: "authorization",
2500
- scheme: "bearer"
2501
- }],
2502
- endpoints: [{
2503
- host: "api.synthetic.new",
2504
- method: ["POST"],
2505
- path: { exact: "/openai/v1/chat/completions" }
2506
- }]
2507
- },
2508
- {
2509
- id: "tempr",
2510
- name: "Tempr Gateway",
2511
- env: "TEMPR_API_KEY",
2512
- headers: [{
2513
- name: "authorization",
2514
- scheme: "bearer"
2515
- }],
2516
- endpoints: [{
2517
- host: "api.temprhq.io",
2518
- method: ["POST"],
2519
- path: { exact: "/v1/chat/completions" }
2520
- }]
2521
- },
2522
- {
2523
- id: "tencent-coding-plan",
2524
- name: "Tencent Coding Plan (China)",
2525
- env: "TENCENT_CODING_PLAN_API_KEY",
2526
- headers: [{
2527
- name: "authorization",
2528
- scheme: "bearer"
2529
- }],
2530
- endpoints: [{
2531
- host: "api.lkeap.cloud.tencent.com",
2532
- method: ["POST"],
2533
- path: { exact: "/coding/v3/chat/completions" }
2534
- }]
2535
- },
2536
- {
2537
- id: "tencent-token-plan",
2538
- name: "Tencent Token Plan",
2539
- env: "TENCENT_TOKEN_PLAN_API_KEY",
2540
- headers: [{
2541
- name: "authorization",
2542
- scheme: "bearer"
2543
- }],
2544
- endpoints: [{
2545
- host: "api.lkeap.cloud.tencent.com",
2546
- method: ["POST"],
2547
- path: { exact: "/plan/v3/chat/completions" }
2548
- }]
2549
- },
2550
- {
2551
- id: "tencent-tokenhub",
2552
- name: "Tencent TokenHub",
2553
- env: "TENCENT_TOKENHUB_API_KEY",
2554
- headers: [{
2555
- name: "authorization",
2556
- scheme: "bearer"
2557
- }],
2558
- endpoints: [{
2559
- host: "tokenhub.tencentmaas.com",
2560
- method: ["POST"],
2561
- path: { exact: "/v1/chat/completions" }
2562
- }]
2563
- },
2564
- {
2565
- id: "tensorx",
2566
- name: "TensorX",
2567
- env: "TENSORX_API_KEY",
2568
- headers: [{
2569
- name: "authorization",
2570
- scheme: "bearer"
2571
- }],
2572
- endpoints: [{
2573
- host: "api.tensorx.ai",
2574
- method: ["POST"],
2575
- path: { exact: "/v1/chat/completions" }
2576
- }]
2577
- },
2578
- {
2579
- id: "the-grid-ai",
2580
- name: "The Grid AI",
2581
- env: "THEGRID_API_KEY",
2582
- headers: [{
2583
- name: "authorization",
2584
- scheme: "bearer"
2585
- }],
2586
- endpoints: [{
2587
- host: "api.thegrid.ai",
2588
- method: ["POST"],
2589
- path: { exact: "/v1/chat/completions" }
2590
- }]
2591
- },
2592
- {
2593
- id: "thinkingmachines",
2594
- name: "Thinking Machines",
2595
- env: "TINKER_API_KEY",
2596
- headers: [{
2597
- name: "x-api-key",
2598
- scheme: "raw"
2599
- }],
2600
- endpoints: [{
2601
- host: "tinker.thinkingmachines.dev",
2602
- method: ["POST"],
2603
- path: { exact: "/services/tinker-prod/anthropic/api/v1/messages" }
2604
- }]
2605
- },
2606
- {
2607
- id: "tinfoil",
2608
- name: "Tinfoil",
2609
- env: "TINFOIL_API_KEY",
2610
- headers: [{
2611
- name: "authorization",
2612
- scheme: "bearer"
2613
- }],
2614
- endpoints: [{
2615
- host: "inference.tinfoil.sh",
2616
- method: ["POST"],
2617
- path: { exact: "/v1/chat/completions" }
2618
- }]
2619
- },
2620
- {
2621
- id: "togetherai",
2622
- name: "Together AI",
2623
- env: "TOGETHER_API_KEY",
2624
- headers: [{
2625
- name: "authorization",
2626
- scheme: "bearer"
2627
- }],
2628
- endpoints: [{
2629
- host: "api.together.xyz",
2630
- method: ["POST"],
2631
- path: { exact: "/v1/chat/completions" }
2632
- }]
2633
- },
2634
- {
2635
- id: "tokengo",
2636
- name: "TokenGo",
2637
- env: "TOKENGO_API_KEY",
2638
- headers: [{
2639
- name: "authorization",
2640
- scheme: "bearer"
2641
- }],
2642
- endpoints: [{
2643
- host: "api.tokengo.com",
2644
- method: ["POST"],
2645
- path: { exact: "/v1/chat/completions" }
2646
- }]
2647
- },
2648
- {
2649
- id: "tokenrouter",
2650
- name: "TokenRouter",
2651
- env: "TOKENROUTER_API_KEY",
2652
- headers: [{
2653
- name: "authorization",
2654
- scheme: "bearer"
2655
- }],
2656
- endpoints: [{
2657
- host: "api.tokenrouter.com",
2658
- method: ["POST"],
2659
- path: { exact: "/v1/chat/completions" }
2660
- }]
2661
- },
2662
- {
2663
- id: "trustedrouter",
2664
- name: "TrustedRouter",
2665
- env: "TRUSTEDROUTER_API_KEY",
2666
- headers: [{
2667
- name: "authorization",
2668
- scheme: "bearer"
2669
- }],
2670
- endpoints: [{
2671
- host: "api.trustedrouter.com",
2672
- method: ["POST"],
2673
- path: { exact: "/v1/chat/completions" }
2674
- }]
2675
- },
2676
- {
2677
- id: "umans-ai",
2678
- name: "Umans AI",
2679
- env: "UMANS_AI_API_KEY",
2680
- headers: [{
2681
- name: "authorization",
2682
- scheme: "bearer"
2683
- }],
2684
- endpoints: [{
2685
- host: "api.code.umans.ai",
2686
- method: ["POST"],
2687
- path: { exact: "/v1/chat/completions" }
2688
- }]
2689
- },
2690
- {
2691
- id: "umans-ai-coding-plan",
2692
- name: "Umans AI Coding Plan",
2693
- env: "UMANS_AI_CODING_PLAN_API_KEY",
2694
- headers: [{
2695
- name: "authorization",
2696
- scheme: "bearer"
2697
- }],
2698
- endpoints: [{
2699
- host: "api.code.umans.ai",
2700
- method: ["POST"],
2701
- path: { exact: "/v1/chat/completions" }
2702
- }]
2703
- },
2704
- {
2705
- id: "unorouter",
2706
- name: "UnoRouter",
2707
- env: "UNOROUTER_API_KEY",
2708
- headers: [{
2709
- name: "authorization",
2710
- scheme: "bearer"
2711
- }],
2712
- endpoints: [{
2713
- host: "api.unorouter.com",
2714
- method: ["POST"],
2715
- path: { exact: "/v1/chat/completions" }
2716
- }]
2717
- },
2718
- {
2719
- id: "upstage",
2720
- name: "Upstage",
2721
- env: "UPSTAGE_API_KEY",
2722
- headers: [{
2723
- name: "authorization",
2724
- scheme: "bearer"
2725
- }],
2726
- endpoints: [{
2727
- host: "api.upstage.ai",
2728
- method: ["POST"],
2729
- path: { exact: "/v1/solar/chat/completions" }
2730
- }]
2731
- },
2732
- {
2733
- id: "vancine",
2734
- name: "Vancine",
2735
- env: "VANCINE_API_KEY",
2736
- headers: [{
2737
- name: "authorization",
2738
- scheme: "bearer"
2739
- }],
2740
- endpoints: [{
2741
- host: "vancine.com",
2742
- method: ["POST"],
2743
- path: { exact: "/v1/chat/completions" }
2744
- }]
2745
- },
2746
- {
2747
- id: "venice",
2748
- name: "Venice AI",
2749
- env: "VENICE_API_KEY",
2750
- headers: [{
2751
- name: "authorization",
2752
- scheme: "bearer"
2753
- }],
2754
- endpoints: [{
2755
- host: "api.venice.ai",
2756
- method: ["POST"],
2757
- path: { exact: "/api/v1/chat/completions" }
2758
- }]
2759
- },
2760
- {
2761
- id: "vercel",
2762
- name: "Vercel AI Gateway",
2763
- env: "AI_GATEWAY_API_KEY",
2764
- headers: [{
2765
- name: "authorization",
2766
- scheme: "bearer"
2767
- }],
2768
- endpoints: [{
2769
- host: "ai-gateway.vercel.sh",
2770
- method: ["POST"],
2771
- path: { exact: "/v1/messages" }
2772
- }, {
2773
- host: "ai-gateway.vercel.sh",
2774
- method: ["POST"],
2775
- path: { exact: "/v4/ai/messages" }
2776
- }]
2777
- },
2778
- {
2779
- id: "vispark",
2780
- name: "Vispark",
2781
- env: "VISPARK_LAB_API_KEY",
2782
- headers: [{
2783
- name: "authorization",
2784
- scheme: "bearer"
2785
- }],
2786
- endpoints: [{
2787
- host: "api.lab.vispark.in",
2788
- method: ["POST"],
2789
- path: { exact: "/v1/chat/completions" }
2790
- }]
2791
- },
2792
- {
2793
- id: "vivgrid",
2794
- name: "Vivgrid",
2795
- env: "VIVGRID_API_KEY",
2796
- headers: [{
2797
- name: "x-api-key",
2798
- scheme: "raw"
2799
- }, {
2800
- name: "authorization",
2801
- scheme: "bearer"
2802
- }],
2803
- endpoints: [{
2804
- host: "api.vivgrid.com",
2805
- method: ["POST"],
2806
- path: { exact: "/v1/messages" }
2807
- }, {
2808
- host: "api.vivgrid.com",
2809
- method: ["POST"],
2810
- path: { exact: "/v1/responses" }
2811
- }]
2812
- },
2813
- {
2814
- id: "volcengine",
2815
- name: "Volcengine Ark",
2816
- env: "ARK_API_KEY",
2817
- headers: [{
2818
- name: "authorization",
2819
- scheme: "bearer"
2820
- }],
2821
- endpoints: [{
2822
- host: "ark.cn-beijing.volces.com",
2823
- method: ["POST"],
2824
- path: { exact: "/api/v3/chat/completions" }
2825
- }]
2826
- },
2827
- {
2828
- id: "volcengine-coding-plan",
2829
- name: "Volcengine Ark Coding Plan",
2830
- env: "ARK_CODING_PLAN_API_KEY",
2831
- headers: [{
2832
- name: "authorization",
2833
- scheme: "bearer"
2834
- }],
2835
- endpoints: [{
2836
- host: "ark.cn-beijing.volces.com",
2837
- method: ["POST"],
2838
- path: { exact: "/api/coding/v3/chat/completions" }
2839
- }]
2840
- },
2841
- {
2842
- id: "vultr",
2843
- name: "Vultr",
2844
- env: "VULTR_API_KEY",
2845
- headers: [{
2846
- name: "authorization",
2847
- scheme: "bearer"
2848
- }],
2849
- endpoints: [{
2850
- host: "api.vultrinference.com",
2851
- method: ["POST"],
2852
- path: { exact: "/v1/chat/completions" }
2853
- }]
2854
- },
2855
- {
2856
- id: "wafer.ai",
2857
- name: "Wafer",
2858
- env: "WAFER_API_KEY",
2859
- headers: [{
2860
- name: "authorization",
2861
- scheme: "bearer"
2862
- }],
2863
- endpoints: [{
2864
- host: "pass.wafer.ai",
2865
- method: ["POST"],
2866
- path: { exact: "/v1/chat/completions" }
2867
- }]
2868
- },
2869
- {
2870
- id: "wallaby",
2871
- name: "Wallaby",
2872
- env: "WALLABY_API_KEY",
2873
- headers: [{
2874
- name: "authorization",
2875
- scheme: "bearer"
2876
- }],
2877
- endpoints: [{
2878
- host: "api.wallabytoken.com",
2879
- method: ["POST"],
2880
- path: { exact: "/v1/chat/completions" }
2881
- }]
2882
- },
2883
- {
2884
- id: "wandb",
2885
- name: "CoreWeave",
2886
- env: "WANDB_API_KEY",
2887
- headers: [{
2888
- name: "authorization",
2889
- scheme: "bearer"
2890
- }],
2891
- endpoints: [{
2892
- host: "api.inference.wandb.ai",
2893
- method: ["POST"],
2894
- path: { exact: "/v1/chat/completions" }
2895
- }]
2896
- },
2897
- {
2898
- id: "xai",
2899
- name: "xAI",
2900
- env: "XAI_API_KEY",
2901
- headers: [{
2902
- name: "authorization",
2903
- scheme: "bearer"
2904
- }],
2905
- endpoints: [{
2906
- host: "api.x.ai",
2907
- method: ["POST"],
2908
- path: { exact: "/v1/responses" }
2909
- }]
2910
- },
2911
- {
2912
- id: "xiaomi",
2913
- name: "Xiaomi",
2914
- env: "XIAOMI_API_KEY",
2915
- headers: [{
2916
- name: "authorization",
2917
- scheme: "bearer"
2918
- }],
2919
- endpoints: [{
2920
- host: "api.xiaomimimo.com",
2921
- method: ["POST"],
2922
- path: { exact: "/v1/chat/completions" }
2923
- }]
2924
- },
2925
- {
2926
- id: "xiaomi-token-plan-ams",
2927
- name: "Xiaomi Token Plan (Europe)",
2928
- env: "XIAOMI_API_KEY",
2929
- headers: [{
2930
- name: "authorization",
2931
- scheme: "bearer"
2932
- }],
2933
- endpoints: [{
2934
- host: "token-plan-ams.xiaomimimo.com",
2935
- method: ["POST"],
2936
- path: { exact: "/v1/chat/completions" }
2937
- }]
2938
- },
2939
- {
2940
- id: "xiaomi-token-plan-cn",
2941
- name: "Xiaomi Token Plan (China)",
2942
- env: "XIAOMI_API_KEY",
2943
- headers: [{
2944
- name: "authorization",
2945
- scheme: "bearer"
2946
- }],
2947
- endpoints: [{
2948
- host: "token-plan-cn.xiaomimimo.com",
2949
- method: ["POST"],
2950
- path: { exact: "/v1/chat/completions" }
2951
- }]
2952
- },
2953
- {
2954
- id: "xiaomi-token-plan-sgp",
2955
- name: "Xiaomi Token Plan (Singapore)",
2956
- env: "XIAOMI_API_KEY",
2957
- headers: [{
2958
- name: "authorization",
2959
- scheme: "bearer"
2960
- }],
2961
- endpoints: [{
2962
- host: "token-plan-sgp.xiaomimimo.com",
2963
- method: ["POST"],
2964
- path: { exact: "/v1/chat/completions" }
2965
- }]
2966
- },
2967
- {
2968
- id: "xpersona",
2969
- name: "Xpersona",
2970
- env: "XPERSONA_API_KEY",
2971
- headers: [{
2972
- name: "authorization",
2973
- scheme: "bearer"
2974
- }],
2975
- endpoints: [{
2976
- host: "www.xpersona.co",
2977
- method: ["POST"],
2978
- path: { exact: "/v1/chat/completions" }
2979
- }]
2980
- },
2981
- {
2982
- id: "zai",
2983
- name: "Z.AI",
2984
- env: "ZHIPU_API_KEY",
2985
- headers: [{
2986
- name: "authorization",
2987
- scheme: "bearer"
2988
- }],
2989
- endpoints: [{
2990
- host: "api.z.ai",
2991
- method: ["POST"],
2992
- path: { exact: "/api/paas/v4/chat/completions" }
2993
- }]
2994
- },
2995
- {
2996
- id: "zai-coding-plan",
2997
- name: "Z.AI Coding Plan",
2998
- env: "ZHIPU_API_KEY",
2999
- headers: [{
3000
- name: "authorization",
3001
- scheme: "bearer"
3002
- }],
3003
- endpoints: [{
3004
- host: "api.z.ai",
3005
- method: ["POST"],
3006
- path: { exact: "/api/coding/paas/v4/chat/completions" }
3007
- }]
3008
- },
3009
- {
3010
- id: "zeldoc",
3011
- name: "Zeldoc",
3012
- env: "ZELDOC_API_KEY",
3013
- headers: [{
3014
- name: "authorization",
3015
- scheme: "bearer"
3016
- }],
3017
- endpoints: [{
3018
- host: "api.zeldoc.ai",
3019
- method: ["POST"],
3020
- path: { exact: "/v1/chat/completions" }
3021
- }]
3022
- },
3023
- {
3024
- id: "zenifra",
3025
- name: "Zenifra",
3026
- env: "ZENIFRA_AI_KEY",
3027
- headers: [{
3028
- name: "authorization",
3029
- scheme: "bearer"
3030
- }],
3031
- endpoints: [{
3032
- host: "ai.zenifra.com",
3033
- method: ["POST"],
3034
- path: { exact: "/v1/chat/completions" }
3035
- }]
3036
- },
3037
- {
3038
- id: "zenmux",
3039
- name: "ZenMux",
3040
- env: "ZENMUX_API_KEY",
3041
- headers: [{
3042
- name: "x-api-key",
3043
- scheme: "raw"
3044
- }, {
3045
- name: "authorization",
3046
- scheme: "bearer"
3047
- }],
3048
- endpoints: [
3049
- {
3050
- host: "zenmux.ai",
3051
- method: ["POST"],
3052
- path: { exact: "/api/anthropic/v1/messages" }
3053
- },
3054
- {
3055
- host: "zenmux.ai",
3056
- method: ["POST"],
3057
- path: { exact: "/api/v1/chat/completions" }
3058
- },
3059
- {
3060
- host: "zenmux.ai",
3061
- method: ["POST"],
3062
- path: { exact: "/api/v1/responses" }
3063
- }
3064
- ]
3065
- },
3066
- {
3067
- id: "zhipuai",
3068
- name: "Zhipu AI",
3069
- env: "ZHIPU_API_KEY",
3070
- headers: [{
3071
- name: "authorization",
3072
- scheme: "bearer"
3073
- }],
3074
- endpoints: [{
3075
- host: "open.bigmodel.cn",
3076
- method: ["POST"],
3077
- path: { exact: "/api/paas/v4/chat/completions" }
3078
- }]
3079
- },
3080
- {
3081
- id: "zhipuai-coding-plan",
3082
- name: "Zhipu AI Coding Plan",
3083
- env: "ZHIPU_API_KEY",
3084
- headers: [{
3085
- name: "authorization",
3086
- scheme: "bearer"
3087
- }],
3088
- endpoints: [{
3089
- host: "open.bigmodel.cn",
3090
- method: ["POST"],
3091
- path: { exact: "/api/coding/paas/v4/chat/completions" }
3092
- }]
3093
- }
3094
- ];
3095
- /** Every other provider OpenCode knows, and why reeval can't broker its key. */
3096
- const REFUSED_OPENCODE_PROVIDERS = [
3097
- {
3098
- id: "aihubmix",
3099
- name: "AIHubMix",
3100
- why: "OpenCode installs its provider package from npm when it starts, so where it sends the key is unknown"
3101
- },
3102
- {
3103
- id: "atomic-chat",
3104
- name: "Atomic Chat",
3105
- why: "it runs on your machine, and the sandbox can't reach the host's localhost"
3106
- },
3107
- {
3108
- id: "azure",
3109
- name: "Azure",
3110
- why: "its API host is per account (AZURE_RESOURCE_NAME), which reeval doesn't pass"
3111
- },
3112
- {
3113
- id: "cloudflare-ai-gateway",
3114
- name: "Cloudflare AI Gateway",
3115
- why: "its API host is per account (CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_GATEWAY_ID), which reeval doesn't pass"
3116
- },
3117
- {
3118
- id: "cloudflare-workers-ai",
3119
- name: "Cloudflare Workers AI",
3120
- why: "its API host is per account (CLOUDFLARE_ACCOUNT_ID), which reeval doesn't pass"
3121
- },
3122
- {
3123
- id: "databricks",
3124
- name: "Databricks",
3125
- why: "its API host is per account (DATABRICKS_HOST), which reeval doesn't pass"
3126
- },
3127
- {
3128
- id: "github-copilot",
3129
- name: "GitHub Copilot",
3130
- why: "it runs on a GitHub Copilot subscription, through a GitHub login"
3131
- },
3132
- {
3133
- id: "gitlab",
3134
- name: "GitLab Duo",
3135
- why: "it runs on a GitLab Duo subscription, through a GitLab login"
3136
- },
3137
- {
3138
- id: "google-vertex",
3139
- name: "Vertex",
3140
- why: "it takes a service account (Vertex refuses API keys for most models), not a key in a header"
3141
- },
3142
- {
3143
- id: "infomaniak",
3144
- name: "Infomaniak",
3145
- why: "its API host is per account (INFOMANIAK_PRODUCT_ID), which reeval doesn't pass"
3146
- },
3147
- {
3148
- id: "lmstudio",
3149
- name: "LMStudio",
3150
- why: "it runs on your machine, and the sandbox can't reach the host's localhost"
3151
- },
3152
- {
3153
- id: "lynkr",
3154
- name: "Lynkr",
3155
- why: "it runs on your machine, and the sandbox can't reach the host's localhost"
3156
- },
3157
- {
3158
- id: "merge-gateway",
3159
- name: "Merge Gateway",
3160
- why: "OpenCode installs its provider package from npm when it starts, so where it sends the key is unknown"
3161
- },
3162
- {
3163
- id: "morph",
3164
- name: "Morph",
3165
- why: "none of its models can call tools, so they can't run an agent"
3166
- },
3167
- {
3168
- id: "neon",
3169
- name: "Neon",
3170
- why: "its API host is per account (NEON_AI_GATEWAY_BASE_URL), which reeval doesn't pass"
3171
- },
3172
- {
3173
- id: "perplexity",
3174
- name: "Perplexity",
3175
- why: "none of its models can call tools, so they can't run an agent"
3176
- },
3177
- {
3178
- id: "privatemode-ai",
3179
- name: "Privatemode AI",
3180
- why: "it runs on your machine, and the sandbox can't reach the host's localhost"
3181
- },
3182
- {
3183
- id: "qvac",
3184
- name: "QVAC",
3185
- why: "OpenCode installs its provider package from npm when it starts, so where it sends the key is unknown"
3186
- },
3187
- {
3188
- id: "salad-cloud",
3189
- name: "SaladCloud AI Gateway",
3190
- why: "OpenCode installs its provider package from npm when it starts, so where it sends the key is unknown"
3191
- },
3192
- {
3193
- id: "sap-ai-core",
3194
- name: "SAP AI Core",
3195
- why: "its service key is JSON that OpenCode trades for OAuth tokens"
3196
- },
3197
- {
3198
- id: "snowflake-cortex",
3199
- name: "Snowflake Cortex",
3200
- why: "its API host is per account (SNOWFLAKE_ACCOUNT), which reeval doesn't pass"
3201
- },
3202
- {
3203
- id: "watsonx",
3204
- name: "watsonx.ai",
3205
- why: "OpenCode installs its provider package from npm when it starts, so where it sends the key is unknown"
3206
- }
3207
- ];
3208
- //#endregion
3209
- //#region ../harness-opencode/src/opencode-providers.ts
3210
- const byId = new Map(OPENCODE_PROVIDERS.map((p) => [p.id, p]));
3211
- const refusedById = new Map(REFUSED_OPENCODE_PROVIDERS.map((p) => [p.id, p]));
3212
- /** A model id's provider and the model within it: `openrouter/anthropic/x` is `openrouter`. */
3213
- function splitModel(model) {
3214
- if (typeof model !== "string") return void 0;
3215
- const at = model.indexOf("/");
3216
- if (at <= 0 || at === model.length - 1) return void 0;
3217
- return {
3218
- provider: model.slice(0, at),
3219
- model: model.slice(at + 1)
3220
- };
3221
- }
3222
- /**
3223
- * The provider a model id runs on, with its hosts built from `env`'s values for its variables
3224
- * (or their defaults), and those values, which go into the sandbox as they are. Or why it can't
3225
- * run: the id has no provider, OpenCode doesn't know the provider, reeval can't broker its key, or a
3226
- * variable's value can't be part of a host name.
3227
- */
3228
- function resolveOpenCodeProvider(model, env = {}) {
3229
- const split = splitModel(model);
3230
- if (!split) return { error: `an OpenCode model id names its provider, <provider>/<model>, such as 'google/gemini-3.8-flash' or 'anthropic/claude-haiku-4-5' (got ${JSON.stringify(model)})` };
3231
- const provider = byId.get(split.provider);
3232
- if (provider) {
3233
- const vars = {};
3234
- for (const v of provider.vars ?? []) {
3235
- const value = env[v.name] || v.default;
3236
- if (!new RegExp(v.pattern).test(value)) return { error: `${v.name} is ${JSON.stringify(value)}, which isn't one ${provider.name} (${provider.id}) takes: OpenCode builds its API's host from it, so it must match /${v.pattern}/, such as ${JSON.stringify(v.default)}` };
3237
- vars[v.name] = value;
3238
- }
3239
- const fill = (host) => Object.entries(vars).reduce((h, [name, value]) => h.replaceAll(`{${name}}`, value), host);
3240
- const endpoints = provider.endpoints.map((e) => ({
3241
- ...e,
3242
- host: fill(e.host)
3243
- }));
3244
- return {
3245
- provider: {
3246
- ...provider,
3247
- endpoints
3248
- },
3249
- vars
3250
- };
3251
- }
3252
- const refused = refusedById.get(split.provider);
3253
- if (refused) return { error: `reeval can't run OpenCode on ${refused.name} (${refused.id}): ${refused.why}, so the gateway can't keep its key out of the sandbox` };
3254
- return { error: `OpenCode has no provider ${JSON.stringify(split.provider)} (in ${JSON.stringify(model)}); a model id is <provider>/<model>, such as 'google/gemini-3.8-flash'` };
3255
- }
3256
- /** Like {@link resolveOpenCodeProvider}, throwing its reason. */
3257
- function openCodeProvider(model, env = {}) {
3258
- const resolved = resolveOpenCodeProvider(model, env);
3259
- if ("error" in resolved) throw new Error(resolved.error);
3260
- return resolved.provider;
3261
- }
3262
- /** The hosts a provider's key goes to, which a restricted egress policy allows for it. */
3263
- const providerHosts = (provider) => [...new Set(provider.endpoints.map((e) => e.host))];
3264
- const headerValue = (header, key) => header.scheme === "bearer" ? `Bearer ${key}` : key;
3265
- /**
3266
- * The gateway rules that swap the key in: on each of the provider's hosts, for each header it
3267
- * sends the key in, the placeholder for the real key.
3268
- */
3269
- function providerTransformations(provider, { key, placeholder, headers = {} }) {
3270
- return providerHosts(provider).flatMap((host) => provider.headers.map((header) => ({
3271
- matchUrl: `https://${host}`,
3272
- matchHeaders: { [header.name]: headerValue(header, placeholder) },
3273
- transformHeaders: {
3274
- ...headers,
3275
- [header.name]: headerValue(header, key)
3276
- }
3277
- })));
3278
- }
3279
- const pathOf = (e) => "exact" in e.path ? { exact: e.path.exact } : { regex: e.path.regex };
3280
- /** The endpoints as a gateway matches them. */
3281
- const providerEndpoints = (provider) => provider.endpoints.map((e) => ({
3282
- host: e.host,
3283
- method: [...e.method],
3284
- path: pathOf(e)
3285
- }));
3286
- /** The model calls whose URL doesn't name the model: their response body does. */
3287
- const providerModelResponses = (provider) => providerEndpoints(provider).filter((e) => e.method.includes("POST") && "exact" in e.path);
3288
- /**
3289
- * The model a request to the provider's API says served it: from the URL where the path names
3290
- * it (Gemini's API), else from the response's `model`, with the reasoning effort it reports.
3291
- */
3292
- function providerServedModel(provider, request) {
3293
- const path = request.path.split("?")[0] ?? request.path;
3294
- for (const e of provider.endpoints) {
3295
- if (e.host !== request.host || !e.method.includes(request.method) || request.method !== "POST") continue;
3296
- if ("regex" in e.path) {
3297
- const model = new RegExp(e.path.regex).exec(path)?.[1];
3298
- if (model) return decodeURIComponent(model);
3299
- } else if (e.path.exact === path && request.responseModel) return `${request.responseModel}${request.responseEffort ? `[effort=${request.responseEffort}]` : ""}`;
3300
- }
3301
- }
3302
- //#endregion
3303
- export { providerServedModel as a, splitModel as c, providerModelResponses as i, OPENCODE_PROVIDERS as l, providerEndpoints as n, providerTransformations as o, providerHosts as r, resolveOpenCodeProvider as s, openCodeProvider as t, REFUSED_OPENCODE_PROVIDERS as u };
3304
-
3305
- //# sourceMappingURL=opencode-providers-snfeWd6Z.js.map