@deeprelay/sdk 0.2.1 → 0.3.0

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 (512) hide show
  1. package/.openapi-generator/FILES +66 -0
  2. package/README.md +47 -11
  3. package/dist/apis/AlertsApi.d.ts +50 -0
  4. package/dist/apis/AlertsApi.js +127 -0
  5. package/dist/apis/ApiKeysApi.d.ts +107 -0
  6. package/dist/apis/ApiKeysApi.js +284 -0
  7. package/dist/apis/BillingApi.d.ts +25 -7
  8. package/dist/apis/BillingApi.js +57 -7
  9. package/dist/apis/InferenceApi.d.ts +12 -1
  10. package/dist/apis/InferenceApi.js +22 -1
  11. package/dist/apis/MetaApi.d.ts +1 -1
  12. package/dist/apis/MetaApi.js +1 -1
  13. package/dist/apis/RequestsApi.d.ts +130 -0
  14. package/dist/apis/RequestsApi.js +269 -0
  15. package/dist/apis/UsageApi.d.ts +1 -1
  16. package/dist/apis/UsageApi.js +1 -1
  17. package/dist/apis/WebhooksApi.d.ts +1 -1
  18. package/dist/apis/WebhooksApi.js +1 -1
  19. package/dist/apis/index.d.ts +3 -0
  20. package/dist/apis/index.js +3 -0
  21. package/dist/esm/apis/AlertsApi.d.ts +50 -0
  22. package/dist/esm/apis/AlertsApi.js +123 -0
  23. package/dist/esm/apis/ApiKeysApi.d.ts +107 -0
  24. package/dist/esm/apis/ApiKeysApi.js +280 -0
  25. package/dist/esm/apis/BillingApi.d.ts +25 -7
  26. package/dist/esm/apis/BillingApi.js +57 -7
  27. package/dist/esm/apis/InferenceApi.d.ts +12 -1
  28. package/dist/esm/apis/InferenceApi.js +22 -1
  29. package/dist/esm/apis/MetaApi.d.ts +1 -1
  30. package/dist/esm/apis/MetaApi.js +1 -1
  31. package/dist/esm/apis/RequestsApi.d.ts +130 -0
  32. package/dist/esm/apis/RequestsApi.js +265 -0
  33. package/dist/esm/apis/UsageApi.d.ts +1 -1
  34. package/dist/esm/apis/UsageApi.js +1 -1
  35. package/dist/esm/apis/WebhooksApi.d.ts +1 -1
  36. package/dist/esm/apis/WebhooksApi.js +1 -1
  37. package/dist/esm/apis/index.d.ts +3 -0
  38. package/dist/esm/apis/index.js +3 -0
  39. package/dist/esm/models/AlertEmailToggles.d.ts +50 -0
  40. package/dist/esm/models/AlertEmailToggles.js +55 -0
  41. package/dist/esm/models/AlertSettings.d.ts +51 -0
  42. package/dist/esm/models/AlertSettings.js +56 -0
  43. package/dist/esm/models/AlertSettingsUpdate.d.ts +39 -0
  44. package/dist/esm/models/AlertSettingsUpdate.js +48 -0
  45. package/dist/esm/models/ApiKey.d.ts +123 -0
  46. package/dist/esm/models/ApiKey.js +96 -0
  47. package/dist/esm/models/ApiKeyCreate.d.ts +70 -0
  48. package/dist/esm/models/ApiKeyCreate.js +57 -0
  49. package/dist/esm/models/ApiKeyCreated.d.ts +129 -0
  50. package/dist/esm/models/ApiKeyCreated.js +100 -0
  51. package/dist/esm/models/ApiKeyList.d.ts +33 -0
  52. package/dist/esm/models/ApiKeyList.js +44 -0
  53. package/dist/esm/models/ApiKeyScopes.d.ts +65 -0
  54. package/dist/esm/models/ApiKeyScopes.js +66 -0
  55. package/dist/esm/models/ApiKeyUpdate.d.ts +62 -0
  56. package/dist/esm/models/ApiKeyUpdate.js +51 -0
  57. package/dist/esm/models/Balance.d.ts +1 -1
  58. package/dist/esm/models/Balance.js +1 -1
  59. package/dist/esm/models/ChatChoice.d.ts +11 -1
  60. package/dist/esm/models/ChatChoice.js +3 -1
  61. package/dist/esm/models/ChatCompletionRequest.d.ts +78 -2
  62. package/dist/esm/models/ChatCompletionRequest.js +26 -1
  63. package/dist/esm/models/ChatCompletionRequestResponseFormat.d.ts +31 -0
  64. package/dist/esm/models/ChatCompletionRequestResponseFormat.js +52 -0
  65. package/dist/esm/models/ChatCompletionRequestToolChoice.d.ts +23 -0
  66. package/dist/esm/models/ChatCompletionRequestToolChoice.js +50 -0
  67. package/dist/esm/models/ChatCompletionResponse.d.ts +1 -1
  68. package/dist/esm/models/ChatCompletionResponse.js +1 -1
  69. package/dist/esm/models/ChatMessage.d.ts +22 -2
  70. package/dist/esm/models/ChatMessage.js +10 -5
  71. package/dist/esm/models/CostDetails.d.ts +59 -0
  72. package/dist/esm/models/CostDetails.js +59 -0
  73. package/dist/esm/models/CreateCryptoDepositRequest.d.ts +4 -1
  74. package/dist/esm/models/CreateCryptoDepositRequest.js +4 -2
  75. package/dist/esm/models/CreateWebhookEndpointRequest.d.ts +5 -1
  76. package/dist/esm/models/CreateWebhookEndpointRequest.js +6 -2
  77. package/dist/esm/models/CryptoDeposit.d.ts +3 -1
  78. package/dist/esm/models/CryptoDeposit.js +4 -2
  79. package/dist/esm/models/Embedding.d.ts +1 -1
  80. package/dist/esm/models/Embedding.js +1 -1
  81. package/dist/esm/models/EmbeddingsRequest.d.ts +1 -1
  82. package/dist/esm/models/EmbeddingsRequest.js +1 -1
  83. package/dist/esm/models/EmbeddingsRequestInput.d.ts +1 -1
  84. package/dist/esm/models/EmbeddingsRequestInput.js +1 -1
  85. package/dist/esm/models/EmbeddingsResponse.d.ts +1 -1
  86. package/dist/esm/models/EmbeddingsResponse.js +1 -1
  87. package/dist/esm/models/EmbeddingsUsage.d.ts +1 -1
  88. package/dist/esm/models/EmbeddingsUsage.js +1 -1
  89. package/dist/esm/models/GetHealth200Response.d.ts +1 -1
  90. package/dist/esm/models/GetHealth200Response.js +1 -1
  91. package/dist/esm/models/ImagesGenerationsRequest.d.ts +2 -2
  92. package/dist/esm/models/ImagesGenerationsRequest.js +1 -1
  93. package/dist/esm/models/ImagesResponse.d.ts +1 -1
  94. package/dist/esm/models/ImagesResponse.js +1 -1
  95. package/dist/esm/models/ImagesResponseDataInner.d.ts +1 -1
  96. package/dist/esm/models/ImagesResponseDataInner.js +1 -1
  97. package/dist/esm/models/ImagesResponseUsage.d.ts +1 -1
  98. package/dist/esm/models/ImagesResponseUsage.js +1 -1
  99. package/dist/esm/models/InferencePreflight.d.ts +5 -2
  100. package/dist/esm/models/InferencePreflight.js +4 -1
  101. package/dist/esm/models/JSONSchemaFormat.d.ts +54 -0
  102. package/dist/esm/models/JSONSchemaFormat.js +49 -0
  103. package/dist/esm/models/ListDeposits200Response.d.ts +1 -1
  104. package/dist/esm/models/ListDeposits200Response.js +1 -1
  105. package/dist/esm/models/Model.d.ts +54 -5
  106. package/dist/esm/models/Model.js +21 -2
  107. package/dist/esm/models/ModelList.d.ts +1 -1
  108. package/dist/esm/models/ModelList.js +1 -1
  109. package/dist/esm/models/ModelMetrics.d.ts +101 -0
  110. package/dist/esm/models/ModelMetrics.js +85 -0
  111. package/dist/esm/models/ModelParametersInner.d.ts +1 -1
  112. package/dist/esm/models/ModelParametersInner.js +1 -1
  113. package/dist/esm/models/ModelPricing.d.ts +1 -1
  114. package/dist/esm/models/ModelPricing.js +1 -1
  115. package/dist/esm/models/ModelRate.d.ts +1 -1
  116. package/dist/esm/models/ModelRate.js +1 -1
  117. package/dist/esm/models/OpenAIErrorEnvelope.d.ts +1 -1
  118. package/dist/esm/models/OpenAIErrorEnvelope.js +1 -1
  119. package/dist/esm/models/OpenAIErrorEnvelopeError.d.ts +8 -2
  120. package/dist/esm/models/OpenAIErrorEnvelopeError.js +3 -1
  121. package/dist/esm/models/PeakWindow.d.ts +1 -1
  122. package/dist/esm/models/PeakWindow.js +1 -1
  123. package/dist/esm/models/Problem.d.ts +22 -1
  124. package/dist/esm/models/Problem.js +14 -1
  125. package/dist/esm/models/RefereeStatus.d.ts +1 -1
  126. package/dist/esm/models/RefereeStatus.js +1 -1
  127. package/dist/esm/models/Referral.d.ts +14 -2
  128. package/dist/esm/models/Referral.js +9 -1
  129. package/dist/esm/models/RequestLogEntry.d.ts +210 -0
  130. package/dist/esm/models/RequestLogEntry.js +129 -0
  131. package/dist/esm/models/RequestLogPage.d.ts +45 -0
  132. package/dist/esm/models/RequestLogPage.js +52 -0
  133. package/dist/esm/models/ResponseFormatJSONObject.d.ts +39 -0
  134. package/dist/esm/models/ResponseFormatJSONObject.js +51 -0
  135. package/dist/esm/models/ResponseFormatJSONSchema.d.ts +46 -0
  136. package/dist/esm/models/ResponseFormatJSONSchema.js +56 -0
  137. package/dist/esm/models/ResponseFormatText.d.ts +39 -0
  138. package/dist/esm/models/ResponseFormatText.js +51 -0
  139. package/dist/esm/models/SpendingLimit.d.ts +1 -1
  140. package/dist/esm/models/SpendingLimit.js +1 -1
  141. package/dist/esm/models/StreamOptions.d.ts +1 -1
  142. package/dist/esm/models/StreamOptions.js +1 -1
  143. package/dist/esm/models/Subscription.d.ts +9 -2
  144. package/dist/esm/models/Subscription.js +6 -1
  145. package/dist/esm/models/SubscriptionCheckoutRequest.d.ts +18 -4
  146. package/dist/esm/models/SubscriptionCheckoutRequest.js +10 -1
  147. package/dist/esm/models/SubscriptionCheckoutSession.d.ts +21 -1
  148. package/dist/esm/models/SubscriptionCheckoutSession.js +12 -1
  149. package/dist/esm/models/SubscriptionModelUsage.d.ts +68 -0
  150. package/dist/esm/models/SubscriptionModelUsage.js +67 -0
  151. package/dist/esm/models/SubscriptionPlan.d.ts +4 -4
  152. package/dist/esm/models/SubscriptionPlan.js +1 -1
  153. package/dist/esm/models/SubscriptionPortalRequest.d.ts +1 -1
  154. package/dist/esm/models/SubscriptionPortalRequest.js +1 -1
  155. package/dist/esm/models/SubscriptionPortalSession.d.ts +1 -1
  156. package/dist/esm/models/SubscriptionPortalSession.js +1 -1
  157. package/dist/esm/models/SubscriptionPrice.d.ts +1 -1
  158. package/dist/esm/models/SubscriptionPrice.js +1 -1
  159. package/dist/esm/models/SubscriptionQuota.d.ts +10 -4
  160. package/dist/esm/models/SubscriptionQuota.js +8 -4
  161. package/dist/esm/models/SubscriptionTier.d.ts +53 -0
  162. package/dist/esm/models/SubscriptionTier.js +55 -0
  163. package/dist/esm/models/SubscriptionUpgradeRequest.d.ts +32 -0
  164. package/dist/esm/models/SubscriptionUpgradeRequest.js +43 -0
  165. package/dist/esm/models/SubscriptionUsage.d.ts +28 -3
  166. package/dist/esm/models/SubscriptionUsage.js +15 -4
  167. package/dist/esm/models/Tool.d.ts +46 -0
  168. package/dist/esm/models/Tool.js +56 -0
  169. package/dist/esm/models/ToolCall.d.ts +60 -0
  170. package/dist/esm/models/ToolCall.js +56 -0
  171. package/dist/esm/models/ToolCallFunction.d.ts +39 -0
  172. package/dist/esm/models/ToolCallFunction.js +47 -0
  173. package/dist/esm/models/ToolChoiceFunction.d.ts +46 -0
  174. package/dist/esm/models/ToolChoiceFunction.js +56 -0
  175. package/dist/esm/models/ToolChoiceFunctionFunction.d.ts +32 -0
  176. package/dist/esm/models/ToolChoiceFunctionFunction.js +43 -0
  177. package/dist/esm/models/ToolFunction.d.ts +47 -0
  178. package/dist/esm/models/ToolFunction.js +47 -0
  179. package/dist/esm/models/UpdateSpendingLimitRequest.d.ts +1 -1
  180. package/dist/esm/models/UpdateSpendingLimitRequest.js +1 -1
  181. package/dist/esm/models/Usage.d.ts +29 -1
  182. package/dist/esm/models/Usage.js +12 -1
  183. package/dist/esm/models/UsageBucket.d.ts +1 -1
  184. package/dist/esm/models/UsageBucket.js +1 -1
  185. package/dist/esm/models/UsageCompletionTokensDetails.d.ts +32 -0
  186. package/dist/esm/models/UsageCompletionTokensDetails.js +41 -0
  187. package/dist/esm/models/UsagePage.d.ts +1 -1
  188. package/dist/esm/models/UsagePage.js +1 -1
  189. package/dist/esm/models/UsagePromptTokensDetails.d.ts +33 -0
  190. package/dist/esm/models/UsagePromptTokensDetails.js +41 -0
  191. package/dist/esm/models/VideoCreateRequest.d.ts +1 -1
  192. package/dist/esm/models/VideoCreateRequest.js +1 -1
  193. package/dist/esm/models/VideoJob.d.ts +1 -1
  194. package/dist/esm/models/VideoJob.js +1 -1
  195. package/dist/esm/models/VideoList.d.ts +1 -1
  196. package/dist/esm/models/VideoList.js +1 -1
  197. package/dist/esm/models/WebhookEndpoint.d.ts +5 -1
  198. package/dist/esm/models/WebhookEndpoint.js +6 -2
  199. package/dist/esm/models/WebhookEndpointPage.d.ts +1 -1
  200. package/dist/esm/models/WebhookEndpointPage.js +1 -1
  201. package/dist/esm/models/index.d.ts +30 -0
  202. package/dist/esm/models/index.js +30 -0
  203. package/dist/esm/runtime.d.ts +1 -1
  204. package/dist/esm/runtime.js +2 -2
  205. package/dist/models/AlertEmailToggles.d.ts +50 -0
  206. package/dist/models/AlertEmailToggles.js +62 -0
  207. package/dist/models/AlertSettings.d.ts +51 -0
  208. package/dist/models/AlertSettings.js +63 -0
  209. package/dist/models/AlertSettingsUpdate.d.ts +39 -0
  210. package/dist/models/AlertSettingsUpdate.js +55 -0
  211. package/dist/models/ApiKey.d.ts +123 -0
  212. package/dist/models/ApiKey.js +103 -0
  213. package/dist/models/ApiKeyCreate.d.ts +70 -0
  214. package/dist/models/ApiKeyCreate.js +64 -0
  215. package/dist/models/ApiKeyCreated.d.ts +129 -0
  216. package/dist/models/ApiKeyCreated.js +107 -0
  217. package/dist/models/ApiKeyList.d.ts +33 -0
  218. package/dist/models/ApiKeyList.js +51 -0
  219. package/dist/models/ApiKeyScopes.d.ts +65 -0
  220. package/dist/models/ApiKeyScopes.js +74 -0
  221. package/dist/models/ApiKeyUpdate.d.ts +62 -0
  222. package/dist/models/ApiKeyUpdate.js +58 -0
  223. package/dist/models/Balance.d.ts +1 -1
  224. package/dist/models/Balance.js +1 -1
  225. package/dist/models/ChatChoice.d.ts +11 -1
  226. package/dist/models/ChatChoice.js +3 -1
  227. package/dist/models/ChatCompletionRequest.d.ts +78 -2
  228. package/dist/models/ChatCompletionRequest.js +26 -1
  229. package/dist/models/ChatCompletionRequestResponseFormat.d.ts +31 -0
  230. package/dist/models/ChatCompletionRequestResponseFormat.js +58 -0
  231. package/dist/models/ChatCompletionRequestToolChoice.d.ts +23 -0
  232. package/dist/models/ChatCompletionRequestToolChoice.js +56 -0
  233. package/dist/models/ChatCompletionResponse.d.ts +1 -1
  234. package/dist/models/ChatCompletionResponse.js +1 -1
  235. package/dist/models/ChatMessage.d.ts +22 -2
  236. package/dist/models/ChatMessage.js +10 -5
  237. package/dist/models/CostDetails.d.ts +59 -0
  238. package/dist/models/CostDetails.js +66 -0
  239. package/dist/models/CreateCryptoDepositRequest.d.ts +4 -1
  240. package/dist/models/CreateCryptoDepositRequest.js +4 -2
  241. package/dist/models/CreateWebhookEndpointRequest.d.ts +5 -1
  242. package/dist/models/CreateWebhookEndpointRequest.js +6 -2
  243. package/dist/models/CryptoDeposit.d.ts +3 -1
  244. package/dist/models/CryptoDeposit.js +4 -2
  245. package/dist/models/Embedding.d.ts +1 -1
  246. package/dist/models/Embedding.js +1 -1
  247. package/dist/models/EmbeddingsRequest.d.ts +1 -1
  248. package/dist/models/EmbeddingsRequest.js +1 -1
  249. package/dist/models/EmbeddingsRequestInput.d.ts +1 -1
  250. package/dist/models/EmbeddingsRequestInput.js +1 -1
  251. package/dist/models/EmbeddingsResponse.d.ts +1 -1
  252. package/dist/models/EmbeddingsResponse.js +1 -1
  253. package/dist/models/EmbeddingsUsage.d.ts +1 -1
  254. package/dist/models/EmbeddingsUsage.js +1 -1
  255. package/dist/models/GetHealth200Response.d.ts +1 -1
  256. package/dist/models/GetHealth200Response.js +1 -1
  257. package/dist/models/ImagesGenerationsRequest.d.ts +2 -2
  258. package/dist/models/ImagesGenerationsRequest.js +1 -1
  259. package/dist/models/ImagesResponse.d.ts +1 -1
  260. package/dist/models/ImagesResponse.js +1 -1
  261. package/dist/models/ImagesResponseDataInner.d.ts +1 -1
  262. package/dist/models/ImagesResponseDataInner.js +1 -1
  263. package/dist/models/ImagesResponseUsage.d.ts +1 -1
  264. package/dist/models/ImagesResponseUsage.js +1 -1
  265. package/dist/models/InferencePreflight.d.ts +5 -2
  266. package/dist/models/InferencePreflight.js +4 -1
  267. package/dist/models/JSONSchemaFormat.d.ts +54 -0
  268. package/dist/models/JSONSchemaFormat.js +56 -0
  269. package/dist/models/ListDeposits200Response.d.ts +1 -1
  270. package/dist/models/ListDeposits200Response.js +1 -1
  271. package/dist/models/Model.d.ts +54 -5
  272. package/dist/models/Model.js +21 -2
  273. package/dist/models/ModelList.d.ts +1 -1
  274. package/dist/models/ModelList.js +1 -1
  275. package/dist/models/ModelMetrics.d.ts +101 -0
  276. package/dist/models/ModelMetrics.js +93 -0
  277. package/dist/models/ModelParametersInner.d.ts +1 -1
  278. package/dist/models/ModelParametersInner.js +1 -1
  279. package/dist/models/ModelPricing.d.ts +1 -1
  280. package/dist/models/ModelPricing.js +1 -1
  281. package/dist/models/ModelRate.d.ts +1 -1
  282. package/dist/models/ModelRate.js +1 -1
  283. package/dist/models/OpenAIErrorEnvelope.d.ts +1 -1
  284. package/dist/models/OpenAIErrorEnvelope.js +1 -1
  285. package/dist/models/OpenAIErrorEnvelopeError.d.ts +8 -2
  286. package/dist/models/OpenAIErrorEnvelopeError.js +3 -1
  287. package/dist/models/PeakWindow.d.ts +1 -1
  288. package/dist/models/PeakWindow.js +1 -1
  289. package/dist/models/Problem.d.ts +22 -1
  290. package/dist/models/Problem.js +14 -1
  291. package/dist/models/RefereeStatus.d.ts +1 -1
  292. package/dist/models/RefereeStatus.js +1 -1
  293. package/dist/models/Referral.d.ts +14 -2
  294. package/dist/models/Referral.js +9 -1
  295. package/dist/models/RequestLogEntry.d.ts +210 -0
  296. package/dist/models/RequestLogEntry.js +137 -0
  297. package/dist/models/RequestLogPage.d.ts +45 -0
  298. package/dist/models/RequestLogPage.js +59 -0
  299. package/dist/models/ResponseFormatJSONObject.d.ts +39 -0
  300. package/dist/models/ResponseFormatJSONObject.js +59 -0
  301. package/dist/models/ResponseFormatJSONSchema.d.ts +46 -0
  302. package/dist/models/ResponseFormatJSONSchema.js +64 -0
  303. package/dist/models/ResponseFormatText.d.ts +39 -0
  304. package/dist/models/ResponseFormatText.js +59 -0
  305. package/dist/models/SpendingLimit.d.ts +1 -1
  306. package/dist/models/SpendingLimit.js +1 -1
  307. package/dist/models/StreamOptions.d.ts +1 -1
  308. package/dist/models/StreamOptions.js +1 -1
  309. package/dist/models/Subscription.d.ts +9 -2
  310. package/dist/models/Subscription.js +6 -1
  311. package/dist/models/SubscriptionCheckoutRequest.d.ts +18 -4
  312. package/dist/models/SubscriptionCheckoutRequest.js +11 -1
  313. package/dist/models/SubscriptionCheckoutSession.d.ts +21 -1
  314. package/dist/models/SubscriptionCheckoutSession.js +13 -1
  315. package/dist/models/SubscriptionModelUsage.d.ts +68 -0
  316. package/dist/models/SubscriptionModelUsage.js +74 -0
  317. package/dist/models/SubscriptionPlan.d.ts +4 -4
  318. package/dist/models/SubscriptionPlan.js +1 -1
  319. package/dist/models/SubscriptionPortalRequest.d.ts +1 -1
  320. package/dist/models/SubscriptionPortalRequest.js +1 -1
  321. package/dist/models/SubscriptionPortalSession.d.ts +1 -1
  322. package/dist/models/SubscriptionPortalSession.js +1 -1
  323. package/dist/models/SubscriptionPrice.d.ts +1 -1
  324. package/dist/models/SubscriptionPrice.js +1 -1
  325. package/dist/models/SubscriptionQuota.d.ts +10 -4
  326. package/dist/models/SubscriptionQuota.js +8 -4
  327. package/dist/models/SubscriptionTier.d.ts +53 -0
  328. package/dist/models/SubscriptionTier.js +62 -0
  329. package/dist/models/SubscriptionUpgradeRequest.d.ts +32 -0
  330. package/dist/models/SubscriptionUpgradeRequest.js +50 -0
  331. package/dist/models/SubscriptionUsage.d.ts +28 -3
  332. package/dist/models/SubscriptionUsage.js +15 -4
  333. package/dist/models/Tool.d.ts +46 -0
  334. package/dist/models/Tool.js +64 -0
  335. package/dist/models/ToolCall.d.ts +60 -0
  336. package/dist/models/ToolCall.js +64 -0
  337. package/dist/models/ToolCallFunction.d.ts +39 -0
  338. package/dist/models/ToolCallFunction.js +54 -0
  339. package/dist/models/ToolChoiceFunction.d.ts +46 -0
  340. package/dist/models/ToolChoiceFunction.js +64 -0
  341. package/dist/models/ToolChoiceFunctionFunction.d.ts +32 -0
  342. package/dist/models/ToolChoiceFunctionFunction.js +50 -0
  343. package/dist/models/ToolFunction.d.ts +47 -0
  344. package/dist/models/ToolFunction.js +54 -0
  345. package/dist/models/UpdateSpendingLimitRequest.d.ts +1 -1
  346. package/dist/models/UpdateSpendingLimitRequest.js +1 -1
  347. package/dist/models/Usage.d.ts +29 -1
  348. package/dist/models/Usage.js +12 -1
  349. package/dist/models/UsageBucket.d.ts +1 -1
  350. package/dist/models/UsageBucket.js +1 -1
  351. package/dist/models/UsageCompletionTokensDetails.d.ts +32 -0
  352. package/dist/models/UsageCompletionTokensDetails.js +48 -0
  353. package/dist/models/UsagePage.d.ts +1 -1
  354. package/dist/models/UsagePage.js +1 -1
  355. package/dist/models/UsagePromptTokensDetails.d.ts +33 -0
  356. package/dist/models/UsagePromptTokensDetails.js +48 -0
  357. package/dist/models/VideoCreateRequest.d.ts +1 -1
  358. package/dist/models/VideoCreateRequest.js +1 -1
  359. package/dist/models/VideoJob.d.ts +1 -1
  360. package/dist/models/VideoJob.js +1 -1
  361. package/dist/models/VideoList.d.ts +1 -1
  362. package/dist/models/VideoList.js +1 -1
  363. package/dist/models/WebhookEndpoint.d.ts +5 -1
  364. package/dist/models/WebhookEndpoint.js +6 -2
  365. package/dist/models/WebhookEndpointPage.d.ts +1 -1
  366. package/dist/models/WebhookEndpointPage.js +1 -1
  367. package/dist/models/index.d.ts +30 -0
  368. package/dist/models/index.js +30 -0
  369. package/dist/runtime.d.ts +1 -1
  370. package/dist/runtime.js +2 -2
  371. package/docs/AlertEmailToggles.md +40 -0
  372. package/docs/AlertSettings.md +40 -0
  373. package/docs/AlertSettingsUpdate.md +36 -0
  374. package/docs/AlertsApi.md +151 -0
  375. package/docs/ApiKey.md +65 -0
  376. package/docs/ApiKeyCreate.md +46 -0
  377. package/docs/ApiKeyCreated.md +67 -0
  378. package/docs/ApiKeyList.md +34 -0
  379. package/docs/ApiKeyScopes.md +38 -0
  380. package/docs/ApiKeyUpdate.md +45 -0
  381. package/docs/ApiKeysApi.md +389 -0
  382. package/docs/BillingApi.md +83 -3
  383. package/docs/ChatChoice.md +2 -0
  384. package/docs/ChatCompletionRequest.md +22 -0
  385. package/docs/ChatCompletionRequestResponseFormat.md +37 -0
  386. package/docs/ChatCompletionRequestToolChoice.md +37 -0
  387. package/docs/ChatMessage.md +4 -0
  388. package/docs/CostDetails.md +43 -0
  389. package/docs/InferenceApi.md +94 -71
  390. package/docs/JSONSchemaFormat.md +41 -0
  391. package/docs/Model.md +16 -0
  392. package/docs/ModelMetrics.md +55 -0
  393. package/docs/OpenAIErrorEnvelopeError.md +2 -0
  394. package/docs/Problem.md +4 -0
  395. package/docs/Referral.md +6 -2
  396. package/docs/RequestLogEntry.md +87 -0
  397. package/docs/RequestLogPage.md +38 -0
  398. package/docs/RequestsApi.md +282 -0
  399. package/docs/ResponseFormatJSONObject.md +35 -0
  400. package/docs/ResponseFormatJSONSchema.md +36 -0
  401. package/docs/ResponseFormatText.md +34 -0
  402. package/docs/Subscription.md +3 -1
  403. package/docs/SubscriptionCheckoutRequest.md +2 -0
  404. package/docs/SubscriptionCheckoutSession.md +4 -0
  405. package/docs/SubscriptionModelUsage.md +47 -0
  406. package/docs/SubscriptionPlan.md +1 -1
  407. package/docs/SubscriptionQuota.md +5 -3
  408. package/docs/SubscriptionTier.md +41 -0
  409. package/docs/SubscriptionUpgradeRequest.md +34 -0
  410. package/docs/SubscriptionUsage.md +10 -2
  411. package/docs/Tool.md +36 -0
  412. package/docs/ToolCall.md +41 -0
  413. package/docs/ToolCallFunction.md +36 -0
  414. package/docs/ToolChoiceFunction.md +36 -0
  415. package/docs/ToolChoiceFunctionFunction.md +34 -0
  416. package/docs/ToolFunction.md +38 -0
  417. package/docs/Usage.md +8 -0
  418. package/docs/UsageCompletionTokensDetails.md +34 -0
  419. package/docs/UsagePromptTokensDetails.md +35 -0
  420. package/package.json +1 -1
  421. package/src/apis/AlertsApi.ts +145 -0
  422. package/src/apis/ApiKeysApi.ts +357 -0
  423. package/src/apis/BillingApi.ts +73 -7
  424. package/src/apis/InferenceApi.ts +32 -1
  425. package/src/apis/MetaApi.ts +1 -1
  426. package/src/apis/RequestsApi.ts +335 -0
  427. package/src/apis/UsageApi.ts +1 -1
  428. package/src/apis/WebhooksApi.ts +1 -1
  429. package/src/apis/index.ts +3 -0
  430. package/src/models/AlertEmailToggles.ts +93 -0
  431. package/src/models/AlertSettings.ts +101 -0
  432. package/src/models/AlertSettingsUpdate.ts +83 -0
  433. package/src/models/ApiKey.ts +205 -0
  434. package/src/models/ApiKeyCreate.ts +115 -0
  435. package/src/models/ApiKeyCreated.ts +214 -0
  436. package/src/models/ApiKeyList.ts +74 -0
  437. package/src/models/ApiKeyScopes.ts +106 -0
  438. package/src/models/ApiKeyUpdate.ts +105 -0
  439. package/src/models/Balance.ts +1 -1
  440. package/src/models/ChatChoice.ts +11 -1
  441. package/src/models/ChatCompletionRequest.ts +118 -2
  442. package/src/models/ChatCompletionRequestResponseFormat.ts +84 -0
  443. package/src/models/ChatCompletionRequestToolChoice.ts +70 -0
  444. package/src/models/ChatCompletionResponse.ts +1 -1
  445. package/src/models/ChatMessage.ts +35 -5
  446. package/src/models/CostDetails.ts +105 -0
  447. package/src/models/CreateCryptoDepositRequest.ts +5 -2
  448. package/src/models/CreateWebhookEndpointRequest.ts +6 -2
  449. package/src/models/CryptoDeposit.ts +4 -2
  450. package/src/models/Embedding.ts +1 -1
  451. package/src/models/EmbeddingsRequest.ts +1 -1
  452. package/src/models/EmbeddingsRequestInput.ts +1 -1
  453. package/src/models/EmbeddingsResponse.ts +1 -1
  454. package/src/models/EmbeddingsUsage.ts +1 -1
  455. package/src/models/GetHealth200Response.ts +1 -1
  456. package/src/models/ImagesGenerationsRequest.ts +2 -2
  457. package/src/models/ImagesResponse.ts +1 -1
  458. package/src/models/ImagesResponseDataInner.ts +1 -1
  459. package/src/models/ImagesResponseUsage.ts +1 -1
  460. package/src/models/InferencePreflight.ts +5 -2
  461. package/src/models/JSONSchemaFormat.ts +92 -0
  462. package/src/models/ListDeposits200Response.ts +1 -1
  463. package/src/models/Model.ts +78 -6
  464. package/src/models/ModelList.ts +1 -1
  465. package/src/models/ModelMetrics.ts +165 -0
  466. package/src/models/ModelParametersInner.ts +1 -1
  467. package/src/models/ModelPricing.ts +1 -1
  468. package/src/models/ModelRate.ts +1 -1
  469. package/src/models/OpenAIErrorEnvelope.ts +1 -1
  470. package/src/models/OpenAIErrorEnvelopeError.ts +10 -2
  471. package/src/models/PeakWindow.ts +1 -1
  472. package/src/models/Problem.ts +26 -1
  473. package/src/models/RefereeStatus.ts +1 -1
  474. package/src/models/Referral.ts +20 -2
  475. package/src/models/RequestLogEntry.ts +307 -0
  476. package/src/models/RequestLogPage.ts +92 -0
  477. package/src/models/ResponseFormatJSONObject.ts +78 -0
  478. package/src/models/ResponseFormatJSONSchema.ts +95 -0
  479. package/src/models/ResponseFormatText.ts +78 -0
  480. package/src/models/SpendingLimit.ts +1 -1
  481. package/src/models/StreamOptions.ts +1 -1
  482. package/src/models/Subscription.ts +18 -2
  483. package/src/models/SubscriptionCheckoutRequest.ts +23 -4
  484. package/src/models/SubscriptionCheckoutSession.ts +28 -1
  485. package/src/models/SubscriptionModelUsage.ts +120 -0
  486. package/src/models/SubscriptionPlan.ts +4 -4
  487. package/src/models/SubscriptionPortalRequest.ts +1 -1
  488. package/src/models/SubscriptionPortalSession.ts +1 -1
  489. package/src/models/SubscriptionPrice.ts +1 -1
  490. package/src/models/SubscriptionQuota.ts +16 -7
  491. package/src/models/SubscriptionTier.ts +108 -0
  492. package/src/models/SubscriptionUpgradeRequest.ts +66 -0
  493. package/src/models/SubscriptionUsage.ts +47 -6
  494. package/src/models/Tool.ts +95 -0
  495. package/src/models/ToolCall.ts +110 -0
  496. package/src/models/ToolCallFunction.ts +76 -0
  497. package/src/models/ToolChoiceFunction.ts +95 -0
  498. package/src/models/ToolChoiceFunctionFunction.ts +66 -0
  499. package/src/models/ToolFunction.ts +83 -0
  500. package/src/models/UpdateSpendingLimitRequest.ts +1 -1
  501. package/src/models/Usage.ts +56 -1
  502. package/src/models/UsageBucket.ts +1 -1
  503. package/src/models/UsageCompletionTokensDetails.ts +65 -0
  504. package/src/models/UsagePage.ts +1 -1
  505. package/src/models/UsagePromptTokensDetails.ts +66 -0
  506. package/src/models/VideoCreateRequest.ts +1 -1
  507. package/src/models/VideoJob.ts +1 -1
  508. package/src/models/VideoList.ts +1 -1
  509. package/src/models/WebhookEndpoint.ts +6 -2
  510. package/src/models/WebhookEndpointPage.ts +1 -1
  511. package/src/models/index.ts +30 -0
  512. package/src/runtime.ts +2 -2
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: support@deeprelay.ai
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ChatCompletionRequestToolChoice } from './ChatCompletionRequestToolChoice';
17
+ import {
18
+ ChatCompletionRequestToolChoiceFromJSON,
19
+ ChatCompletionRequestToolChoiceFromJSONTyped,
20
+ ChatCompletionRequestToolChoiceToJSON,
21
+ ChatCompletionRequestToolChoiceToJSONTyped,
22
+ } from './ChatCompletionRequestToolChoice';
16
23
  import type { ChatMessage } from './ChatMessage';
