modelmix 2.2.8 → 2.3.8

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 (542) hide show
  1. package/README.md +19 -6
  2. package/demo/demo.mjs +24 -16
  3. package/demo/lmstudio.mjs +1 -1
  4. package/demo/node_modules/.package-lock.json +0 -47
  5. package/demo/package-lock.json +1 -50
  6. package/demo/package.json +1 -3
  7. package/demo/prompt.md +25 -0
  8. package/demo/stream.mjs +3 -3
  9. package/index.js +88 -2
  10. package/package.json +4 -2
  11. package/demo/node_modules/debug/LICENSE +0 -20
  12. package/demo/node_modules/debug/README.md +0 -481
  13. package/demo/node_modules/debug/node_modules/ms/index.js +0 -162
  14. package/demo/node_modules/debug/node_modules/ms/license.md +0 -21
  15. package/demo/node_modules/debug/node_modules/ms/package.json +0 -37
  16. package/demo/node_modules/debug/node_modules/ms/readme.md +0 -60
  17. package/demo/node_modules/debug/package.json +0 -59
  18. package/demo/node_modules/debug/src/browser.js +0 -269
  19. package/demo/node_modules/debug/src/common.js +0 -274
  20. package/demo/node_modules/debug/src/index.js +0 -10
  21. package/demo/node_modules/debug/src/node.js +0 -263
  22. package/demo/node_modules/lemonlog/README.md +0 -133
  23. package/demo/node_modules/lemonlog/demo/demo.js +0 -31
  24. package/demo/node_modules/lemonlog/index.js +0 -94
  25. package/demo/node_modules/lemonlog/package.json +0 -31
  26. package/demo/node_modules/openai/CHANGELOG.md +0 -1176
  27. package/demo/node_modules/openai/LICENSE +0 -201
  28. package/demo/node_modules/openai/README.md +0 -616
  29. package/demo/node_modules/openai/_shims/MultipartBody.d.ts +0 -9
  30. package/demo/node_modules/openai/_shims/MultipartBody.d.ts.map +0 -1
  31. package/demo/node_modules/openai/_shims/MultipartBody.js +0 -16
  32. package/demo/node_modules/openai/_shims/MultipartBody.js.map +0 -1
  33. package/demo/node_modules/openai/_shims/MultipartBody.mjs +0 -12
  34. package/demo/node_modules/openai/_shims/MultipartBody.mjs.map +0 -1
  35. package/demo/node_modules/openai/_shims/README.md +0 -46
  36. package/demo/node_modules/openai/_shims/auto/runtime-bun.d.ts +0 -5
  37. package/demo/node_modules/openai/_shims/auto/runtime-bun.d.ts.map +0 -1
  38. package/demo/node_modules/openai/_shims/auto/runtime-bun.js +0 -21
  39. package/demo/node_modules/openai/_shims/auto/runtime-bun.js.map +0 -1
  40. package/demo/node_modules/openai/_shims/auto/runtime-bun.mjs +0 -2
  41. package/demo/node_modules/openai/_shims/auto/runtime-bun.mjs.map +0 -1
  42. package/demo/node_modules/openai/_shims/auto/runtime-node.d.ts +0 -5
  43. package/demo/node_modules/openai/_shims/auto/runtime-node.d.ts.map +0 -1
  44. package/demo/node_modules/openai/_shims/auto/runtime-node.js +0 -21
  45. package/demo/node_modules/openai/_shims/auto/runtime-node.js.map +0 -1
  46. package/demo/node_modules/openai/_shims/auto/runtime-node.mjs +0 -2
  47. package/demo/node_modules/openai/_shims/auto/runtime-node.mjs.map +0 -1
  48. package/demo/node_modules/openai/_shims/auto/runtime.d.ts +0 -5
  49. package/demo/node_modules/openai/_shims/auto/runtime.d.ts.map +0 -1
  50. package/demo/node_modules/openai/_shims/auto/runtime.js +0 -21
  51. package/demo/node_modules/openai/_shims/auto/runtime.js.map +0 -1
  52. package/demo/node_modules/openai/_shims/auto/runtime.mjs +0 -2
  53. package/demo/node_modules/openai/_shims/auto/runtime.mjs.map +0 -1
  54. package/demo/node_modules/openai/_shims/auto/types-node.d.ts +0 -5
  55. package/demo/node_modules/openai/_shims/auto/types-node.d.ts.map +0 -1
  56. package/demo/node_modules/openai/_shims/auto/types-node.js +0 -21
  57. package/demo/node_modules/openai/_shims/auto/types-node.js.map +0 -1
  58. package/demo/node_modules/openai/_shims/auto/types-node.mjs +0 -2
  59. package/demo/node_modules/openai/_shims/auto/types-node.mjs.map +0 -1
  60. package/demo/node_modules/openai/_shims/auto/types.d.ts +0 -101
  61. package/demo/node_modules/openai/_shims/auto/types.js +0 -3
  62. package/demo/node_modules/openai/_shims/auto/types.mjs +0 -3
  63. package/demo/node_modules/openai/_shims/bun-runtime.d.ts +0 -6
  64. package/demo/node_modules/openai/_shims/bun-runtime.d.ts.map +0 -1
  65. package/demo/node_modules/openai/_shims/bun-runtime.js +0 -14
  66. package/demo/node_modules/openai/_shims/bun-runtime.js.map +0 -1
  67. package/demo/node_modules/openai/_shims/bun-runtime.mjs +0 -10
  68. package/demo/node_modules/openai/_shims/bun-runtime.mjs.map +0 -1
  69. package/demo/node_modules/openai/_shims/index.d.ts +0 -81
  70. package/demo/node_modules/openai/_shims/index.js +0 -13
  71. package/demo/node_modules/openai/_shims/index.mjs +0 -7
  72. package/demo/node_modules/openai/_shims/manual-types.d.ts +0 -12
  73. package/demo/node_modules/openai/_shims/manual-types.js +0 -3
  74. package/demo/node_modules/openai/_shims/manual-types.mjs +0 -3
  75. package/demo/node_modules/openai/_shims/node-runtime.d.ts +0 -3
  76. package/demo/node_modules/openai/_shims/node-runtime.d.ts.map +0 -1
  77. package/demo/node_modules/openai/_shims/node-runtime.js +0 -90
  78. package/demo/node_modules/openai/_shims/node-runtime.js.map +0 -1
  79. package/demo/node_modules/openai/_shims/node-runtime.mjs +0 -56
  80. package/demo/node_modules/openai/_shims/node-runtime.mjs.map +0 -1
  81. package/demo/node_modules/openai/_shims/node-types.d.ts +0 -42
  82. package/demo/node_modules/openai/_shims/node-types.js +0 -3
  83. package/demo/node_modules/openai/_shims/node-types.mjs +0 -3
  84. package/demo/node_modules/openai/_shims/registry.d.ts +0 -37
  85. package/demo/node_modules/openai/_shims/registry.d.ts.map +0 -1
  86. package/demo/node_modules/openai/_shims/registry.js +0 -41
  87. package/demo/node_modules/openai/_shims/registry.js.map +0 -1
  88. package/demo/node_modules/openai/_shims/registry.mjs +0 -37
  89. package/demo/node_modules/openai/_shims/registry.mjs.map +0 -1
  90. package/demo/node_modules/openai/_shims/web-runtime.d.ts +0 -5
  91. package/demo/node_modules/openai/_shims/web-runtime.d.ts.map +0 -1
  92. package/demo/node_modules/openai/_shims/web-runtime.js +0 -78
  93. package/demo/node_modules/openai/_shims/web-runtime.js.map +0 -1
  94. package/demo/node_modules/openai/_shims/web-runtime.mjs +0 -71
  95. package/demo/node_modules/openai/_shims/web-runtime.mjs.map +0 -1
  96. package/demo/node_modules/openai/_shims/web-types.d.ts +0 -83
  97. package/demo/node_modules/openai/_shims/web-types.js +0 -3
  98. package/demo/node_modules/openai/_shims/web-types.mjs +0 -3
  99. package/demo/node_modules/openai/bin/cli +0 -49
  100. package/demo/node_modules/openai/core.d.ts +0 -239
  101. package/demo/node_modules/openai/core.d.ts.map +0 -1
  102. package/demo/node_modules/openai/core.js +0 -879
  103. package/demo/node_modules/openai/core.js.map +0 -1
  104. package/demo/node_modules/openai/core.mjs +0 -848
  105. package/demo/node_modules/openai/core.mjs.map +0 -1
  106. package/demo/node_modules/openai/error.d.ts +0 -57
  107. package/demo/node_modules/openai/error.d.ts.map +0 -1
  108. package/demo/node_modules/openai/error.js +0 -148
  109. package/demo/node_modules/openai/error.js.map +0 -1
  110. package/demo/node_modules/openai/error.mjs +0 -132
  111. package/demo/node_modules/openai/error.mjs.map +0 -1
  112. package/demo/node_modules/openai/index.d.mts +0 -267
  113. package/demo/node_modules/openai/index.d.ts +0 -267
  114. package/demo/node_modules/openai/index.d.ts.map +0 -1
  115. package/demo/node_modules/openai/index.js +0 -262
  116. package/demo/node_modules/openai/index.js.map +0 -1
  117. package/demo/node_modules/openai/index.mjs +0 -232
  118. package/demo/node_modules/openai/index.mjs.map +0 -1
  119. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.d.ts +0 -74
  120. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.d.ts.map +0 -1
  121. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.js +0 -246
  122. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.js.map +0 -1
  123. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.mjs +0 -242
  124. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.mjs.map +0 -1
  125. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts +0 -114
  126. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map +0 -1
  127. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.js +0 -519
  128. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.js.map +0 -1
  129. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.mjs +0 -515
  130. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.mjs.map +0 -1
  131. package/demo/node_modules/openai/lib/AssistantStream.d.ts +0 -58
  132. package/demo/node_modules/openai/lib/AssistantStream.d.ts.map +0 -1
  133. package/demo/node_modules/openai/lib/AssistantStream.js +0 -548
  134. package/demo/node_modules/openai/lib/AssistantStream.js.map +0 -1
  135. package/demo/node_modules/openai/lib/AssistantStream.mjs +0 -521
  136. package/demo/node_modules/openai/lib/AssistantStream.mjs.map +0 -1
  137. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.d.ts +0 -2
  138. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.d.ts.map +0 -1
  139. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.js +0 -2177
  140. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.js.map +0 -1
  141. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.mjs +0 -2172
  142. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.mjs.map +0 -1
  143. package/demo/node_modules/openai/lib/ChatCompletionRunner.d.ts +0 -19
  144. package/demo/node_modules/openai/lib/ChatCompletionRunner.d.ts.map +0 -1
  145. package/demo/node_modules/openai/lib/ChatCompletionRunner.js +0 -34
  146. package/demo/node_modules/openai/lib/ChatCompletionRunner.js.map +0 -1
  147. package/demo/node_modules/openai/lib/ChatCompletionRunner.mjs +0 -30
  148. package/demo/node_modules/openai/lib/ChatCompletionRunner.mjs.map +0 -1
  149. package/demo/node_modules/openai/lib/ChatCompletionStream.d.ts +0 -149
  150. package/demo/node_modules/openai/lib/ChatCompletionStream.d.ts.map +0 -1
  151. package/demo/node_modules/openai/lib/ChatCompletionStream.js +0 -312
  152. package/demo/node_modules/openai/lib/ChatCompletionStream.js.map +0 -1
  153. package/demo/node_modules/openai/lib/ChatCompletionStream.mjs +0 -308
  154. package/demo/node_modules/openai/lib/ChatCompletionStream.mjs.map +0 -1
  155. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts +0 -22
  156. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts.map +0 -1
  157. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.js +0 -32
  158. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.js.map +0 -1
  159. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs +0 -28
  160. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs.map +0 -1
  161. package/demo/node_modules/openai/lib/RunnableFunction.d.ts +0 -95
  162. package/demo/node_modules/openai/lib/RunnableFunction.d.ts.map +0 -1
  163. package/demo/node_modules/openai/lib/RunnableFunction.js +0 -35
  164. package/demo/node_modules/openai/lib/RunnableFunction.js.map +0 -1
  165. package/demo/node_modules/openai/lib/RunnableFunction.mjs +0 -29
  166. package/demo/node_modules/openai/lib/RunnableFunction.mjs.map +0 -1
  167. package/demo/node_modules/openai/lib/Util.d.ts +0 -5
  168. package/demo/node_modules/openai/lib/Util.d.ts.map +0 -1
  169. package/demo/node_modules/openai/lib/Util.js +0 -26
  170. package/demo/node_modules/openai/lib/Util.js.map +0 -1
  171. package/demo/node_modules/openai/lib/Util.mjs +0 -22
  172. package/demo/node_modules/openai/lib/Util.mjs.map +0 -1
  173. package/demo/node_modules/openai/lib/chatCompletionUtils.d.ts +0 -6
  174. package/demo/node_modules/openai/lib/chatCompletionUtils.d.ts.map +0 -1
  175. package/demo/node_modules/openai/lib/chatCompletionUtils.js +0 -20
  176. package/demo/node_modules/openai/lib/chatCompletionUtils.js.map +0 -1
  177. package/demo/node_modules/openai/lib/chatCompletionUtils.mjs +0 -13
  178. package/demo/node_modules/openai/lib/chatCompletionUtils.mjs.map +0 -1
  179. package/demo/node_modules/openai/lib/jsonschema.d.ts +0 -106
  180. package/demo/node_modules/openai/lib/jsonschema.d.ts.map +0 -1
  181. package/demo/node_modules/openai/lib/jsonschema.js +0 -11
  182. package/demo/node_modules/openai/lib/jsonschema.js.map +0 -1
  183. package/demo/node_modules/openai/lib/jsonschema.mjs +0 -10
  184. package/demo/node_modules/openai/lib/jsonschema.mjs.map +0 -1
  185. package/demo/node_modules/openai/package.json +0 -105
  186. package/demo/node_modules/openai/pagination.d.ts +0 -37
  187. package/demo/node_modules/openai/pagination.d.ts.map +0 -1
  188. package/demo/node_modules/openai/pagination.js +0 -64
  189. package/demo/node_modules/openai/pagination.js.map +0 -1
  190. package/demo/node_modules/openai/pagination.mjs +0 -59
  191. package/demo/node_modules/openai/pagination.mjs.map +0 -1
  192. package/demo/node_modules/openai/resource.d.ts +0 -6
  193. package/demo/node_modules/openai/resource.d.ts.map +0 -1
  194. package/demo/node_modules/openai/resource.js +0 -11
  195. package/demo/node_modules/openai/resource.js.map +0 -1
  196. package/demo/node_modules/openai/resource.mjs +0 -7
  197. package/demo/node_modules/openai/resource.mjs.map +0 -1
  198. package/demo/node_modules/openai/resources/audio/audio.d.ts +0 -20
  199. package/demo/node_modules/openai/resources/audio/audio.d.ts.map +0 -1
  200. package/demo/node_modules/openai/resources/audio/audio.js +0 -46
  201. package/demo/node_modules/openai/resources/audio/audio.js.map +0 -1
  202. package/demo/node_modules/openai/resources/audio/audio.mjs +0 -19
  203. package/demo/node_modules/openai/resources/audio/audio.mjs.map +0 -1
  204. package/demo/node_modules/openai/resources/audio/index.d.ts +0 -5
  205. package/demo/node_modules/openai/resources/audio/index.d.ts.map +0 -1
  206. package/demo/node_modules/openai/resources/audio/index.js +0 -13
  207. package/demo/node_modules/openai/resources/audio/index.js.map +0 -1
  208. package/demo/node_modules/openai/resources/audio/index.mjs +0 -6
  209. package/demo/node_modules/openai/resources/audio/index.mjs.map +0 -1
  210. package/demo/node_modules/openai/resources/audio/speech.d.ts +0 -42
  211. package/demo/node_modules/openai/resources/audio/speech.d.ts.map +0 -1
  212. package/demo/node_modules/openai/resources/audio/speech.js +0 -17
  213. package/demo/node_modules/openai/resources/audio/speech.js.map +0 -1
  214. package/demo/node_modules/openai/resources/audio/speech.mjs +0 -13
  215. package/demo/node_modules/openai/resources/audio/speech.mjs.map +0 -1
  216. package/demo/node_modules/openai/resources/audio/transcriptions.d.ts +0 -71
  217. package/demo/node_modules/openai/resources/audio/transcriptions.d.ts.map +0 -1
  218. package/demo/node_modules/openai/resources/audio/transcriptions.js +0 -18
  219. package/demo/node_modules/openai/resources/audio/transcriptions.js.map +0 -1
  220. package/demo/node_modules/openai/resources/audio/transcriptions.mjs +0 -14
  221. package/demo/node_modules/openai/resources/audio/transcriptions.mjs.map +0 -1
  222. package/demo/node_modules/openai/resources/audio/translations.d.ts +0 -50
  223. package/demo/node_modules/openai/resources/audio/translations.d.ts.map +0 -1
  224. package/demo/node_modules/openai/resources/audio/translations.js +0 -18
  225. package/demo/node_modules/openai/resources/audio/translations.js.map +0 -1
  226. package/demo/node_modules/openai/resources/audio/translations.mjs +0 -14
  227. package/demo/node_modules/openai/resources/audio/translations.mjs.map +0 -1
  228. package/demo/node_modules/openai/resources/batches.d.ts +0 -189
  229. package/demo/node_modules/openai/resources/batches.d.ts.map +0 -1
  230. package/demo/node_modules/openai/resources/batches.js +0 -65
  231. package/demo/node_modules/openai/resources/batches.js.map +0 -1
  232. package/demo/node_modules/openai/resources/batches.mjs +0 -37
  233. package/demo/node_modules/openai/resources/batches.mjs.map +0 -1
  234. package/demo/node_modules/openai/resources/beta/assistants.d.ts +0 -1048
  235. package/demo/node_modules/openai/resources/beta/assistants.d.ts.map +0 -1
  236. package/demo/node_modules/openai/resources/beta/assistants.js +0 -89
  237. package/demo/node_modules/openai/resources/beta/assistants.js.map +0 -1
  238. package/demo/node_modules/openai/resources/beta/assistants.mjs +0 -61
  239. package/demo/node_modules/openai/resources/beta/assistants.mjs.map +0 -1
  240. package/demo/node_modules/openai/resources/beta/beta.d.ts +0 -53
  241. package/demo/node_modules/openai/resources/beta/beta.d.ts.map +0 -1
  242. package/demo/node_modules/openai/resources/beta/beta.js +0 -51
  243. package/demo/node_modules/openai/resources/beta/beta.js.map +0 -1
  244. package/demo/node_modules/openai/resources/beta/beta.mjs +0 -24
  245. package/demo/node_modules/openai/resources/beta/beta.mjs.map +0 -1
  246. package/demo/node_modules/openai/resources/beta/chat/chat.d.ts +0 -9
  247. package/demo/node_modules/openai/resources/beta/chat/chat.d.ts.map +0 -1
  248. package/demo/node_modules/openai/resources/beta/chat/chat.js +0 -40
  249. package/demo/node_modules/openai/resources/beta/chat/chat.js.map +0 -1
  250. package/demo/node_modules/openai/resources/beta/chat/chat.mjs +0 -13
  251. package/demo/node_modules/openai/resources/beta/chat/chat.mjs.map +0 -1
  252. package/demo/node_modules/openai/resources/beta/chat/completions.d.ts +0 -37
  253. package/demo/node_modules/openai/resources/beta/chat/completions.d.ts.map +0 -1
  254. package/demo/node_modules/openai/resources/beta/chat/completions.js +0 -39
  255. package/demo/node_modules/openai/resources/beta/chat/completions.js.map +0 -1
  256. package/demo/node_modules/openai/resources/beta/chat/completions.mjs +0 -30
  257. package/demo/node_modules/openai/resources/beta/chat/completions.mjs.map +0 -1
  258. package/demo/node_modules/openai/resources/beta/chat/index.d.ts +0 -3
  259. package/demo/node_modules/openai/resources/beta/chat/index.d.ts.map +0 -1
  260. package/demo/node_modules/openai/resources/beta/chat/index.js +0 -9
  261. package/demo/node_modules/openai/resources/beta/chat/index.js.map +0 -1
  262. package/demo/node_modules/openai/resources/beta/chat/index.mjs +0 -4
  263. package/demo/node_modules/openai/resources/beta/chat/index.mjs.map +0 -1
  264. package/demo/node_modules/openai/resources/beta/index.d.ts +0 -6
  265. package/demo/node_modules/openai/resources/beta/index.d.ts.map +0 -1
  266. package/demo/node_modules/openai/resources/beta/index.js +0 -17
  267. package/demo/node_modules/openai/resources/beta/index.js.map +0 -1
  268. package/demo/node_modules/openai/resources/beta/index.mjs +0 -7
  269. package/demo/node_modules/openai/resources/beta/index.mjs.map +0 -1
  270. package/demo/node_modules/openai/resources/beta/threads/index.d.ts +0 -4
  271. package/demo/node_modules/openai/resources/beta/threads/index.d.ts.map +0 -1
  272. package/demo/node_modules/openai/resources/beta/threads/index.js +0 -13
  273. package/demo/node_modules/openai/resources/beta/threads/index.js.map +0 -1
  274. package/demo/node_modules/openai/resources/beta/threads/index.mjs +0 -5
  275. package/demo/node_modules/openai/resources/beta/threads/index.mjs.map +0 -1
  276. package/demo/node_modules/openai/resources/beta/threads/messages.d.ts +0 -552
  277. package/demo/node_modules/openai/resources/beta/threads/messages.d.ts.map +0 -1
  278. package/demo/node_modules/openai/resources/beta/threads/messages.js +0 -89
  279. package/demo/node_modules/openai/resources/beta/threads/messages.js.map +0 -1
  280. package/demo/node_modules/openai/resources/beta/threads/messages.mjs +0 -61
  281. package/demo/node_modules/openai/resources/beta/threads/messages.mjs.map +0 -1
  282. package/demo/node_modules/openai/resources/beta/threads/runs/index.d.ts +0 -3
  283. package/demo/node_modules/openai/resources/beta/threads/runs/index.d.ts.map +0 -1
  284. package/demo/node_modules/openai/resources/beta/threads/runs/index.js +0 -11
  285. package/demo/node_modules/openai/resources/beta/threads/runs/index.js.map +0 -1
  286. package/demo/node_modules/openai/resources/beta/threads/runs/index.mjs +0 -4
  287. package/demo/node_modules/openai/resources/beta/threads/runs/index.mjs.map +0 -1
  288. package/demo/node_modules/openai/resources/beta/threads/runs/runs.d.ts +0 -1194
  289. package/demo/node_modules/openai/resources/beta/threads/runs/runs.d.ts.map +0 -1
  290. package/demo/node_modules/openai/resources/beta/threads/runs/runs.js +0 -190
  291. package/demo/node_modules/openai/resources/beta/threads/runs/runs.js.map +0 -1
  292. package/demo/node_modules/openai/resources/beta/threads/runs/runs.mjs +0 -162
  293. package/demo/node_modules/openai/resources/beta/threads/runs/runs.mjs.map +0 -1
  294. package/demo/node_modules/openai/resources/beta/threads/runs/steps.d.ts +0 -520
  295. package/demo/node_modules/openai/resources/beta/threads/runs/steps.d.ts.map +0 -1
  296. package/demo/node_modules/openai/resources/beta/threads/runs/steps.js +0 -60
  297. package/demo/node_modules/openai/resources/beta/threads/runs/steps.js.map +0 -1
  298. package/demo/node_modules/openai/resources/beta/threads/runs/steps.mjs +0 -32
  299. package/demo/node_modules/openai/resources/beta/threads/runs/steps.mjs.map +0 -1
  300. package/demo/node_modules/openai/resources/beta/threads/threads.d.ts +0 -1240
  301. package/demo/node_modules/openai/resources/beta/threads/threads.d.ts.map +0 -1
  302. package/demo/node_modules/openai/resources/beta/threads/threads.js +0 -108
  303. package/demo/node_modules/openai/resources/beta/threads/threads.js.map +0 -1
  304. package/demo/node_modules/openai/resources/beta/threads/threads.mjs +0 -81
  305. package/demo/node_modules/openai/resources/beta/threads/threads.mjs.map +0 -1
  306. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.d.ts +0 -142
  307. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.d.ts.map +0 -1
  308. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.js +0 -129
  309. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.js.map +0 -1
  310. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.mjs +0 -125
  311. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.mjs.map +0 -1
  312. package/demo/node_modules/openai/resources/beta/vector-stores/files.d.ts +0 -154
  313. package/demo/node_modules/openai/resources/beta/vector-stores/files.d.ts.map +0 -1
  314. package/demo/node_modules/openai/resources/beta/vector-stores/files.js +0 -149
  315. package/demo/node_modules/openai/resources/beta/vector-stores/files.js.map +0 -1
  316. package/demo/node_modules/openai/resources/beta/vector-stores/files.mjs +0 -121
  317. package/demo/node_modules/openai/resources/beta/vector-stores/files.mjs.map +0 -1
  318. package/demo/node_modules/openai/resources/beta/vector-stores/index.d.ts +0 -4
  319. package/demo/node_modules/openai/resources/beta/vector-stores/index.d.ts.map +0 -1
  320. package/demo/node_modules/openai/resources/beta/vector-stores/index.js +0 -13
  321. package/demo/node_modules/openai/resources/beta/vector-stores/index.js.map +0 -1
  322. package/demo/node_modules/openai/resources/beta/vector-stores/index.mjs +0 -5
  323. package/demo/node_modules/openai/resources/beta/vector-stores/index.mjs.map +0 -1
  324. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.d.ts +0 -233
  325. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.d.ts.map +0 -1
  326. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.js +0 -99
  327. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.js.map +0 -1
  328. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.mjs +0 -71
  329. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.mjs.map +0 -1
  330. package/demo/node_modules/openai/resources/chat/chat.d.ts +0 -42
  331. package/demo/node_modules/openai/resources/chat/chat.d.ts.map +0 -1
  332. package/demo/node_modules/openai/resources/chat/chat.js +0 -40
  333. package/demo/node_modules/openai/resources/chat/chat.js.map +0 -1
  334. package/demo/node_modules/openai/resources/chat/chat.mjs +0 -13
  335. package/demo/node_modules/openai/resources/chat/chat.mjs.map +0 -1
  336. package/demo/node_modules/openai/resources/chat/completions.d.ts +0 -845
  337. package/demo/node_modules/openai/resources/chat/completions.d.ts.map +0 -1
  338. package/demo/node_modules/openai/resources/chat/completions.js +0 -14
  339. package/demo/node_modules/openai/resources/chat/completions.js.map +0 -1
  340. package/demo/node_modules/openai/resources/chat/completions.mjs +0 -10
  341. package/demo/node_modules/openai/resources/chat/completions.mjs.map +0 -1
  342. package/demo/node_modules/openai/resources/chat/index.d.ts +0 -3
  343. package/demo/node_modules/openai/resources/chat/index.d.ts.map +0 -1
  344. package/demo/node_modules/openai/resources/chat/index.js +0 -9
  345. package/demo/node_modules/openai/resources/chat/index.js.map +0 -1
  346. package/demo/node_modules/openai/resources/chat/index.mjs +0 -4
  347. package/demo/node_modules/openai/resources/chat/index.mjs.map +0 -1
  348. package/demo/node_modules/openai/resources/completions.d.ts +0 -272
  349. package/demo/node_modules/openai/resources/completions.d.ts.map +0 -1
  350. package/demo/node_modules/openai/resources/completions.js +0 -14
  351. package/demo/node_modules/openai/resources/completions.js.map +0 -1
  352. package/demo/node_modules/openai/resources/completions.mjs +0 -10
  353. package/demo/node_modules/openai/resources/completions.mjs.map +0 -1
  354. package/demo/node_modules/openai/resources/embeddings.d.ts +0 -103
  355. package/demo/node_modules/openai/resources/embeddings.d.ts.map +0 -1
  356. package/demo/node_modules/openai/resources/embeddings.js +0 -17
  357. package/demo/node_modules/openai/resources/embeddings.js.map +0 -1
  358. package/demo/node_modules/openai/resources/embeddings.mjs +0 -13
  359. package/demo/node_modules/openai/resources/embeddings.mjs.map +0 -1
  360. package/demo/node_modules/openai/resources/files.d.ts +0 -140
  361. package/demo/node_modules/openai/resources/files.d.ts.map +0 -1
  362. package/demo/node_modules/openai/resources/files.js +0 -120
  363. package/demo/node_modules/openai/resources/files.js.map +0 -1
  364. package/demo/node_modules/openai/resources/files.mjs +0 -92
  365. package/demo/node_modules/openai/resources/files.mjs.map +0 -1
  366. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts +0 -19
  367. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts.map +0 -1
  368. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.js +0 -42
  369. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.js.map +0 -1
  370. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.mjs +0 -15
  371. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.mjs.map +0 -1
  372. package/demo/node_modules/openai/resources/fine-tuning/index.d.ts +0 -3
  373. package/demo/node_modules/openai/resources/fine-tuning/index.d.ts.map +0 -1
  374. package/demo/node_modules/openai/resources/fine-tuning/index.js +0 -11
  375. package/demo/node_modules/openai/resources/fine-tuning/index.js.map +0 -1
  376. package/demo/node_modules/openai/resources/fine-tuning/index.mjs +0 -4
  377. package/demo/node_modules/openai/resources/fine-tuning/index.mjs.map +0 -1
  378. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts +0 -69
  379. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts.map +0 -1
  380. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +0 -47
  381. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js.map +0 -1
  382. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs +0 -19
  383. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs.map +0 -1
  384. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.d.ts +0 -3
  385. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.d.ts.map +0 -1
  386. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.js +0 -12
  387. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.js.map +0 -1
  388. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.mjs +0 -4
  389. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.mjs.map +0 -1
  390. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts +0 -362
  391. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts.map +0 -1
  392. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.js +0 -93
  393. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.js.map +0 -1
  394. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs +0 -64
  395. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs.map +0 -1
  396. package/demo/node_modules/openai/resources/images.d.ts +0 -174
  397. package/demo/node_modules/openai/resources/images.d.ts.map +0 -1
  398. package/demo/node_modules/openai/resources/images.js +0 -30
  399. package/demo/node_modules/openai/resources/images.js.map +0 -1
  400. package/demo/node_modules/openai/resources/images.mjs +0 -26
  401. package/demo/node_modules/openai/resources/images.mjs.map +0 -1
  402. package/demo/node_modules/openai/resources/index.d.ts +0 -13
  403. package/demo/node_modules/openai/resources/index.d.ts.map +0 -1
  404. package/demo/node_modules/openai/resources/index.js +0 -44
  405. package/demo/node_modules/openai/resources/index.js.map +0 -1
  406. package/demo/node_modules/openai/resources/index.mjs +0 -14
  407. package/demo/node_modules/openai/resources/index.mjs.map +0 -1
  408. package/demo/node_modules/openai/resources/models.d.ts +0 -58
  409. package/demo/node_modules/openai/resources/models.d.ts.map +0 -1
  410. package/demo/node_modules/openai/resources/models.js +0 -64
  411. package/demo/node_modules/openai/resources/models.js.map +0 -1
  412. package/demo/node_modules/openai/resources/models.mjs +0 -36
  413. package/demo/node_modules/openai/resources/models.mjs.map +0 -1
  414. package/demo/node_modules/openai/resources/moderations.d.ts +0 -176
  415. package/demo/node_modules/openai/resources/moderations.d.ts.map +0 -1
  416. package/demo/node_modules/openai/resources/moderations.js +0 -17
  417. package/demo/node_modules/openai/resources/moderations.js.map +0 -1
  418. package/demo/node_modules/openai/resources/moderations.mjs +0 -13
  419. package/demo/node_modules/openai/resources/moderations.mjs.map +0 -1
  420. package/demo/node_modules/openai/resources/shared.d.ts +0 -39
  421. package/demo/node_modules/openai/resources/shared.d.ts.map +0 -1
  422. package/demo/node_modules/openai/resources/shared.js +0 -4
  423. package/demo/node_modules/openai/resources/shared.js.map +0 -1
  424. package/demo/node_modules/openai/resources/shared.mjs +0 -3
  425. package/demo/node_modules/openai/resources/shared.mjs.map +0 -1
  426. package/demo/node_modules/openai/shims/node.d.ts +0 -29
  427. package/demo/node_modules/openai/shims/node.d.ts.map +0 -1
  428. package/demo/node_modules/openai/shims/node.js +0 -31
  429. package/demo/node_modules/openai/shims/node.js.map +0 -1
  430. package/demo/node_modules/openai/shims/node.mjs +0 -5
  431. package/demo/node_modules/openai/shims/node.mjs.map +0 -1
  432. package/demo/node_modules/openai/shims/web.d.ts +0 -26
  433. package/demo/node_modules/openai/shims/web.d.ts.map +0 -1
  434. package/demo/node_modules/openai/shims/web.js +0 -31
  435. package/demo/node_modules/openai/shims/web.js.map +0 -1
  436. package/demo/node_modules/openai/shims/web.mjs +0 -5
  437. package/demo/node_modules/openai/shims/web.mjs.map +0 -1
  438. package/demo/node_modules/openai/src/_shims/MultipartBody.ts +0 -9
  439. package/demo/node_modules/openai/src/_shims/README.md +0 -46
  440. package/demo/node_modules/openai/src/_shims/auto/runtime-bun.ts +0 -4
  441. package/demo/node_modules/openai/src/_shims/auto/runtime-node.ts +0 -4
  442. package/demo/node_modules/openai/src/_shims/auto/runtime.ts +0 -4
  443. package/demo/node_modules/openai/src/_shims/auto/types-node.ts +0 -4
  444. package/demo/node_modules/openai/src/_shims/auto/types.d.ts +0 -101
  445. package/demo/node_modules/openai/src/_shims/auto/types.js +0 -3
  446. package/demo/node_modules/openai/src/_shims/auto/types.mjs +0 -3
  447. package/demo/node_modules/openai/src/_shims/bun-runtime.ts +0 -14
  448. package/demo/node_modules/openai/src/_shims/index.d.ts +0 -81
  449. package/demo/node_modules/openai/src/_shims/index.js +0 -13
  450. package/demo/node_modules/openai/src/_shims/index.mjs +0 -7
  451. package/demo/node_modules/openai/src/_shims/manual-types.d.ts +0 -12
  452. package/demo/node_modules/openai/src/_shims/manual-types.js +0 -3
  453. package/demo/node_modules/openai/src/_shims/manual-types.mjs +0 -3
  454. package/demo/node_modules/openai/src/_shims/node-runtime.ts +0 -83
  455. package/demo/node_modules/openai/src/_shims/node-types.d.ts +0 -42
  456. package/demo/node_modules/openai/src/_shims/node-types.js +0 -3
  457. package/demo/node_modules/openai/src/_shims/node-types.mjs +0 -3
  458. package/demo/node_modules/openai/src/_shims/registry.ts +0 -65
  459. package/demo/node_modules/openai/src/_shims/web-runtime.ts +0 -103
  460. package/demo/node_modules/openai/src/_shims/web-types.d.ts +0 -83
  461. package/demo/node_modules/openai/src/_shims/web-types.js +0 -3
  462. package/demo/node_modules/openai/src/_shims/web-types.mjs +0 -3
  463. package/demo/node_modules/openai/src/core.ts +0 -1162
  464. package/demo/node_modules/openai/src/error.ts +0 -158
  465. package/demo/node_modules/openai/src/index.ts +0 -502
  466. package/demo/node_modules/openai/src/lib/.keep +0 -4
  467. package/demo/node_modules/openai/src/lib/AbstractAssistantStreamRunner.ts +0 -340
  468. package/demo/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +0 -682
  469. package/demo/node_modules/openai/src/lib/AssistantStream.ts +0 -723
  470. package/demo/node_modules/openai/src/lib/ChatCompletionRunFunctions.test.ts +0 -2328
  471. package/demo/node_modules/openai/src/lib/ChatCompletionRunner.ts +0 -68
  472. package/demo/node_modules/openai/src/lib/ChatCompletionStream.ts +0 -494
  473. package/demo/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +0 -68
  474. package/demo/node_modules/openai/src/lib/RunnableFunction.ts +0 -134
  475. package/demo/node_modules/openai/src/lib/Util.ts +0 -23
  476. package/demo/node_modules/openai/src/lib/chatCompletionUtils.ts +0 -28
  477. package/demo/node_modules/openai/src/lib/jsonschema.ts +0 -148
  478. package/demo/node_modules/openai/src/pagination.ts +0 -98
  479. package/demo/node_modules/openai/src/resource.ts +0 -11
  480. package/demo/node_modules/openai/src/resources/audio/audio.ts +0 -23
  481. package/demo/node_modules/openai/src/resources/audio/index.ts +0 -6
  482. package/demo/node_modules/openai/src/resources/audio/speech.ts +0 -52
  483. package/demo/node_modules/openai/src/resources/audio/transcriptions.ts +0 -84
  484. package/demo/node_modules/openai/src/resources/audio/translations.ts +0 -61
  485. package/demo/node_modules/openai/src/resources/batches.ts +0 -252
  486. package/demo/node_modules/openai/src/resources/beta/assistants.ts +0 -1315
  487. package/demo/node_modules/openai/src/resources/beta/beta.ts +0 -56
  488. package/demo/node_modules/openai/src/resources/beta/chat/chat.ts +0 -12
  489. package/demo/node_modules/openai/src/resources/beta/chat/completions.ts +0 -106
  490. package/demo/node_modules/openai/src/resources/beta/chat/index.ts +0 -4
  491. package/demo/node_modules/openai/src/resources/beta/index.ts +0 -48
  492. package/demo/node_modules/openai/src/resources/beta/threads/index.ts +0 -72
  493. package/demo/node_modules/openai/src/resources/beta/threads/messages.ts +0 -706
  494. package/demo/node_modules/openai/src/resources/beta/threads/runs/index.ts +0 -44
  495. package/demo/node_modules/openai/src/resources/beta/threads/runs/runs.ts +0 -1627
  496. package/demo/node_modules/openai/src/resources/beta/threads/runs/steps.ts +0 -641
  497. package/demo/node_modules/openai/src/resources/beta/threads/threads.ts +0 -1536
  498. package/demo/node_modules/openai/src/resources/beta/vector-stores/file-batches.ts +0 -293
  499. package/demo/node_modules/openai/src/resources/beta/vector-stores/files.ts +0 -284
  500. package/demo/node_modules/openai/src/resources/beta/vector-stores/index.ts +0 -25
  501. package/demo/node_modules/openai/src/resources/beta/vector-stores/vector-stores.ts +0 -318
  502. package/demo/node_modules/openai/src/resources/chat/chat.ts +0 -67
  503. package/demo/node_modules/openai/src/resources/chat/completions.ts +0 -996
  504. package/demo/node_modules/openai/src/resources/chat/index.ts +0 -33
  505. package/demo/node_modules/openai/src/resources/completions.ts +0 -329
  506. package/demo/node_modules/openai/src/resources/embeddings.ts +0 -125
  507. package/demo/node_modules/openai/src/resources/files.ts +0 -214
  508. package/demo/node_modules/openai/src/resources/fine-tuning/fine-tuning.ts +0 -22
  509. package/demo/node_modules/openai/src/resources/fine-tuning/index.ts +0 -16
  510. package/demo/node_modules/openai/src/resources/fine-tuning/jobs/checkpoints.ts +0 -108
  511. package/demo/node_modules/openai/src/resources/fine-tuning/jobs/index.ts +0 -21
  512. package/demo/node_modules/openai/src/resources/fine-tuning/jobs/jobs.ts +0 -458
  513. package/demo/node_modules/openai/src/resources/images.ts +0 -215
  514. package/demo/node_modules/openai/src/resources/index.ts +0 -45
  515. package/demo/node_modules/openai/src/resources/models.ts +0 -76
  516. package/demo/node_modules/openai/src/resources/moderations.ts +0 -214
  517. package/demo/node_modules/openai/src/resources/shared.ts +0 -47
  518. package/demo/node_modules/openai/src/shims/node.ts +0 -50
  519. package/demo/node_modules/openai/src/shims/web.ts +0 -50
  520. package/demo/node_modules/openai/src/streaming.ts +0 -508
  521. package/demo/node_modules/openai/src/tsconfig.json +0 -11
  522. package/demo/node_modules/openai/src/uploads.ts +0 -248
  523. package/demo/node_modules/openai/src/version.ts +0 -1
  524. package/demo/node_modules/openai/streaming.d.ts +0 -41
  525. package/demo/node_modules/openai/streaming.d.ts.map +0 -1
  526. package/demo/node_modules/openai/streaming.js +0 -433
  527. package/demo/node_modules/openai/streaming.js.map +0 -1
  528. package/demo/node_modules/openai/streaming.mjs +0 -426
  529. package/demo/node_modules/openai/streaming.mjs.map +0 -1
  530. package/demo/node_modules/openai/uploads.d.ts +0 -75
  531. package/demo/node_modules/openai/uploads.d.ts.map +0 -1
  532. package/demo/node_modules/openai/uploads.js +0 -165
  533. package/demo/node_modules/openai/uploads.js.map +0 -1
  534. package/demo/node_modules/openai/uploads.mjs +0 -152
  535. package/demo/node_modules/openai/uploads.mjs.map +0 -1
  536. package/demo/node_modules/openai/version.d.ts +0 -2
  537. package/demo/node_modules/openai/version.d.ts.map +0 -1
  538. package/demo/node_modules/openai/version.js +0 -5
  539. package/demo/node_modules/openai/version.js.map +0 -1
  540. package/demo/node_modules/openai/version.mjs +0 -2
  541. package/demo/node_modules/openai/version.mjs.map +0 -1
  542. package/demo/watson.png +0 -0
@@ -1,1240 +0,0 @@
1
- import * as Core from "../../../core.js";
2
- import { APIPromise } from "../../../core.js";
3
- import { APIResource } from "../../../resource.js";
4
- import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from "../../../lib/AssistantStream.js";
5
- import * as ThreadsAPI from "./threads.js";
6
- import * as AssistantsAPI from "../assistants.js";
7
- import * as MessagesAPI from "./messages.js";
8
- import * as RunsAPI from "./runs/runs.js";
9
- import { Stream } from "../../../streaming.js";
10
- export declare class Threads extends APIResource {
11
- runs: RunsAPI.Runs;
12
- messages: MessagesAPI.Messages;
13
- /**
14
- * Create a thread.
15
- */
16
- create(body?: ThreadCreateParams, options?: Core.RequestOptions): Core.APIPromise<Thread>;
17
- create(options?: Core.RequestOptions): Core.APIPromise<Thread>;
18
- /**
19
- * Retrieves a thread.
20
- */
21
- retrieve(threadId: string, options?: Core.RequestOptions): Core.APIPromise<Thread>;
22
- /**
23
- * Modifies a thread.
24
- */
25
- update(threadId: string, body: ThreadUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Thread>;
26
- /**
27
- * Delete a thread.
28
- */
29
- del(threadId: string, options?: Core.RequestOptions): Core.APIPromise<ThreadDeleted>;
30
- /**
31
- * Create a thread and run it in one request.
32
- */
33
- createAndRun(body: ThreadCreateAndRunParamsNonStreaming, options?: Core.RequestOptions): APIPromise<RunsAPI.Run>;
34
- createAndRun(body: ThreadCreateAndRunParamsStreaming, options?: Core.RequestOptions): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>;
35
- createAndRun(body: ThreadCreateAndRunParamsBase, options?: Core.RequestOptions): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent> | RunsAPI.Run>;
36
- /**
37
- * A helper to create a thread, start a run and then poll for a terminal state.
38
- * More information on Run lifecycles can be found here:
39
- * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps
40
- */
41
- createAndRunPoll(body: ThreadCreateAndRunParamsNonStreaming, options?: Core.RequestOptions & {
42
- pollIntervalMs?: number;
43
- }): Promise<Threads.Run>;
44
- /**
45
- * Create a thread and stream the run back
46
- */
47
- createAndRunStream(body: ThreadCreateAndRunParamsBaseStream, options?: Core.RequestOptions): AssistantStream;
48
- }
49
- /**
50
- * An object describing the expected output of the model. If `json_object` only
51
- * `function` type `tools` are allowed to be passed to the Run. If `text` the model
52
- * can return text or any value needed.
53
- */
54
- export interface AssistantResponseFormat {
55
- /**
56
- * Must be one of `text` or `json_object`.
57
- */
58
- type?: 'text' | 'json_object';
59
- }
60
- /**
61
- * Specifies the format that the model must output. Compatible with
62
- * [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
63
- * [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
64
- * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
65
- *
66
- * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
67
- * message the model generates is valid JSON.
68
- *
69
- * **Important:** when using JSON mode, you **must** also instruct the model to
70
- * produce JSON yourself via a system or user message. Without this, the model may
71
- * generate an unending stream of whitespace until the generation reaches the token
72
- * limit, resulting in a long-running and seemingly "stuck" request. Also note that
73
- * the message content may be partially cut off if `finish_reason="length"`, which
74
- * indicates the generation exceeded `max_tokens` or the conversation exceeded the
75
- * max context length.
76
- */
77
- export type AssistantResponseFormatOption = 'none' | 'auto' | AssistantResponseFormat;
78
- /**
79
- * Specifies a tool the model should use. Use to force the model to call a specific
80
- * tool.
81
- */
82
- export interface AssistantToolChoice {
83
- /**
84
- * The type of the tool. If type is `function`, the function name must be set
85
- */
86
- type: 'function' | 'code_interpreter' | 'file_search';
87
- function?: AssistantToolChoiceFunction;
88
- }
89
- export interface AssistantToolChoiceFunction {
90
- /**
91
- * The name of the function to call.
92
- */
93
- name: string;
94
- }
95
- /**
96
- * Controls which (if any) tool is called by the model. `none` means the model will
97
- * not call any tools and instead generates a message. `auto` is the default value
98
- * and means the model can pick between generating a message or calling one or more
99
- * tools. `required` means the model must call one or more tools before responding
100
- * to the user. Specifying a particular tool like `{"type": "file_search"}` or
101
- * `{"type": "function", "function": {"name": "my_function"}}` forces the model to
102
- * call that tool.
103
- */
104
- export type AssistantToolChoiceOption = 'none' | 'auto' | 'required' | AssistantToolChoice;
105
- /**
106
- * Represents a thread that contains
107
- * [messages](https://platform.openai.com/docs/api-reference/messages).
108
- */
109
- export interface Thread {
110
- /**
111
- * The identifier, which can be referenced in API endpoints.
112
- */
113
- id: string;
114
- /**
115
- * The Unix timestamp (in seconds) for when the thread was created.
116
- */
117
- created_at: number;
118
- /**
119
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
120
- * for storing additional information about the object in a structured format. Keys
121
- * can be a maximum of 64 characters long and values can be a maxium of 512
122
- * characters long.
123
- */
124
- metadata: unknown | null;
125
- /**
126
- * The object type, which is always `thread`.
127
- */
128
- object: 'thread';
129
- /**
130
- * A set of resources that are made available to the assistant's tools in this
131
- * thread. The resources are specific to the type of tool. For example, the
132
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
133
- * tool requires a list of vector store IDs.
134
- */
135
- tool_resources: Thread.ToolResources | null;
136
- }
137
- export declare namespace Thread {
138
- /**
139
- * A set of resources that are made available to the assistant's tools in this
140
- * thread. The resources are specific to the type of tool. For example, the
141
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
142
- * tool requires a list of vector store IDs.
143
- */
144
- interface ToolResources {
145
- code_interpreter?: ToolResources.CodeInterpreter;
146
- file_search?: ToolResources.FileSearch;
147
- }
148
- namespace ToolResources {
149
- interface CodeInterpreter {
150
- /**
151
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
152
- * available to the `code_interpreter` tool. There can be a maximum of 20 files
153
- * associated with the tool.
154
- */
155
- file_ids?: Array<string>;
156
- }
157
- interface FileSearch {
158
- /**
159
- * The
160
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
161
- * attached to this thread. There can be a maximum of 1 vector store attached to
162
- * the thread.
163
- */
164
- vector_store_ids?: Array<string>;
165
- }
166
- }
167
- }
168
- export interface ThreadDeleted {
169
- id: string;
170
- deleted: boolean;
171
- object: 'thread.deleted';
172
- }
173
- export interface ThreadCreateParams {
174
- /**
175
- * A list of [messages](https://platform.openai.com/docs/api-reference/messages) to
176
- * start the thread with.
177
- */
178
- messages?: Array<ThreadCreateParams.Message>;
179
- /**
180
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
181
- * for storing additional information about the object in a structured format. Keys
182
- * can be a maximum of 64 characters long and values can be a maxium of 512
183
- * characters long.
184
- */
185
- metadata?: unknown | null;
186
- /**
187
- * A set of resources that are made available to the assistant's tools in this
188
- * thread. The resources are specific to the type of tool. For example, the
189
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
190
- * tool requires a list of vector store IDs.
191
- */
192
- tool_resources?: ThreadCreateParams.ToolResources | null;
193
- }
194
- export declare namespace ThreadCreateParams {
195
- interface Message {
196
- /**
197
- * The text contents of the message.
198
- */
199
- content: string | Array<MessagesAPI.MessageContentPartParam>;
200
- /**
201
- * The role of the entity that is creating the message. Allowed values include:
202
- *
203
- * - `user`: Indicates the message is sent by an actual user and should be used in
204
- * most cases to represent user-generated messages.
205
- * - `assistant`: Indicates the message is generated by the assistant. Use this
206
- * value to insert messages from the assistant into the conversation.
207
- */
208
- role: 'user' | 'assistant';
209
- /**
210
- * A list of files attached to the message, and the tools they should be added to.
211
- */
212
- attachments?: Array<Message.Attachment> | null;
213
- /**
214
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
215
- * for storing additional information about the object in a structured format. Keys
216
- * can be a maximum of 64 characters long and values can be a maxium of 512
217
- * characters long.
218
- */
219
- metadata?: unknown | null;
220
- }
221
- namespace Message {
222
- interface Attachment {
223
- /**
224
- * The ID of the file to attach to the message.
225
- */
226
- file_id?: string;
227
- /**
228
- * The tools to add this file to.
229
- */
230
- tools?: Array<AssistantsAPI.CodeInterpreterTool | AssistantsAPI.FileSearchTool>;
231
- }
232
- }
233
- /**
234
- * A set of resources that are made available to the assistant's tools in this
235
- * thread. The resources are specific to the type of tool. For example, the
236
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
237
- * tool requires a list of vector store IDs.
238
- */
239
- interface ToolResources {
240
- code_interpreter?: ToolResources.CodeInterpreter;
241
- file_search?: ToolResources.FileSearch;
242
- }
243
- namespace ToolResources {
244
- interface CodeInterpreter {
245
- /**
246
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
247
- * available to the `code_interpreter` tool. There can be a maximum of 20 files
248
- * associated with the tool.
249
- */
250
- file_ids?: Array<string>;
251
- }
252
- interface FileSearch {
253
- /**
254
- * The
255
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
256
- * attached to this thread. There can be a maximum of 1 vector store attached to
257
- * the thread.
258
- */
259
- vector_store_ids?: Array<string>;
260
- /**
261
- * A helper to create a
262
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
263
- * with file_ids and attach it to this thread. There can be a maximum of 1 vector
264
- * store attached to the thread.
265
- */
266
- vector_stores?: Array<FileSearch.VectorStore>;
267
- }
268
- namespace FileSearch {
269
- interface VectorStore {
270
- /**
271
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to
272
- * add to the vector store. There can be a maximum of 10000 files in a vector
273
- * store.
274
- */
275
- file_ids?: Array<string>;
276
- /**
277
- * Set of 16 key-value pairs that can be attached to a vector store. This can be
278
- * useful for storing additional information about the vector store in a structured
279
- * format. Keys can be a maximum of 64 characters long and values can be a maxium
280
- * of 512 characters long.
281
- */
282
- metadata?: unknown;
283
- }
284
- }
285
- }
286
- }
287
- export interface ThreadUpdateParams {
288
- /**
289
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
290
- * for storing additional information about the object in a structured format. Keys
291
- * can be a maximum of 64 characters long and values can be a maxium of 512
292
- * characters long.
293
- */
294
- metadata?: unknown | null;
295
- /**
296
- * A set of resources that are made available to the assistant's tools in this
297
- * thread. The resources are specific to the type of tool. For example, the
298
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
299
- * tool requires a list of vector store IDs.
300
- */
301
- tool_resources?: ThreadUpdateParams.ToolResources | null;
302
- }
303
- export declare namespace ThreadUpdateParams {
304
- /**
305
- * A set of resources that are made available to the assistant's tools in this
306
- * thread. The resources are specific to the type of tool. For example, the
307
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
308
- * tool requires a list of vector store IDs.
309
- */
310
- interface ToolResources {
311
- code_interpreter?: ToolResources.CodeInterpreter;
312
- file_search?: ToolResources.FileSearch;
313
- }
314
- namespace ToolResources {
315
- interface CodeInterpreter {
316
- /**
317
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
318
- * available to the `code_interpreter` tool. There can be a maximum of 20 files
319
- * associated with the tool.
320
- */
321
- file_ids?: Array<string>;
322
- }
323
- interface FileSearch {
324
- /**
325
- * The
326
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
327
- * attached to this thread. There can be a maximum of 1 vector store attached to
328
- * the thread.
329
- */
330
- vector_store_ids?: Array<string>;
331
- }
332
- }
333
- }
334
- export type ThreadCreateAndRunParams = ThreadCreateAndRunParamsNonStreaming | ThreadCreateAndRunParamsStreaming;
335
- export interface ThreadCreateAndRunParamsBase {
336
- /**
337
- * The ID of the
338
- * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to
339
- * execute this run.
340
- */
341
- assistant_id: string;
342
- /**
343
- * Override the default system message of the assistant. This is useful for
344
- * modifying the behavior on a per-run basis.
345
- */
346
- instructions?: string | null;
347
- /**
348
- * The maximum number of completion tokens that may be used over the course of the
349
- * run. The run will make a best effort to use only the number of completion tokens
350
- * specified, across multiple turns of the run. If the run exceeds the number of
351
- * completion tokens specified, the run will end with status `incomplete`. See
352
- * `incomplete_details` for more info.
353
- */
354
- max_completion_tokens?: number | null;
355
- /**
356
- * The maximum number of prompt tokens that may be used over the course of the run.
357
- * The run will make a best effort to use only the number of prompt tokens
358
- * specified, across multiple turns of the run. If the run exceeds the number of
359
- * prompt tokens specified, the run will end with status `incomplete`. See
360
- * `incomplete_details` for more info.
361
- */
362
- max_prompt_tokens?: number | null;
363
- /**
364
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
365
- * for storing additional information about the object in a structured format. Keys
366
- * can be a maximum of 64 characters long and values can be a maxium of 512
367
- * characters long.
368
- */
369
- metadata?: unknown | null;
370
- /**
371
- * The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to
372
- * be used to execute this run. If a value is provided here, it will override the
373
- * model associated with the assistant. If not, the model associated with the
374
- * assistant will be used.
375
- */
376
- model?: (string & {}) | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | null;
377
- /**
378
- * Specifies the format that the model must output. Compatible with
379
- * [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
380
- * [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
381
- * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
382
- *
383
- * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
384
- * message the model generates is valid JSON.
385
- *
386
- * **Important:** when using JSON mode, you **must** also instruct the model to
387
- * produce JSON yourself via a system or user message. Without this, the model may
388
- * generate an unending stream of whitespace until the generation reaches the token
389
- * limit, resulting in a long-running and seemingly "stuck" request. Also note that
390
- * the message content may be partially cut off if `finish_reason="length"`, which
391
- * indicates the generation exceeded `max_tokens` or the conversation exceeded the
392
- * max context length.
393
- */
394
- response_format?: AssistantResponseFormatOption | null;
395
- /**
396
- * If `true`, returns a stream of events that happen during the Run as server-sent
397
- * events, terminating when the Run enters a terminal state with a `data: [DONE]`
398
- * message.
399
- */
400
- stream?: boolean | null;
401
- /**
402
- * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
403
- * make the output more random, while lower values like 0.2 will make it more
404
- * focused and deterministic.
405
- */
406
- temperature?: number | null;
407
- /**
408
- * If no thread is provided, an empty thread will be created.
409
- */
410
- thread?: ThreadCreateAndRunParams.Thread;
411
- /**
412
- * Controls which (if any) tool is called by the model. `none` means the model will
413
- * not call any tools and instead generates a message. `auto` is the default value
414
- * and means the model can pick between generating a message or calling one or more
415
- * tools. `required` means the model must call one or more tools before responding
416
- * to the user. Specifying a particular tool like `{"type": "file_search"}` or
417
- * `{"type": "function", "function": {"name": "my_function"}}` forces the model to
418
- * call that tool.
419
- */
420
- tool_choice?: AssistantToolChoiceOption | null;
421
- /**
422
- * A set of resources that are used by the assistant's tools. The resources are
423
- * specific to the type of tool. For example, the `code_interpreter` tool requires
424
- * a list of file IDs, while the `file_search` tool requires a list of vector store
425
- * IDs.
426
- */
427
- tool_resources?: ThreadCreateAndRunParams.ToolResources | null;
428
- /**
429
- * Override the tools the assistant can use for this run. This is useful for
430
- * modifying the behavior on a per-run basis.
431
- */
432
- tools?: Array<AssistantsAPI.CodeInterpreterTool | AssistantsAPI.FileSearchTool | AssistantsAPI.FunctionTool> | null;
433
- /**
434
- * An alternative to sampling with temperature, called nucleus sampling, where the
435
- * model considers the results of the tokens with top_p probability mass. So 0.1
436
- * means only the tokens comprising the top 10% probability mass are considered.
437
- *
438
- * We generally recommend altering this or temperature but not both.
439
- */
440
- top_p?: number | null;
441
- /**
442
- * Controls for how a thread will be truncated prior to the run. Use this to
443
- * control the intial context window of the run.
444
- */
445
- truncation_strategy?: ThreadCreateAndRunParams.TruncationStrategy | null;
446
- }
447
- export declare namespace ThreadCreateAndRunParams {
448
- /**
449
- * If no thread is provided, an empty thread will be created.
450
- */
451
- interface Thread {
452
- /**
453
- * A list of [messages](https://platform.openai.com/docs/api-reference/messages) to
454
- * start the thread with.
455
- */
456
- messages?: Array<Thread.Message>;
457
- /**
458
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
459
- * for storing additional information about the object in a structured format. Keys
460
- * can be a maximum of 64 characters long and values can be a maxium of 512
461
- * characters long.
462
- */
463
- metadata?: unknown | null;
464
- /**
465
- * A set of resources that are made available to the assistant's tools in this
466
- * thread. The resources are specific to the type of tool. For example, the
467
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
468
- * tool requires a list of vector store IDs.
469
- */
470
- tool_resources?: Thread.ToolResources | null;
471
- }
472
- namespace Thread {
473
- interface Message {
474
- /**
475
- * The text contents of the message.
476
- */
477
- content: string | Array<MessagesAPI.MessageContentPartParam>;
478
- /**
479
- * The role of the entity that is creating the message. Allowed values include:
480
- *
481
- * - `user`: Indicates the message is sent by an actual user and should be used in
482
- * most cases to represent user-generated messages.
483
- * - `assistant`: Indicates the message is generated by the assistant. Use this
484
- * value to insert messages from the assistant into the conversation.
485
- */
486
- role: 'user' | 'assistant';
487
- /**
488
- * A list of files attached to the message, and the tools they should be added to.
489
- */
490
- attachments?: Array<Message.Attachment> | null;
491
- /**
492
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
493
- * for storing additional information about the object in a structured format. Keys
494
- * can be a maximum of 64 characters long and values can be a maxium of 512
495
- * characters long.
496
- */
497
- metadata?: unknown | null;
498
- }
499
- namespace Message {
500
- interface Attachment {
501
- /**
502
- * The ID of the file to attach to the message.
503
- */
504
- file_id?: string;
505
- /**
506
- * The tools to add this file to.
507
- */
508
- tools?: Array<AssistantsAPI.CodeInterpreterTool | AssistantsAPI.FileSearchTool>;
509
- }
510
- }
511
- /**
512
- * A set of resources that are made available to the assistant's tools in this
513
- * thread. The resources are specific to the type of tool. For example, the
514
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
515
- * tool requires a list of vector store IDs.
516
- */
517
- interface ToolResources {
518
- code_interpreter?: ToolResources.CodeInterpreter;
519
- file_search?: ToolResources.FileSearch;
520
- }
521
- namespace ToolResources {
522
- interface CodeInterpreter {
523
- /**
524
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
525
- * available to the `code_interpreter` tool. There can be a maximum of 20 files
526
- * associated with the tool.
527
- */
528
- file_ids?: Array<string>;
529
- }
530
- interface FileSearch {
531
- /**
532
- * The
533
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
534
- * attached to this thread. There can be a maximum of 1 vector store attached to
535
- * the thread.
536
- */
537
- vector_store_ids?: Array<string>;
538
- /**
539
- * A helper to create a
540
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
541
- * with file_ids and attach it to this thread. There can be a maximum of 1 vector
542
- * store attached to the thread.
543
- */
544
- vector_stores?: Array<FileSearch.VectorStore>;
545
- }
546
- namespace FileSearch {
547
- interface VectorStore {
548
- /**
549
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to
550
- * add to the vector store. There can be a maximum of 10000 files in a vector
551
- * store.
552
- */
553
- file_ids?: Array<string>;
554
- /**
555
- * Set of 16 key-value pairs that can be attached to a vector store. This can be
556
- * useful for storing additional information about the vector store in a structured
557
- * format. Keys can be a maximum of 64 characters long and values can be a maxium
558
- * of 512 characters long.
559
- */
560
- metadata?: unknown;
561
- }
562
- }
563
- }
564
- }
565
- /**
566
- * A set of resources that are used by the assistant's tools. The resources are
567
- * specific to the type of tool. For example, the `code_interpreter` tool requires
568
- * a list of file IDs, while the `file_search` tool requires a list of vector store
569
- * IDs.
570
- */
571
- interface ToolResources {
572
- code_interpreter?: ToolResources.CodeInterpreter;
573
- file_search?: ToolResources.FileSearch;
574
- }
575
- namespace ToolResources {
576
- interface CodeInterpreter {
577
- /**
578
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
579
- * available to the `code_interpreter` tool. There can be a maximum of 20 files
580
- * associated with the tool.
581
- */
582
- file_ids?: Array<string>;
583
- }
584
- interface FileSearch {
585
- /**
586
- * The ID of the
587
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
588
- * attached to this assistant. There can be a maximum of 1 vector store attached to
589
- * the assistant.
590
- */
591
- vector_store_ids?: Array<string>;
592
- }
593
- }
594
- /**
595
- * Controls for how a thread will be truncated prior to the run. Use this to
596
- * control the intial context window of the run.
597
- */
598
- interface TruncationStrategy {
599
- /**
600
- * The truncation strategy to use for the thread. The default is `auto`. If set to
601
- * `last_messages`, the thread will be truncated to the n most recent messages in
602
- * the thread. When set to `auto`, messages in the middle of the thread will be
603
- * dropped to fit the context length of the model, `max_prompt_tokens`.
604
- */
605
- type: 'auto' | 'last_messages';
606
- /**
607
- * The number of most recent messages from the thread when constructing the context
608
- * for the run.
609
- */
610
- last_messages?: number | null;
611
- }
612
- type ThreadCreateAndRunParamsNonStreaming = ThreadsAPI.ThreadCreateAndRunParamsNonStreaming;
613
- type ThreadCreateAndRunParamsStreaming = ThreadsAPI.ThreadCreateAndRunParamsStreaming;
614
- }
615
- export interface ThreadCreateAndRunParamsNonStreaming extends ThreadCreateAndRunParamsBase {
616
- /**
617
- * If `true`, returns a stream of events that happen during the Run as server-sent
618
- * events, terminating when the Run enters a terminal state with a `data: [DONE]`
619
- * message.
620
- */
621
- stream?: false | null;
622
- }
623
- export interface ThreadCreateAndRunParamsStreaming extends ThreadCreateAndRunParamsBase {
624
- /**
625
- * If `true`, returns a stream of events that happen during the Run as server-sent
626
- * events, terminating when the Run enters a terminal state with a `data: [DONE]`
627
- * message.
628
- */
629
- stream: true;
630
- }
631
- export interface ThreadCreateAndRunPollParams {
632
- /**
633
- * The ID of the
634
- * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to
635
- * execute this run.
636
- */
637
- assistant_id: string;
638
- /**
639
- * Override the default system message of the assistant. This is useful for
640
- * modifying the behavior on a per-run basis.
641
- */
642
- instructions?: string | null;
643
- /**
644
- * The maximum number of completion tokens that may be used over the course of the
645
- * run. The run will make a best effort to use only the number of completion tokens
646
- * specified, across multiple turns of the run. If the run exceeds the number of
647
- * completion tokens specified, the run will end with status `incomplete`. See
648
- * `incomplete_details` for more info.
649
- */
650
- max_completion_tokens?: number | null;
651
- /**
652
- * The maximum number of prompt tokens that may be used over the course of the run.
653
- * The run will make a best effort to use only the number of prompt tokens
654
- * specified, across multiple turns of the run. If the run exceeds the number of
655
- * prompt tokens specified, the run will end with status `incomplete`. See
656
- * `incomplete_details` for more info.
657
- */
658
- max_prompt_tokens?: number | null;
659
- /**
660
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
661
- * for storing additional information about the object in a structured format. Keys
662
- * can be a maximum of 64 characters long and values can be a maxium of 512
663
- * characters long.
664
- */
665
- metadata?: unknown | null;
666
- /**
667
- * The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to
668
- * be used to execute this run. If a value is provided here, it will override the
669
- * model associated with the assistant. If not, the model associated with the
670
- * assistant will be used.
671
- */
672
- model?: (string & {}) | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | null;
673
- /**
674
- * Specifies the format that the model must output. Compatible with
675
- * [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
676
- * [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
677
- * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
678
- *
679
- * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
680
- * message the model generates is valid JSON.
681
- *
682
- * **Important:** when using JSON mode, you **must** also instruct the model to
683
- * produce JSON yourself via a system or user message. Without this, the model may
684
- * generate an unending stream of whitespace until the generation reaches the token
685
- * limit, resulting in a long-running and seemingly "stuck" request. Also note that
686
- * the message content may be partially cut off if `finish_reason="length"`, which
687
- * indicates the generation exceeded `max_tokens` or the conversation exceeded the
688
- * max context length.
689
- */
690
- response_format?: AssistantResponseFormatOption | null;
691
- /**
692
- * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
693
- * make the output more random, while lower values like 0.2 will make it more
694
- * focused and deterministic.
695
- */
696
- temperature?: number | null;
697
- /**
698
- * If no thread is provided, an empty thread will be created.
699
- */
700
- thread?: ThreadCreateAndRunPollParams.Thread;
701
- /**
702
- * Controls which (if any) tool is called by the model. `none` means the model will
703
- * not call any tools and instead generates a message. `auto` is the default value
704
- * and means the model can pick between generating a message or calling one or more
705
- * tools. `required` means the model must call one or more tools before responding
706
- * to the user. Specifying a particular tool like `{"type": "file_search"}` or
707
- * `{"type": "function", "function": {"name": "my_function"}}` forces the model to
708
- * call that tool.
709
- */
710
- tool_choice?: AssistantToolChoiceOption | null;
711
- /**
712
- * A set of resources that are used by the assistant's tools. The resources are
713
- * specific to the type of tool. For example, the `code_interpreter` tool requires
714
- * a list of file IDs, while the `file_search` tool requires a list of vector store
715
- * IDs.
716
- */
717
- tool_resources?: ThreadCreateAndRunPollParams.ToolResources | null;
718
- /**
719
- * Override the tools the assistant can use for this run. This is useful for
720
- * modifying the behavior on a per-run basis.
721
- */
722
- tools?: Array<AssistantsAPI.CodeInterpreterTool | AssistantsAPI.FileSearchTool | AssistantsAPI.FunctionTool> | null;
723
- /**
724
- * An alternative to sampling with temperature, called nucleus sampling, where the
725
- * model considers the results of the tokens with top_p probability mass. So 0.1
726
- * means only the tokens comprising the top 10% probability mass are considered.
727
- *
728
- * We generally recommend altering this or temperature but not both.
729
- */
730
- top_p?: number | null;
731
- /**
732
- * Controls for how a thread will be truncated prior to the run. Use this to
733
- * control the intial context window of the run.
734
- */
735
- truncation_strategy?: ThreadCreateAndRunPollParams.TruncationStrategy | null;
736
- }
737
- export declare namespace ThreadCreateAndRunPollParams {
738
- /**
739
- * If no thread is provided, an empty thread will be created.
740
- */
741
- interface Thread {
742
- /**
743
- * A list of [messages](https://platform.openai.com/docs/api-reference/messages) to
744
- * start the thread with.
745
- */
746
- messages?: Array<Thread.Message>;
747
- /**
748
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
749
- * for storing additional information about the object in a structured format. Keys
750
- * can be a maximum of 64 characters long and values can be a maxium of 512
751
- * characters long.
752
- */
753
- metadata?: unknown | null;
754
- /**
755
- * A set of resources that are made available to the assistant's tools in this
756
- * thread. The resources are specific to the type of tool. For example, the
757
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
758
- * tool requires a list of vector store IDs.
759
- */
760
- tool_resources?: Thread.ToolResources | null;
761
- }
762
- namespace Thread {
763
- interface Message {
764
- /**
765
- * The text contents of the message.
766
- */
767
- content: string | Array<MessagesAPI.MessageContentPartParam>;
768
- /**
769
- * The role of the entity that is creating the message. Allowed values include:
770
- *
771
- * - `user`: Indicates the message is sent by an actual user and should be used in
772
- * most cases to represent user-generated messages.
773
- * - `assistant`: Indicates the message is generated by the assistant. Use this
774
- * value to insert messages from the assistant into the conversation.
775
- */
776
- role: 'user' | 'assistant';
777
- /**
778
- * A list of files attached to the message, and the tools they should be added to.
779
- */
780
- attachments?: Array<Message.Attachment> | null;
781
- /**
782
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
783
- * for storing additional information about the object in a structured format. Keys
784
- * can be a maximum of 64 characters long and values can be a maxium of 512
785
- * characters long.
786
- */
787
- metadata?: unknown | null;
788
- }
789
- namespace Message {
790
- interface Attachment {
791
- /**
792
- * The ID of the file to attach to the message.
793
- */
794
- file_id?: string;
795
- /**
796
- * The tools to add this file to.
797
- */
798
- tools?: Array<AssistantsAPI.CodeInterpreterTool | AssistantsAPI.FileSearchTool>;
799
- }
800
- }
801
- /**
802
- * A set of resources that are made available to the assistant's tools in this
803
- * thread. The resources are specific to the type of tool. For example, the
804
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
805
- * tool requires a list of vector store IDs.
806
- */
807
- interface ToolResources {
808
- code_interpreter?: ToolResources.CodeInterpreter;
809
- file_search?: ToolResources.FileSearch;
810
- }
811
- namespace ToolResources {
812
- interface CodeInterpreter {
813
- /**
814
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
815
- * available to the `code_interpreter` tool. There can be a maximum of 20 files
816
- * associated with the tool.
817
- */
818
- file_ids?: Array<string>;
819
- }
820
- interface FileSearch {
821
- /**
822
- * The
823
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
824
- * attached to this thread. There can be a maximum of 1 vector store attached to
825
- * the thread.
826
- */
827
- vector_store_ids?: Array<string>;
828
- /**
829
- * A helper to create a
830
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
831
- * with file_ids and attach it to this thread. There can be a maximum of 1 vector
832
- * store attached to the thread.
833
- */
834
- vector_stores?: Array<FileSearch.VectorStore>;
835
- }
836
- namespace FileSearch {
837
- interface VectorStore {
838
- /**
839
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to
840
- * add to the vector store. There can be a maximum of 10000 files in a vector
841
- * store.
842
- */
843
- file_ids?: Array<string>;
844
- /**
845
- * Set of 16 key-value pairs that can be attached to a vector store. This can be
846
- * useful for storing additional information about the vector store in a structured
847
- * format. Keys can be a maximum of 64 characters long and values can be a maxium
848
- * of 512 characters long.
849
- */
850
- metadata?: unknown;
851
- }
852
- }
853
- }
854
- }
855
- /**
856
- * A set of resources that are used by the assistant's tools. The resources are
857
- * specific to the type of tool. For example, the `code_interpreter` tool requires
858
- * a list of file IDs, while the `file_search` tool requires a list of vector store
859
- * IDs.
860
- */
861
- interface ToolResources {
862
- code_interpreter?: ToolResources.CodeInterpreter;
863
- file_search?: ToolResources.FileSearch;
864
- }
865
- namespace ToolResources {
866
- interface CodeInterpreter {
867
- /**
868
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
869
- * available to the `code_interpreter` tool. There can be a maximum of 20 files
870
- * associated with the tool.
871
- */
872
- file_ids?: Array<string>;
873
- }
874
- interface FileSearch {
875
- /**
876
- * The ID of the
877
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
878
- * attached to this assistant. There can be a maximum of 1 vector store attached to
879
- * the assistant.
880
- */
881
- vector_store_ids?: Array<string>;
882
- }
883
- }
884
- /**
885
- * Controls for how a thread will be truncated prior to the run. Use this to
886
- * control the intial context window of the run.
887
- */
888
- interface TruncationStrategy {
889
- /**
890
- * The truncation strategy to use for the thread. The default is `auto`. If set to
891
- * `last_messages`, the thread will be truncated to the n most recent messages in
892
- * the thread. When set to `auto`, messages in the middle of the thread will be
893
- * dropped to fit the context length of the model, `max_prompt_tokens`.
894
- */
895
- type: 'auto' | 'last_messages';
896
- /**
897
- * The number of most recent messages from the thread when constructing the context
898
- * for the run.
899
- */
900
- last_messages?: number | null;
901
- }
902
- }
903
- export interface ThreadCreateAndRunStreamParams {
904
- /**
905
- * The ID of the
906
- * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to
907
- * execute this run.
908
- */
909
- assistant_id: string;
910
- /**
911
- * Override the default system message of the assistant. This is useful for
912
- * modifying the behavior on a per-run basis.
913
- */
914
- instructions?: string | null;
915
- /**
916
- * The maximum number of completion tokens that may be used over the course of the
917
- * run. The run will make a best effort to use only the number of completion tokens
918
- * specified, across multiple turns of the run. If the run exceeds the number of
919
- * completion tokens specified, the run will end with status `incomplete`. See
920
- * `incomplete_details` for more info.
921
- */
922
- max_completion_tokens?: number | null;
923
- /**
924
- * The maximum number of prompt tokens that may be used over the course of the run.
925
- * The run will make a best effort to use only the number of prompt tokens
926
- * specified, across multiple turns of the run. If the run exceeds the number of
927
- * prompt tokens specified, the run will end with status `incomplete`. See
928
- * `incomplete_details` for more info.
929
- */
930
- max_prompt_tokens?: number | null;
931
- /**
932
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
933
- * for storing additional information about the object in a structured format. Keys
934
- * can be a maximum of 64 characters long and values can be a maxium of 512
935
- * characters long.
936
- */
937
- metadata?: unknown | null;
938
- /**
939
- * The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to
940
- * be used to execute this run. If a value is provided here, it will override the
941
- * model associated with the assistant. If not, the model associated with the
942
- * assistant will be used.
943
- */
944
- model?: (string & {}) | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | null;
945
- /**
946
- * Specifies the format that the model must output. Compatible with
947
- * [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
948
- * [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
949
- * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
950
- *
951
- * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
952
- * message the model generates is valid JSON.
953
- *
954
- * **Important:** when using JSON mode, you **must** also instruct the model to
955
- * produce JSON yourself via a system or user message. Without this, the model may
956
- * generate an unending stream of whitespace until the generation reaches the token
957
- * limit, resulting in a long-running and seemingly "stuck" request. Also note that
958
- * the message content may be partially cut off if `finish_reason="length"`, which
959
- * indicates the generation exceeded `max_tokens` or the conversation exceeded the
960
- * max context length.
961
- */
962
- response_format?: AssistantResponseFormatOption | null;
963
- /**
964
- * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
965
- * make the output more random, while lower values like 0.2 will make it more
966
- * focused and deterministic.
967
- */
968
- temperature?: number | null;
969
- /**
970
- * If no thread is provided, an empty thread will be created.
971
- */
972
- thread?: ThreadCreateAndRunStreamParams.Thread;
973
- /**
974
- * Controls which (if any) tool is called by the model. `none` means the model will
975
- * not call any tools and instead generates a message. `auto` is the default value
976
- * and means the model can pick between generating a message or calling one or more
977
- * tools. `required` means the model must call one or more tools before responding
978
- * to the user. Specifying a particular tool like `{"type": "file_search"}` or
979
- * `{"type": "function", "function": {"name": "my_function"}}` forces the model to
980
- * call that tool.
981
- */
982
- tool_choice?: AssistantToolChoiceOption | null;
983
- /**
984
- * A set of resources that are used by the assistant's tools. The resources are
985
- * specific to the type of tool. For example, the `code_interpreter` tool requires
986
- * a list of file IDs, while the `file_search` tool requires a list of vector store
987
- * IDs.
988
- */
989
- tool_resources?: ThreadCreateAndRunStreamParams.ToolResources | null;
990
- /**
991
- * Override the tools the assistant can use for this run. This is useful for
992
- * modifying the behavior on a per-run basis.
993
- */
994
- tools?: Array<AssistantsAPI.CodeInterpreterTool | AssistantsAPI.FileSearchTool | AssistantsAPI.FunctionTool> | null;
995
- /**
996
- * An alternative to sampling with temperature, called nucleus sampling, where the
997
- * model considers the results of the tokens with top_p probability mass. So 0.1
998
- * means only the tokens comprising the top 10% probability mass are considered.
999
- *
1000
- * We generally recommend altering this or temperature but not both.
1001
- */
1002
- top_p?: number | null;
1003
- /**
1004
- * Controls for how a thread will be truncated prior to the run. Use this to
1005
- * control the intial context window of the run.
1006
- */
1007
- truncation_strategy?: ThreadCreateAndRunStreamParams.TruncationStrategy | null;
1008
- }
1009
- export declare namespace ThreadCreateAndRunStreamParams {
1010
- /**
1011
- * If no thread is provided, an empty thread will be created.
1012
- */
1013
- interface Thread {
1014
- /**
1015
- * A list of [messages](https://platform.openai.com/docs/api-reference/messages) to
1016
- * start the thread with.
1017
- */
1018
- messages?: Array<Thread.Message>;
1019
- /**
1020
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
1021
- * for storing additional information about the object in a structured format. Keys
1022
- * can be a maximum of 64 characters long and values can be a maxium of 512
1023
- * characters long.
1024
- */
1025
- metadata?: unknown | null;
1026
- /**
1027
- * A set of resources that are made available to the assistant's tools in this
1028
- * thread. The resources are specific to the type of tool. For example, the
1029
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
1030
- * tool requires a list of vector store IDs.
1031
- */
1032
- tool_resources?: Thread.ToolResources | null;
1033
- }
1034
- namespace Thread {
1035
- interface Message {
1036
- /**
1037
- * The text contents of the message.
1038
- */
1039
- content: string | Array<MessagesAPI.MessageContentPartParam>;
1040
- /**
1041
- * The role of the entity that is creating the message. Allowed values include:
1042
- *
1043
- * - `user`: Indicates the message is sent by an actual user and should be used in
1044
- * most cases to represent user-generated messages.
1045
- * - `assistant`: Indicates the message is generated by the assistant. Use this
1046
- * value to insert messages from the assistant into the conversation.
1047
- */
1048
- role: 'user' | 'assistant';
1049
- /**
1050
- * A list of files attached to the message, and the tools they should be added to.
1051
- */
1052
- attachments?: Array<Message.Attachment> | null;
1053
- /**
1054
- * Set of 16 key-value pairs that can be attached to an object. This can be useful
1055
- * for storing additional information about the object in a structured format. Keys
1056
- * can be a maximum of 64 characters long and values can be a maxium of 512
1057
- * characters long.
1058
- */
1059
- metadata?: unknown | null;
1060
- }
1061
- namespace Message {
1062
- interface Attachment {
1063
- /**
1064
- * The ID of the file to attach to the message.
1065
- */
1066
- file_id?: string;
1067
- /**
1068
- * The tools to add this file to.
1069
- */
1070
- tools?: Array<AssistantsAPI.CodeInterpreterTool | AssistantsAPI.FileSearchTool>;
1071
- }
1072
- }
1073
- /**
1074
- * A set of resources that are made available to the assistant's tools in this
1075
- * thread. The resources are specific to the type of tool. For example, the
1076
- * `code_interpreter` tool requires a list of file IDs, while the `file_search`
1077
- * tool requires a list of vector store IDs.
1078
- */
1079
- interface ToolResources {
1080
- code_interpreter?: ToolResources.CodeInterpreter;
1081
- file_search?: ToolResources.FileSearch;
1082
- }
1083
- namespace ToolResources {
1084
- interface CodeInterpreter {
1085
- /**
1086
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
1087
- * available to the `code_interpreter` tool. There can be a maximum of 20 files
1088
- * associated with the tool.
1089
- */
1090
- file_ids?: Array<string>;
1091
- }
1092
- interface FileSearch {
1093
- /**
1094
- * The
1095
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
1096
- * attached to this thread. There can be a maximum of 1 vector store attached to
1097
- * the thread.
1098
- */
1099
- vector_store_ids?: Array<string>;
1100
- /**
1101
- * A helper to create a
1102
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
1103
- * with file_ids and attach it to this thread. There can be a maximum of 1 vector
1104
- * store attached to the thread.
1105
- */
1106
- vector_stores?: Array<FileSearch.VectorStore>;
1107
- }
1108
- namespace FileSearch {
1109
- interface VectorStore {
1110
- /**
1111
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to
1112
- * add to the vector store. There can be a maximum of 10000 files in a vector
1113
- * store.
1114
- */
1115
- file_ids?: Array<string>;
1116
- /**
1117
- * Set of 16 key-value pairs that can be attached to a vector store. This can be
1118
- * useful for storing additional information about the vector store in a structured
1119
- * format. Keys can be a maximum of 64 characters long and values can be a maxium
1120
- * of 512 characters long.
1121
- */
1122
- metadata?: unknown;
1123
- }
1124
- }
1125
- }
1126
- }
1127
- /**
1128
- * A set of resources that are used by the assistant's tools. The resources are
1129
- * specific to the type of tool. For example, the `code_interpreter` tool requires
1130
- * a list of file IDs, while the `file_search` tool requires a list of vector store
1131
- * IDs.
1132
- */
1133
- interface ToolResources {
1134
- code_interpreter?: ToolResources.CodeInterpreter;
1135
- file_search?: ToolResources.FileSearch;
1136
- }
1137
- namespace ToolResources {
1138
- interface CodeInterpreter {
1139
- /**
1140
- * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
1141
- * available to the `code_interpreter` tool. There can be a maximum of 20 files
1142
- * associated with the tool.
1143
- */
1144
- file_ids?: Array<string>;
1145
- }
1146
- interface FileSearch {
1147
- /**
1148
- * The ID of the
1149
- * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
1150
- * attached to this assistant. There can be a maximum of 1 vector store attached to
1151
- * the assistant.
1152
- */
1153
- vector_store_ids?: Array<string>;
1154
- }
1155
- }
1156
- /**
1157
- * Controls for how a thread will be truncated prior to the run. Use this to
1158
- * control the intial context window of the run.
1159
- */
1160
- interface TruncationStrategy {
1161
- /**
1162
- * The truncation strategy to use for the thread. The default is `auto`. If set to
1163
- * `last_messages`, the thread will be truncated to the n most recent messages in
1164
- * the thread. When set to `auto`, messages in the middle of the thread will be
1165
- * dropped to fit the context length of the model, `max_prompt_tokens`.
1166
- */
1167
- type: 'auto' | 'last_messages';
1168
- /**
1169
- * The number of most recent messages from the thread when constructing the context
1170
- * for the run.
1171
- */
1172
- last_messages?: number | null;
1173
- }
1174
- }
1175
- export declare namespace Threads {
1176
- export import AssistantResponseFormat = ThreadsAPI.AssistantResponseFormat;
1177
- export import AssistantResponseFormatOption = ThreadsAPI.AssistantResponseFormatOption;
1178
- export import AssistantToolChoice = ThreadsAPI.AssistantToolChoice;
1179
- export import AssistantToolChoiceFunction = ThreadsAPI.AssistantToolChoiceFunction;
1180
- export import AssistantToolChoiceOption = ThreadsAPI.AssistantToolChoiceOption;
1181
- export import Thread = ThreadsAPI.Thread;
1182
- export import ThreadDeleted = ThreadsAPI.ThreadDeleted;
1183
- export import ThreadCreateParams = ThreadsAPI.ThreadCreateParams;
1184
- export import ThreadUpdateParams = ThreadsAPI.ThreadUpdateParams;
1185
- export import ThreadCreateAndRunParams = ThreadsAPI.ThreadCreateAndRunParams;
1186
- export import ThreadCreateAndRunParamsNonStreaming = ThreadsAPI.ThreadCreateAndRunParamsNonStreaming;
1187
- export import ThreadCreateAndRunParamsStreaming = ThreadsAPI.ThreadCreateAndRunParamsStreaming;
1188
- export import ThreadCreateAndRunPollParams = ThreadsAPI.ThreadCreateAndRunPollParams;
1189
- export import ThreadCreateAndRunStreamParams = ThreadsAPI.ThreadCreateAndRunStreamParams;
1190
- export import Runs = RunsAPI.Runs;
1191
- export import RequiredActionFunctionToolCall = RunsAPI.RequiredActionFunctionToolCall;
1192
- export import Run = RunsAPI.Run;
1193
- export import RunStatus = RunsAPI.RunStatus;
1194
- export import RunsPage = RunsAPI.RunsPage;
1195
- export import RunCreateParams = RunsAPI.RunCreateParams;
1196
- export import RunCreateParamsNonStreaming = RunsAPI.RunCreateParamsNonStreaming;
1197
- export import RunCreateParamsStreaming = RunsAPI.RunCreateParamsStreaming;
1198
- export import RunUpdateParams = RunsAPI.RunUpdateParams;
1199
- export import RunListParams = RunsAPI.RunListParams;
1200
- export import RunCreateAndPollParams = RunsAPI.RunCreateAndPollParams;
1201
- export import RunCreateAndStreamParams = RunsAPI.RunCreateAndStreamParams;
1202
- export import RunStreamParams = RunsAPI.RunStreamParams;
1203
- export import RunSubmitToolOutputsParams = RunsAPI.RunSubmitToolOutputsParams;
1204
- export import RunSubmitToolOutputsParamsNonStreaming = RunsAPI.RunSubmitToolOutputsParamsNonStreaming;
1205
- export import RunSubmitToolOutputsParamsStreaming = RunsAPI.RunSubmitToolOutputsParamsStreaming;
1206
- export import RunSubmitToolOutputsAndPollParams = RunsAPI.RunSubmitToolOutputsAndPollParams;
1207
- export import RunSubmitToolOutputsStreamParams = RunsAPI.RunSubmitToolOutputsStreamParams;
1208
- export import Messages = MessagesAPI.Messages;
1209
- export import Annotation = MessagesAPI.Annotation;
1210
- export import AnnotationDelta = MessagesAPI.AnnotationDelta;
1211
- export import FileCitationAnnotation = MessagesAPI.FileCitationAnnotation;
1212
- export import FileCitationDeltaAnnotation = MessagesAPI.FileCitationDeltaAnnotation;
1213
- export import FilePathAnnotation = MessagesAPI.FilePathAnnotation;
1214
- export import FilePathDeltaAnnotation = MessagesAPI.FilePathDeltaAnnotation;
1215
- export import ImageFile = MessagesAPI.ImageFile;
1216
- export import ImageFileContentBlock = MessagesAPI.ImageFileContentBlock;
1217
- export import ImageFileDelta = MessagesAPI.ImageFileDelta;
1218
- export import ImageFileDeltaBlock = MessagesAPI.ImageFileDeltaBlock;
1219
- export import ImageURL = MessagesAPI.ImageURL;
1220
- export import ImageURLContentBlock = MessagesAPI.ImageURLContentBlock;
1221
- export import ImageURLDelta = MessagesAPI.ImageURLDelta;
1222
- export import ImageURLDeltaBlock = MessagesAPI.ImageURLDeltaBlock;
1223
- export import Message = MessagesAPI.Message;
1224
- export import MessageContent = MessagesAPI.MessageContent;
1225
- export import MessageContentDelta = MessagesAPI.MessageContentDelta;
1226
- export import MessageContentPartParam = MessagesAPI.MessageContentPartParam;
1227
- export import MessageDeleted = MessagesAPI.MessageDeleted;
1228
- export import MessageDelta = MessagesAPI.MessageDelta;
1229
- export import MessageDeltaEvent = MessagesAPI.MessageDeltaEvent;
1230
- export import Text = MessagesAPI.Text;
1231
- export import TextContentBlock = MessagesAPI.TextContentBlock;
1232
- export import TextContentBlockParam = MessagesAPI.TextContentBlockParam;
1233
- export import TextDelta = MessagesAPI.TextDelta;
1234
- export import TextDeltaBlock = MessagesAPI.TextDeltaBlock;
1235
- export import MessagesPage = MessagesAPI.MessagesPage;
1236
- export import MessageCreateParams = MessagesAPI.MessageCreateParams;
1237
- export import MessageUpdateParams = MessagesAPI.MessageUpdateParams;
1238
- export import MessageListParams = MessagesAPI.MessageListParams;
1239
- }
1240
- //# sourceMappingURL=threads.d.ts.map