17
24
  import {
18
25
  ChatMessageFromJSON,
@@ -27,6 +34,20 @@ import {
27
34
  StreamOptionsToJSON,
28
35
  StreamOptionsToJSONTyped,
29
36
  } from './StreamOptions';
37
+ import type { ChatCompletionRequestResponseFormat } from './ChatCompletionRequestResponseFormat';
38
+ import {
39
+ ChatCompletionRequestResponseFormatFromJSON,
40
+ ChatCompletionRequestResponseFormatFromJSONTyped,
41
+ ChatCompletionRequestResponseFormatToJSON,
42
+ ChatCompletionRequestResponseFormatToJSONTyped,
43
+ } from './ChatCompletionRequestResponseFormat';
44
+ import type { Tool } from './Tool';
45
+ import {
46
+ ToolFromJSON,
47
+ ToolFromJSONTyped,
48
+ ToolToJSON,
49
+ ToolToJSONTyped,
50
+ } from './Tool';
30
51
 
31
52
  /**
32
53
  *
@@ -35,7 +56,7 @@ import {
35
56
  */
36
57
  export interface ChatCompletionRequest {
37
58
  /**
38
- * Canonical model id, e.g. "deeprelay/qwen2.5-7b-instruct".
59
+ * Canonical model id, e.g. "deeprelay/llama-3.3-70b-instruct".
39
60
  * @type {string}
40
61
  * @memberof ChatCompletionRequest
41
62
  */
@@ -58,6 +79,13 @@ export interface ChatCompletionRequest {
58
79
  * @memberof ChatCompletionRequest
59
80
  */
60
81
  maxTokens?: number;
82
+ /**
83
+ * OpenAI's newer name for max_tokens, accepted for client compatibility. When both are sent, max_tokens wins.
84
+ *
85
+ * @type {number}
86
+ * @memberof ChatCompletionRequest
87
+ */
88
+ maxCompletionTokens?: number;
61
89
  /**
62
90
  *
63
91
  * @type {boolean}
@@ -70,6 +98,72 @@ export interface ChatCompletionRequest {
70
98
  * @memberof ChatCompletionRequest
71
99
  */
72
100
  streamOptions?: StreamOptions;
101
+ /**
102
+ * Functions the model may call. Support is per-model — check for "tools" in the model's supported_parameters before sending it. Omit the field entirely rather than sending an empty array.
103
+ *
104
+ * @type {Array<Tool>}
105
+ * @memberof ChatCompletionRequest
106
+ */
107
+ tools?: Array<Tool>;
108
+ /**
109
+ *
110
+ * @type {ChatCompletionRequestToolChoice}
111
+ * @memberof ChatCompletionRequest
112
+ */
113
+ toolChoice?: ChatCompletionRequestToolChoice;
114
+ /**
115
+ *
116
+ * @type {ChatCompletionRequestResponseFormat}
117
+ * @memberof ChatCompletionRequest
118
+ */
119
+ responseFormat?: ChatCompletionRequestResponseFormat;
120
+ /**
121
+ * Hint: how much a reasoning model should think. Values in use are none, minimal, low, medium, high and xhigh; which ones a model accepts varies. Forwarded to an upstream that accepts the value, otherwise dropped and reported in x-deeprelay-ignored-params. Never rejected.
122
+ *
123
+ * @type {string}
124
+ * @memberof ChatCompletionRequest
125
+ */
126
+ reasoningEffort?: string;
127
+ /**
128
+ * Hint. Forwarded when the serving upstream accepts it, otherwise dropped and reported in x-deeprelay-ignored-params.
129
+ * @type {number}
130
+ * @memberof ChatCompletionRequest
131
+ */
132
+ presencePenalty?: number;
133
+ /**
134
+ * Hint. Forwarded when the serving upstream accepts it, otherwise dropped and reported in x-deeprelay-ignored-params.
135
+ * @type {number}
136
+ * @memberof ChatCompletionRequest
137
+ */
138
+ frequencyPenalty?: number;
139
+ /**
140
+ * Hint for best-effort determinism. Forwarded when the serving upstream accepts it, otherwise dropped and reported. Identical seeds are not guaranteed to give identical output across upstreams.
141
+ *
142
+ * @type {number}
143
+ * @memberof ChatCompletionRequest
144
+ */
145
+ seed?: number;
146
+ /**
147
+ * Whether the model may emit several tool calls in one turn. When false and the serving upstream cannot honour it, the relay returns only the first tool call and reports `parallel_tool_calls:enforced` in x-deeprelay-ignored-params.
148
+ *
149
+ * @type {boolean}
150
+ * @memberof ChatCompletionRequest
151
+ */
152
+ parallelToolCalls?: boolean;
153
+ /**
154
+ * Return per-token log probabilities in choices[].logprobs. Gated per model ("logprobs" in supported_parameters). Values come from the serving upstream and are not comparable across upstreams or numeric precisions.
155
+ *
156
+ * @type {boolean}
157
+ * @memberof ChatCompletionRequest
158
+ */
159
+ logprobs?: boolean;
160
+ /**
161
+ * Number of alternatives per token (requires logprobs). Gated per model; each model has its own maximum, and a larger value returns 400 unsupported_parameter.
162
+ *
163
+ * @type {number}
164
+ * @memberof ChatCompletionRequest
165
+ */
166
+ topLogprobs?: number;
73
167
  }
74
168
 
75
169
  /**
@@ -95,8 +189,19 @@ export function ChatCompletionRequestFromJSONTyped(json: any, ignoreDiscriminato
95
189
  'messages': ((json['messages'] as Array<any>).map(ChatMessageFromJSON)),
96
190
  'temperature': json['temperature'] == null ? undefined : json['temperature'],
97
191
  'maxTokens': json['max_tokens'] == null ? undefined : json['max_tokens'],
192
+ 'maxCompletionTokens': json['max_completion_tokens'] == null ? undefined : json['max_completion_tokens'],
98
193
  'stream': json['stream'] == null ? undefined : json['stream'],
99
194
  'streamOptions': json['stream_options'] == null ? undefined : StreamOptionsFromJSON(json['stream_options']),
195
+ 'tools': json['tools'] == null ? undefined : ((json['tools'] as Array<any>).map(ToolFromJSON)),
196
+ 'toolChoice': json['tool_choice'] == null ? undefined : ChatCompletionRequestToolChoiceFromJSON(json['tool_choice']),
197
+ 'responseFormat': json['response_format'] == null ? undefined : ChatCompletionRequestResponseFormatFromJSON(json['response_format']),
198
+ 'reasoningEffort': json['reasoning_effort'] == null ? undefined : json['reasoning_effort'],
199
+ 'presencePenalty': json['presence_penalty'] == null ? undefined : json['presence_penalty'],
200
+ 'frequencyPenalty': json['frequency_penalty'] == null ? undefined : json['frequency_penalty'],
201
+ 'seed': json['seed'] == null ? undefined : json['seed'],
202
+ 'parallelToolCalls': json['parallel_tool_calls'] == null ? undefined : json['parallel_tool_calls'],
203
+ 'logprobs': json['logprobs'] == null ? undefined : json['logprobs'],
204
+ 'topLogprobs': json['top_logprobs'] == null ? undefined : json['top_logprobs'],
100
205
  };
101
206
  }
102
207
 
@@ -115,8 +220,19 @@ export function ChatCompletionRequestToJSONTyped(value?: ChatCompletionRequest |
115
220
  'messages': ((value['messages'] as Array<any>).map(ChatMessageToJSON)),
116
221
  'temperature': value['temperature'],
117
222
  'max_tokens': value['maxTokens'],
223
+ 'max_completion_tokens': value['maxCompletionTokens'],
118
224
  'stream': value['stream'],
119
225
  'stream_options': StreamOptionsToJSON(value['streamOptions']),
226
+ 'tools': value['tools'] == null ? undefined : ((value['tools'] as Array<any>).map(ToolToJSON)),
227
+ 'tool_choice': ChatCompletionRequestToolChoiceToJSON(value['toolChoice']),
228
+ 'response_format': ChatCompletionRequestResponseFormatToJSON(value['responseFormat']),
229
+ 'reasoning_effort': value['reasoningEffort'],
230
+ 'presence_penalty': value['presencePenalty'],
231
+ 'frequency_penalty': value['frequencyPenalty'],
232
+ 'seed': value['seed'],
233
+ 'parallel_tool_calls': value['parallelToolCalls'],
234
+ 'logprobs': value['logprobs'],
235
+ 'top_logprobs': value['topLogprobs'],
120
236
  };
121
237
  }
122
238
 
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * deeprelay Public Developer API
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@deeprelay.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import type { ResponseFormatJSONObject } from './ResponseFormatJSONObject';
16
+ import {
17
+ instanceOfResponseFormatJSONObject,
18
+ ResponseFormatJSONObjectFromJSON,
19
+ ResponseFormatJSONObjectFromJSONTyped,
20
+ ResponseFormatJSONObjectToJSON,
21
+ } from './ResponseFormatJSONObject';
22
+ import type { ResponseFormatJSONSchema } from './ResponseFormatJSONSchema';
23
+ import {
24
+ instanceOfResponseFormatJSONSchema,
25
+ ResponseFormatJSONSchemaFromJSON,
26
+ ResponseFormatJSONSchemaFromJSONTyped,
27
+ ResponseFormatJSONSchemaToJSON,
28
+ } from './ResponseFormatJSONSchema';
29
+ import type { ResponseFormatText } from './ResponseFormatText';
30
+ import {
31
+ instanceOfResponseFormatText,
32
+ ResponseFormatTextFromJSON,
33
+ ResponseFormatTextFromJSONTyped,
34
+ ResponseFormatTextToJSON,
35
+ } from './ResponseFormatText';
36
+
37
+ /**
38
+ * @type ChatCompletionRequestResponseFormat
39
+ * Constrain the reply format. Gated per model: `json_object` needs "response_format" in the model's supported_parameters, and a strict `json_schema` needs "structured_outputs". A model without the capability returns 400 unsupported_parameter naming the models that have it. A non-strict json_schema on a model with only "response_format" is served as json_object and reported as `response_format:downgraded` in x-deeprelay-ignored-params. The relay never emulates JSON mode by prompting.
40
+ *
41
+ * @export
42
+ */
43
+ export type ChatCompletionRequestResponseFormat = { type: 'json_object' } & ResponseFormatJSONObject | { type: 'json_schema' } & ResponseFormatJSONSchema | { type: 'text' } & ResponseFormatText;
44
+
45
+ export function ChatCompletionRequestResponseFormatFromJSON(json: any): ChatCompletionRequestResponseFormat {
46
+ return ChatCompletionRequestResponseFormatFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ChatCompletionRequestResponseFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatCompletionRequestResponseFormat {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ switch (json['type']) {
54
+ case 'json_object':
55
+ return Object.assign({}, ResponseFormatJSONObjectFromJSONTyped(json, true), { type: 'json_object' } as const);
56
+ case 'json_schema':
57
+ return Object.assign({}, ResponseFormatJSONSchemaFromJSONTyped(json, true), { type: 'json_schema' } as const);
58
+ case 'text':
59
+ return Object.assign({}, ResponseFormatTextFromJSONTyped(json, true), { type: 'text' } as const);
60
+ default:
61
+ return json;
62
+ }
63
+ }
64
+
65
+ export function ChatCompletionRequestResponseFormatToJSON(json: any): any {
66
+ return ChatCompletionRequestResponseFormatToJSONTyped(json, false);
67
+ }
68
+
69
+ export function ChatCompletionRequestResponseFormatToJSONTyped(value?: ChatCompletionRequestResponseFormat | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ switch (value['type']) {
74
+ case 'json_object':
75
+ return Object.assign({}, ResponseFormatJSONObjectToJSON(value), { 'type': 'json_object' } as const);
76
+ case 'json_schema':
77
+ return Object.assign({}, ResponseFormatJSONSchemaToJSON(value), { 'type': 'json_schema' } as const);
78
+ case 'text':
79
+ return Object.assign({}, ResponseFormatTextToJSON(value), { 'type': 'text' } as const);
80
+ default:
81
+ return value;
82
+ }
83
+ }
84
+
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * deeprelay Public Developer API
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@deeprelay.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import type { ToolChoiceFunction } from './ToolChoiceFunction';
16
+ import {
17
+ instanceOfToolChoiceFunction,
18
+ ToolChoiceFunctionFromJSON,
19
+ ToolChoiceFunctionFromJSONTyped,
20
+ ToolChoiceFunctionToJSON,
21
+ } from './ToolChoiceFunction';
22
+
23
+ /**
24
+ * @type ChatCompletionRequestToolChoice
25
+ * How the model should pick a tool: the strings "none", "auto" or "required", or an object naming one function. Requires a non-empty tools array unless it is "none".
26
+ *
27
+ * @export
28
+ */
29
+ export type ChatCompletionRequestToolChoice = ToolChoiceFunction | string;
30
+
31
+ export function ChatCompletionRequestToolChoiceFromJSON(json: any): ChatCompletionRequestToolChoice {
32
+ return ChatCompletionRequestToolChoiceFromJSONTyped(json, false);
33
+ }
34
+
35
+ export function ChatCompletionRequestToolChoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatCompletionRequestToolChoice {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ if (typeof json !== 'object') {
40
+ return json;
41
+ }
42
+ if (instanceOfToolChoiceFunction(json)) {
43
+ return ToolChoiceFunctionFromJSONTyped(json, true);
44
+ }
45
+ if (typeof json === 'string' && (json === 'none' || json === 'auto' || json === 'required')) {
46
+ return json;
47
+ }
48
+ return {} as any;
49
+ }
50
+
51
+ export function ChatCompletionRequestToolChoiceToJSON(json: any): any {
52
+ return ChatCompletionRequestToolChoiceToJSONTyped(json, false);
53
+ }
54
+
55
+ export function ChatCompletionRequestToolChoiceToJSONTyped(value?: ChatCompletionRequestToolChoice | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ if (typeof value !== 'object') {
60
+ return value;
61
+ }
62
+ if (instanceOfToolChoiceFunction(value)) {
63
+ return ToolChoiceFunctionToJSON(value as ToolChoiceFunction);
64
+ }
65
+ if (typeof value === 'string' && (value === 'none' || value === 'auto' || value === 'required')) {
66
+ return value;
67
+ }
68
+ return {};
69
+ }
70
+
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: support@deeprelay.ai
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: support@deeprelay.ai
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ToolCall } from './ToolCall';
17
+ import {
18
+ ToolCallFromJSON,
19
+ ToolCallFromJSONTyped,
20
+ ToolCallToJSON,
21
+ ToolCallToJSONTyped,
22
+ } from './ToolCall';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -20,17 +28,34 @@ import { mapValues } from '../runtime';
20
28
  */
21
29
  export interface ChatMessage {
22
30
  /**
31
+ * "developer" is OpenAI's newer spelling of "system" and is treated as system.
23
32
  *
24
33
  * @type {ChatMessageRoleEnum}
25
34
  * @memberof ChatMessage
26
35
  */
27
36
  role: ChatMessageRoleEnum;
28
37
  /**
38
+ * The message text. Null on an assistant turn that is purely a tool call — branch on that to tell a tool call from a reply. Responses always carry a string (or null).
39
+ *
40
+ * Requests may instead send an array of content parts, as OpenAI clients do (typed here as a string so SDK callers can keep passing plain text). Text parts ({"type":"text","text":"..."}) are joined with newlines. Image parts ({"type":"image_url","image_url":{"url":"..."}}) are accepted on models whose supported_parameters list "vision"; any other model returns 400 unsupported_parameter (param messages) naming the models that accept images. `url` must be an https URL or a data:image/{png,jpeg,webp,gif};base64 URI, and the relay never fetches it itself. Limits: 16 images per request, 20 MiB per image, 8 KiB per URL, inside the 32 MiB body cap (413 request_too_large). Each image counts as 1,600 tokens in the spend preflight. `image_url.detail` is accepted but not forwarded, and is reported in x-deeprelay-ignored-params. Audio and file parts are rejected with 400 unsupported_content_part.
41
+ *
42
+ * @type {string}
43
+ * @memberof ChatMessage
44
+ */
45
+ content?: string;
46
+ /**
47
+ * Calls the model wants made. Assistant messages only.
48
+ * @type {Array<ToolCall>}
49
+ * @memberof ChatMessage
50
+ */
51
+ toolCalls?: Array<ToolCall>;
52
+ /**
53
+ * Which call this message answers. REQUIRED on a role "tool" message — without it the upstream cannot match the result to its call.
29
54
  *
30
55
  * @type {string}
31
56
  * @memberof ChatMessage
32
57
  */
33
- content: string;
58
+ toolCallId?: string;
34
59
  }
35
60
 
36
61
 
@@ -39,8 +64,10 @@ export interface ChatMessage {
39
64
  */
40
65
  export const ChatMessageRoleEnum = {
41
66
  System: 'system',
67
+ Developer: 'developer',
42
68
  User: 'user',
43
- Assistant: 'assistant'
69
+ Assistant: 'assistant',
70
+ Tool: 'tool'
44
71
  } as const;
45
72
  export type ChatMessageRoleEnum = typeof ChatMessageRoleEnum[keyof typeof ChatMessageRoleEnum];
46
73
 
@@ -50,7 +77,6 @@ export type ChatMessageRoleEnum = typeof ChatMessageRoleEnum[keyof typeof ChatMe
50
77
  */
51
78
  export function instanceOfChatMessage(value: object): value is ChatMessage {
52
79
  if (!('role' in value) || value['role'] === undefined) return false;
53
- if (!('content' in value) || value['content'] === undefined) return false;
54
80
  return true;
55
81
  }
56
82
 
@@ -65,7 +91,9 @@ export function ChatMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean
65
91
  return {
66
92
 
67
93
  'role': json['role'],
68
- 'content': json['content'],
94
+ 'content': json['content'] == null ? undefined : json['content'],
95
+ 'toolCalls': json['tool_calls'] == null ? undefined : ((json['tool_calls'] as Array<any>).map(ToolCallFromJSON)),
96
+ 'toolCallId': json['tool_call_id'] == null ? undefined : json['tool_call_id'],
69
97
  };
70
98
  }
71
99
 
@@ -82,6 +110,8 @@ export function ChatMessageToJSONTyped(value?: ChatMessage | null, ignoreDiscrim
82
110
 
83
111
  'role': value['role'],
84
112
  'content': value['content'],
113
+ 'tool_calls': value['toolCalls'] == null ? undefined : ((value['toolCalls'] as Array<any>).map(ToolCallToJSON)),
114
+ 'tool_call_id': value['toolCallId'],
85
115
  };
86
116
  }
87
117
 
@@ -0,0 +1,105 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * deeprelay Public Developer API
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@deeprelay.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * How this call was priced, in USD (exact decimals, up to 8 places). list_price_equivalent = plan_covered_amount + charged_amount. A call is either fully covered by the subscription or fully charged: there is no partial coverage.
18
+ *
19
+ * @export
20
+ * @interface CostDetails
21
+ */
22
+ export interface CostDetails {
23
+ /**
24
+ * What the call costs at the model's pay-as-you-go list rates (peak rates inside a peak window).
25
+ * @type {number}
26
+ * @memberof CostDetails
27
+ */
28
+ listPriceEquivalent: number;
29
+ /**
30
+ * The part the flat subscription covered (the full list price, or 0).
31
+ * @type {number}
32
+ * @memberof CostDetails
33
+ */
34
+ planCoveredAmount: number;
35
+ /**
36
+ * The part charged to the wallet; equal to usage.cost.
37
+ * @type {number}
38
+ * @memberof CostDetails
39
+ */
40
+ chargedAmount: number;
41
+ /**
42
+ * Weighted subscription-quota units this call consumed: (prompt + completion tokens) × the model's usage factor. 0 for a subscriber call billed pay-as-you-go (a model the plan does not cover, or a quota fallback); null for a pay-as-you-go organization.
43
+ *
44
+ * @type {number}
45
+ * @memberof CostDetails
46
+ */
47
+ quotaUnitsUsed: number | null;
48
+ /**
49
+ * What the prompt cache saved: the list price without the cache discount minus list_price_equivalent. Null when the upstream did not report cache usage. Can be negative when a model's cached rate is not a discount.
50
+ *
51
+ * @type {number}
52
+ * @memberof CostDetails
53
+ */
54
+ cacheSavings: number | null;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the CostDetails interface.
59
+ */
60
+ export function instanceOfCostDetails(value: object): value is CostDetails {
61
+ if ((!('listPriceEquivalent' in (value as Record<string, any>)) && !('list_price_equivalent' in (value as Record<string, any>))) || ((value as Record<string, any>)['listPriceEquivalent'] === undefined && (value as Record<string, any>)['list_price_equivalent'] === undefined)) return false;
62
+ if ((!('planCoveredAmount' in (value as Record<string, any>)) && !('plan_covered_amount' in (value as Record<string, any>))) || ((value as Record<string, any>)['planCoveredAmount'] === undefined && (value as Record<string, any>)['plan_covered_amount'] === undefined)) return false;
63
+ if ((!('chargedAmount' in (value as Record<string, any>)) && !('charged_amount' in (value as Record<string, any>))) || ((value as Record<string, any>)['chargedAmount'] === undefined && (value as Record<string, any>)['charged_amount'] === undefined)) return false;
64
+ if ((!('quotaUnitsUsed' in (value as Record<string, any>)) && !('quota_units_used' in (value as Record<string, any>))) || ((value as Record<string, any>)['quotaUnitsUsed'] === undefined && (value as Record<string, any>)['quota_units_used'] === undefined)) return false;
65
+ if ((!('cacheSavings' in (value as Record<string, any>)) && !('cache_savings' in (value as Record<string, any>))) || ((value as Record<string, any>)['cacheSavings'] === undefined && (value as Record<string, any>)['cache_savings'] === undefined)) return false;
66
+ return true;
67
+ }
68
+
69
+ export function CostDetailsFromJSON(json: any): CostDetails {
70
+ return CostDetailsFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function CostDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CostDetails {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'listPriceEquivalent': json['list_price_equivalent'],
80
+ 'planCoveredAmount': json['plan_covered_amount'],
81
+ 'chargedAmount': json['charged_amount'],
82
+ 'quotaUnitsUsed': json['quota_units_used'],
83
+ 'cacheSavings': json['cache_savings'],
84
+ };
85
+ }
86
+
87
+ export function CostDetailsToJSON(json: any): CostDetails {
88
+ return CostDetailsToJSONTyped(json, false);
89
+ }
90
+
91
+ export function CostDetailsToJSONTyped(value?: CostDetails | null, ignoreDiscriminator: boolean = false): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+
96
+ return {
97
+
98
+ 'list_price_equivalent': value['listPriceEquivalent'],
99
+ 'plan_covered_amount': value['planCoveredAmount'],
100
+ 'charged_amount': value['chargedAmount'],
101
+ 'quota_units_used': value['quotaUnitsUsed'],
102
+ 'cache_savings': value['cacheSavings'],
103
+ };
104
+ }
105
+
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: support@deeprelay.ai
@@ -27,6 +27,7 @@ export interface CreateCryptoDepositRequest {
27
27
  */
28
28
  amountCents: number;
29
29
  /**
30
+ * Network to send on. tron and bsc (BNB Chain) carry USDT only (TRC-20 and BEP-20); base carries USDC only.
30
31
  *
31
32
  * @type {CreateCryptoDepositRequestChainEnum}
32
33
  * @memberof CreateCryptoDepositRequest
@@ -49,7 +50,9 @@ export const CreateCryptoDepositRequestChainEnum = {
49
50
  Base: 'base',
50
51
  Arbitrum: 'arbitrum',
51
52
  Polygon: 'polygon',
52
- Solana: 'solana'
53
+ Solana: 'solana',
54
+ Tron: 'tron',
55
+ Bsc: 'bsc'
53
56
  } as const;
54
57
  export type CreateCryptoDepositRequestChainEnum = typeof CreateCryptoDepositRequestChainEnum[keyof typeof CreateCryptoDepositRequestChainEnum];
55
58
 
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: support@deeprelay.ai
@@ -43,7 +43,11 @@ export const CreateWebhookEndpointRequestEventTypesEnum = {
43
43
  InstanceTerminated: 'instance.terminated',
44
44
  InstanceFailed: 'instance.failed',
45
45
  VideoCompleted: 'video.completed',
46
- VideoFailed: 'video.failed'
46
+ VideoFailed: 'video.failed',
47
+ BalanceLow: 'balance.low',
48
+ SubscriptionQuotaThreshold: 'subscription_quota.threshold',
49
+ ApiKeyBudgetThreshold: 'api_key_budget.threshold',
50
+ MemberSpendThreshold: 'member_spend.threshold'
47
51
  } as const;
48
52
  export type CreateWebhookEndpointRequestEventTypesEnum = typeof CreateWebhookEndpointRequestEventTypesEnum[keyof typeof CreateWebhookEndpointRequestEventTypesEnum];
49
53
 
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: support@deeprelay.ai
@@ -99,7 +99,9 @@ export const CryptoDepositChainEnum = {
99
99
  Base: 'base',
100
100
  Arbitrum: 'arbitrum',
101
101
  Polygon: 'polygon',
102
- Solana: 'solana'
102
+ Solana: 'solana',
103
+ Tron: 'tron',
104
+ Bsc: 'bsc'
103
105
  } as const;
104
106
  export type CryptoDepositChainEnum = typeof CryptoDepositChainEnum[keyof typeof CryptoDepositChainEnum];
105
107
 
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: support@deeprelay.ai
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: support@deeprelay.ai
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: support@deeprelay.ai