@xyd-js/opensdk-python 0.0.0-build-f0c10f6-20260703195526

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 (539) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/LICENSE +21 -0
  3. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__create/input.json +325 -0
  4. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__create/output.py +26 -0
  5. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__delete/input.json +201 -0
  6. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__delete/output.py +28 -0
  7. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__list/input.json +400 -0
  8. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__list/output.py +29 -0
  9. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__retrieve/input.json +304 -0
  10. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__retrieve/output.py +28 -0
  11. package/__fixtures__/-2.complex.openai/admin__organization__audit_logs__list/input.json +2602 -0
  12. package/__fixtures__/-2.complex.openai/admin__organization__audit_logs__list/output.py +29 -0
  13. package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate__create/input.json +308 -0
  14. package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate__create/output.py +32 -0
  15. package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/input.json +308 -0
  16. package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/output.py +28 -0
  17. package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate__create/input.json +308 -0
  18. package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate__create/output.py +32 -0
  19. package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/input.json +196 -0
  20. package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/output.py +28 -0
  21. package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/input.json +356 -0
  22. package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/output.py +29 -0
  23. package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/input.json +300 -0
  24. package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/output.py +30 -0
  25. package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/input.json +310 -0
  26. package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/output.py +30 -0
  27. package/__fixtures__/-2.complex.openai/admin__organization__costs__list/input.json +1062 -0
  28. package/__fixtures__/-2.complex.openai/admin__organization__costs__list/output.py +29 -0
  29. package/__fixtures__/-2.complex.openai/admin__organization__groups__create/input.json +239 -0
  30. package/__fixtures__/-2.complex.openai/admin__organization__groups__create/output.py +26 -0
  31. package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/input.json +206 -0
  32. package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/output.py +28 -0
  33. package/__fixtures__/-2.complex.openai/admin__organization__groups__list/input.json +316 -0
  34. package/__fixtures__/-2.complex.openai/admin__organization__groups__list/output.py +29 -0
  35. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/input.json +364 -0
  36. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/output.py +34 -0
  37. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/input.json +210 -0
  38. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/output.py +36 -0
  39. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/input.json +398 -0
  40. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/output.py +37 -0
  41. package/__fixtures__/-2.complex.openai/admin__organization__groups__update/input.json +241 -0
  42. package/__fixtures__/-2.complex.openai/admin__organization__groups__update/output.py +28 -0
  43. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/input.json +237 -0
  44. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/output.py +34 -0
  45. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/input.json +211 -0
  46. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/output.py +36 -0
  47. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/input.json +314 -0
  48. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/output.py +37 -0
  49. package/__fixtures__/-2.complex.openai/admin__organization__invites__create/input.json +386 -0
  50. package/__fixtures__/-2.complex.openai/admin__organization__invites__create/output.py +28 -0
  51. package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/input.json +203 -0
  52. package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/output.py +28 -0
  53. package/__fixtures__/-2.complex.openai/admin__organization__invites__list/input.json +414 -0
  54. package/__fixtures__/-2.complex.openai/admin__organization__invites__list/output.py +29 -0
  55. package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/input.json +337 -0
  56. package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/output.py +28 -0
  57. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__delete/input.json +279 -0
  58. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__delete/output.py +36 -0
  59. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__list/input.json +475 -0
  60. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__list/output.py +37 -0
  61. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__retrieve/input.json +400 -0
  62. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__retrieve/output.py +36 -0
  63. package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/input.json +247 -0
  64. package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/output.py +28 -0
  65. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__activate__create/input.json +324 -0
  66. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__activate__create/output.py +40 -0
  67. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__deactivate__create/input.json +324 -0
  68. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__deactivate__create/output.py +40 -0
  69. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/input.json +372 -0
  70. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/output.py +37 -0
  71. package/__fixtures__/-2.complex.openai/admin__organization__projects__create/input.json +281 -0
  72. package/__fixtures__/-2.complex.openai/admin__organization__projects__create/output.py +28 -0
  73. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/input.json +274 -0
  74. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/output.py +34 -0
  75. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/input.json +211 -0
  76. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/output.py +36 -0
  77. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/input.json +342 -0
  78. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/output.py +37 -0
  79. package/__fixtures__/-2.complex.openai/admin__organization__projects__list/input.json +330 -0
  80. package/__fixtures__/-2.complex.openai/admin__organization__projects__list/output.py +29 -0
  81. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__list_rate_limits/input.json +358 -0
  82. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__list_rate_limits/output.py +37 -0
  83. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__update_rate_limit/input.json +407 -0
  84. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__update_rate_limit/output.py +38 -0
  85. package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/input.json +247 -0
  86. package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/output.py +28 -0
  87. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__create/input.json +372 -0
  88. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__create/output.py +34 -0
  89. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__delete/input.json +216 -0
  90. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__delete/output.py +36 -0
  91. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__list/input.json +391 -0
  92. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__list/output.py +37 -0
  93. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__retrieve/input.json +253 -0
  94. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__retrieve/output.py +36 -0
  95. package/__fixtures__/-2.complex.openai/admin__organization__projects__update/input.json +356 -0
  96. package/__fixtures__/-2.complex.openai/admin__organization__projects__update/output.py +30 -0
  97. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/input.json +349 -0
  98. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/output.py +36 -0
  99. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/input.json +279 -0
  100. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/output.py +36 -0
  101. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/input.json +387 -0
  102. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/output.py +37 -0
  103. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/input.json +250 -0
  104. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/output.py +36 -0
  105. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/input.json +339 -0
  106. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/output.py +38 -0
  107. package/__fixtures__/-2.complex.openai/admin__organization__roles__create/input.json +283 -0
  108. package/__fixtures__/-2.complex.openai/admin__organization__roles__create/output.py +28 -0
  109. package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/input.json +206 -0
  110. package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/output.py +28 -0
  111. package/__fixtures__/-2.complex.openai/admin__organization__roles__list/input.json +338 -0
  112. package/__fixtures__/-2.complex.openai/admin__organization__roles__list/output.py +29 -0
  113. package/__fixtures__/-2.complex.openai/admin__organization__roles__update/input.json +296 -0
  114. package/__fixtures__/-2.complex.openai/admin__organization__roles__update/output.py +30 -0
  115. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_speeches__list/input.json +1108 -0
  116. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_speeches__list/output.py +35 -0
  117. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_transcriptions__list/input.json +1108 -0
  118. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_transcriptions__list/output.py +35 -0
  119. package/__fixtures__/-2.complex.openai/admin__organization__usage__code_interpreter_sessions__list/input.json +1054 -0
  120. package/__fixtures__/-2.complex.openai/admin__organization__usage__code_interpreter_sessions__list/output.py +35 -0
  121. package/__fixtures__/-2.complex.openai/admin__organization__usage__completions__list/input.json +1123 -0
  122. package/__fixtures__/-2.complex.openai/admin__organization__usage__completions__list/output.py +35 -0
  123. package/__fixtures__/-2.complex.openai/admin__organization__usage__embeddings__list/input.json +1108 -0
  124. package/__fixtures__/-2.complex.openai/admin__organization__usage__embeddings__list/output.py +35 -0
  125. package/__fixtures__/-2.complex.openai/admin__organization__usage__images__list/input.json +1176 -0
  126. package/__fixtures__/-2.complex.openai/admin__organization__usage__images__list/output.py +35 -0
  127. package/__fixtures__/-2.complex.openai/admin__organization__usage__moderations__list/input.json +1108 -0
  128. package/__fixtures__/-2.complex.openai/admin__organization__usage__moderations__list/output.py +35 -0
  129. package/__fixtures__/-2.complex.openai/admin__organization__usage__vector_stores__list/input.json +1054 -0
  130. package/__fixtures__/-2.complex.openai/admin__organization__usage__vector_stores__list/output.py +35 -0
  131. package/__fixtures__/-2.complex.openai/admin__organization__users__delete/input.json +202 -0
  132. package/__fixtures__/-2.complex.openai/admin__organization__users__delete/output.py +28 -0
  133. package/__fixtures__/-2.complex.openai/admin__organization__users__list/input.json +557 -0
  134. package/__fixtures__/-2.complex.openai/admin__organization__users__list/output.py +29 -0
  135. package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/input.json +472 -0
  136. package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/output.py +28 -0
  137. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/input.json +611 -0
  138. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/output.py +34 -0
  139. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/input.json +210 -0
  140. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/output.py +36 -0
  141. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/input.json +398 -0
  142. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/output.py +37 -0
  143. package/__fixtures__/-2.complex.openai/admin__organization__users__update/input.json +528 -0
  144. package/__fixtures__/-2.complex.openai/admin__organization__users__update/output.py +30 -0
  145. package/__fixtures__/-2.complex.openai/audio__speech__create/input.json +388 -0
  146. package/__fixtures__/-2.complex.openai/audio__speech__create/output.py +22 -0
  147. package/__fixtures__/-2.complex.openai/audio__transcriptions__create/input.json +999 -0
  148. package/__fixtures__/-2.complex.openai/audio__transcriptions__create/output.py +22 -0
  149. package/__fixtures__/-2.complex.openai/audio__translations__create/input.json +430 -0
  150. package/__fixtures__/-2.complex.openai/audio__translations__create/output.py +22 -0
  151. package/__fixtures__/-2.complex.openai/audio__voice_consents__create/input.json +244 -0
  152. package/__fixtures__/-2.complex.openai/audio__voice_consents__create/output.py +22 -0
  153. package/__fixtures__/-2.complex.openai/audio__voice_consents__delete/input.json +190 -0
  154. package/__fixtures__/-2.complex.openai/audio__voice_consents__delete/output.py +22 -0
  155. package/__fixtures__/-2.complex.openai/audio__voice_consents__list/input.json +285 -0
  156. package/__fixtures__/-2.complex.openai/audio__voice_consents__list/output.py +23 -0
  157. package/__fixtures__/-2.complex.openai/audio__voice_consents__retrieve/input.json +212 -0
  158. package/__fixtures__/-2.complex.openai/audio__voice_consents__retrieve/output.py +22 -0
  159. package/__fixtures__/-2.complex.openai/audio__voice_consents__update/input.json +236 -0
  160. package/__fixtures__/-2.complex.openai/audio__voice_consents__update/output.py +22 -0
  161. package/__fixtures__/-2.complex.openai/audio__voices__create/input.json +235 -0
  162. package/__fixtures__/-2.complex.openai/audio__voices__create/output.py +22 -0
  163. package/__fixtures__/-2.complex.openai/batches__cancel/input.json +594 -0
  164. package/__fixtures__/-2.complex.openai/batches__cancel/output.py +16 -0
  165. package/__fixtures__/-2.complex.openai/batches__create/input.json +701 -0
  166. package/__fixtures__/-2.complex.openai/batches__create/output.py +16 -0
  167. package/__fixtures__/-2.complex.openai/batches__list/input.json +665 -0
  168. package/__fixtures__/-2.complex.openai/batches__list/output.py +17 -0
  169. package/__fixtures__/-2.complex.openai/batches__retrieve/input.json +594 -0
  170. package/__fixtures__/-2.complex.openai/batches__retrieve/output.py +16 -0
  171. package/__fixtures__/-2.complex.openai/beta__assistants__create/input.json +1029 -0
  172. package/__fixtures__/-2.complex.openai/beta__assistants__create/output.py +22 -0
  173. package/__fixtures__/-2.complex.openai/beta__assistants__delete/input.json +190 -0
  174. package/__fixtures__/-2.complex.openai/beta__assistants__delete/output.py +22 -0
  175. package/__fixtures__/-2.complex.openai/beta__assistants__list/input.json +796 -0
  176. package/__fixtures__/-2.complex.openai/beta__assistants__list/output.py +23 -0
  177. package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/input.json +694 -0
  178. package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/output.py +22 -0
  179. package/__fixtures__/-2.complex.openai/beta__assistants__update/input.json +1045 -0
  180. package/__fixtures__/-2.complex.openai/beta__assistants__update/output.py +24 -0
  181. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__cancel/input.json +482 -0
  182. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__cancel/output.py +28 -0
  183. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__create/input.json +738 -0
  184. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__create/output.py +28 -0
  185. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__delete/input.json +200 -0
  186. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__delete/output.py +28 -0
  187. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__items__list/input.json +1218 -0
  188. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__items__list/output.py +37 -0
  189. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__list/input.json +444 -0
  190. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__list/output.py +29 -0
  191. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__retrieve/input.json +328 -0
  192. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__retrieve/output.py +28 -0
  193. package/__fixtures__/-2.complex.openai/beta__threads__create/input.json +665 -0
  194. package/__fixtures__/-2.complex.openai/beta__threads__create/output.py +22 -0
  195. package/__fixtures__/-2.complex.openai/beta__threads__delete/input.json +189 -0
  196. package/__fixtures__/-2.complex.openai/beta__threads__delete/output.py +22 -0
  197. package/__fixtures__/-2.complex.openai/beta__threads__messages__create/input.json +938 -0
  198. package/__fixtures__/-2.complex.openai/beta__threads__messages__create/output.py +30 -0
  199. package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/input.json +203 -0
  200. package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/output.py +30 -0
  201. package/__fixtures__/-2.complex.openai/beta__threads__messages__list/input.json +945 -0
  202. package/__fixtures__/-2.complex.openai/beta__threads__messages__list/output.py +31 -0
  203. package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/input.json +832 -0
  204. package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/output.py +30 -0
  205. package/__fixtures__/-2.complex.openai/beta__threads__messages__update/input.json +855 -0
  206. package/__fixtures__/-2.complex.openai/beta__threads__messages__update/output.py +32 -0
  207. package/__fixtures__/-2.complex.openai/beta__threads__new_and_run/input.json +1899 -0
  208. package/__fixtures__/-2.complex.openai/beta__threads__new_and_run/output.py +22 -0
  209. package/__fixtures__/-2.complex.openai/beta__threads__retrieve/input.json +283 -0
  210. package/__fixtures__/-2.complex.openai/beta__threads__retrieve/output.py +22 -0
  211. package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/input.json +1181 -0
  212. package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/output.py +30 -0
  213. package/__fixtures__/-2.complex.openai/beta__threads__runs__create/input.json +1851 -0
  214. package/__fixtures__/-2.complex.openai/beta__threads__runs__create/output.py +30 -0
  215. package/__fixtures__/-2.complex.openai/beta__threads__runs__list/input.json +1285 -0
  216. package/__fixtures__/-2.complex.openai/beta__threads__runs__list/output.py +31 -0
  217. package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/input.json +1181 -0
  218. package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/output.py +30 -0
  219. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/input.json +1066 -0
  220. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/output.py +39 -0
  221. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/input.json +964 -0
  222. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/output.py +40 -0
  223. package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/input.json +1246 -0
  224. package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/output.py +38 -0
  225. package/__fixtures__/-2.complex.openai/beta__threads__runs__update/input.json +1204 -0
  226. package/__fixtures__/-2.complex.openai/beta__threads__runs__update/output.py +32 -0
  227. package/__fixtures__/-2.complex.openai/beta__threads__update/input.json +315 -0
  228. package/__fixtures__/-2.complex.openai/beta__threads__update/output.py +24 -0
  229. package/__fixtures__/-2.complex.openai/chat__completions__create/input.json +3325 -0
  230. package/__fixtures__/-2.complex.openai/chat__completions__create/output.py +22 -0
  231. package/__fixtures__/-2.complex.openai/chat__completions__delete/input.json +192 -0
  232. package/__fixtures__/-2.complex.openai/chat__completions__delete/output.py +22 -0
  233. package/__fixtures__/-2.complex.openai/chat__completions__list/input.json +1069 -0
  234. package/__fixtures__/-2.complex.openai/chat__completions__list/output.py +23 -0
  235. package/__fixtures__/-2.complex.openai/chat__completions__messages__list/input.json +770 -0
  236. package/__fixtures__/-2.complex.openai/chat__completions__messages__list/output.py +31 -0
  237. package/__fixtures__/-2.complex.openai/chat__completions__retrieve/input.json +938 -0
  238. package/__fixtures__/-2.complex.openai/chat__completions__retrieve/output.py +22 -0
  239. package/__fixtures__/-2.complex.openai/chat__completions__update/input.json +973 -0
  240. package/__fixtures__/-2.complex.openai/chat__completions__update/output.py +22 -0
  241. package/__fixtures__/-2.complex.openai/completions__create/input.json +788 -0
  242. package/__fixtures__/-2.complex.openai/completions__create/output.py +16 -0
  243. package/__fixtures__/-2.complex.openai/containers__create/input.json +671 -0
  244. package/__fixtures__/-2.complex.openai/containers__create/output.py +16 -0
  245. package/__fixtures__/-2.complex.openai/containers__delete/input.json +142 -0
  246. package/__fixtures__/-2.complex.openai/containers__delete/output.py +16 -0
  247. package/__fixtures__/-2.complex.openai/containers__files__content/input.json +154 -0
  248. package/__fixtures__/-2.complex.openai/containers__files__content/output.py +24 -0
  249. package/__fixtures__/-2.complex.openai/containers__files__create/input.json +261 -0
  250. package/__fixtures__/-2.complex.openai/containers__files__create/output.py +24 -0
  251. package/__fixtures__/-2.complex.openai/containers__files__delete/input.json +154 -0
  252. package/__fixtures__/-2.complex.openai/containers__files__delete/output.py +24 -0
  253. package/__fixtures__/-2.complex.openai/containers__files__list/input.json +337 -0
  254. package/__fixtures__/-2.complex.openai/containers__files__list/output.py +25 -0
  255. package/__fixtures__/-2.complex.openai/containers__files__retrieve/input.json +235 -0
  256. package/__fixtures__/-2.complex.openai/containers__files__retrieve/output.py +24 -0
  257. package/__fixtures__/-2.complex.openai/containers__list/input.json +438 -0
  258. package/__fixtures__/-2.complex.openai/containers__list/output.py +17 -0
  259. package/__fixtures__/-2.complex.openai/containers__retrieve/input.json +329 -0
  260. package/__fixtures__/-2.complex.openai/containers__retrieve/output.py +16 -0
  261. package/__fixtures__/-2.complex.openai/conversations__create/input.json +6737 -0
  262. package/__fixtures__/-2.complex.openai/conversations__create/output.py +16 -0
  263. package/__fixtures__/-2.complex.openai/conversations__delete/input.json +186 -0
  264. package/__fixtures__/-2.complex.openai/conversations__delete/output.py +16 -0
  265. package/__fixtures__/-2.complex.openai/conversations__items__create/input.json +8352 -0
  266. package/__fixtures__/-2.complex.openai/conversations__items__create/output.py +25 -0
  267. package/__fixtures__/-2.complex.openai/conversations__items__delete/input.json +213 -0
  268. package/__fixtures__/-2.complex.openai/conversations__items__delete/output.py +24 -0
  269. package/__fixtures__/-2.complex.openai/conversations__items__list/input.json +6695 -0
  270. package/__fixtures__/-2.complex.openai/conversations__items__list/output.py +25 -0
  271. package/__fixtures__/-2.complex.openai/conversations__items__retrieve/input.json +6597 -0
  272. package/__fixtures__/-2.complex.openai/conversations__items__retrieve/output.py +26 -0
  273. package/__fixtures__/-2.complex.openai/conversations__retrieve/input.json +198 -0
  274. package/__fixtures__/-2.complex.openai/conversations__retrieve/output.py +16 -0
  275. package/__fixtures__/-2.complex.openai/conversations__update/input.json +233 -0
  276. package/__fixtures__/-2.complex.openai/conversations__update/output.py +16 -0
  277. package/__fixtures__/-2.complex.openai/embeddings__create/input.json +395 -0
  278. package/__fixtures__/-2.complex.openai/embeddings__create/output.py +16 -0
  279. package/__fixtures__/-2.complex.openai/evals__create/input.json +1424 -0
  280. package/__fixtures__/-2.complex.openai/evals__create/output.py +16 -0
  281. package/__fixtures__/-2.complex.openai/evals__delete/input.json +232 -0
  282. package/__fixtures__/-2.complex.openai/evals__delete/output.py +16 -0
  283. package/__fixtures__/-2.complex.openai/evals__list/input.json +1251 -0
  284. package/__fixtures__/-2.complex.openai/evals__list/output.py +17 -0
  285. package/__fixtures__/-2.complex.openai/evals__retrieve/input.json +1127 -0
  286. package/__fixtures__/-2.complex.openai/evals__retrieve/output.py +16 -0
  287. package/__fixtures__/-2.complex.openai/evals__runs__cancel/input.json +4445 -0
  288. package/__fixtures__/-2.complex.openai/evals__runs__cancel/output.py +24 -0
  289. package/__fixtures__/-2.complex.openai/evals__runs__create/input.json +4526 -0
  290. package/__fixtures__/-2.complex.openai/evals__runs__create/output.py +24 -0
  291. package/__fixtures__/-2.complex.openai/evals__runs__delete/input.json +246 -0
  292. package/__fixtures__/-2.complex.openai/evals__runs__delete/output.py +24 -0
  293. package/__fixtures__/-2.complex.openai/evals__runs__list/input.json +4579 -0
  294. package/__fixtures__/-2.complex.openai/evals__runs__list/output.py +25 -0
  295. package/__fixtures__/-2.complex.openai/evals__runs__output_items__list/input.json +685 -0
  296. package/__fixtures__/-2.complex.openai/evals__runs__output_items__list/output.py +33 -0
  297. package/__fixtures__/-2.complex.openai/evals__runs__output_items__retrieve/input.json +560 -0
  298. package/__fixtures__/-2.complex.openai/evals__runs__output_items__retrieve/output.py +32 -0
  299. package/__fixtures__/-2.complex.openai/evals__runs__retrieve/input.json +4445 -0
  300. package/__fixtures__/-2.complex.openai/evals__runs__retrieve/output.py +24 -0
  301. package/__fixtures__/-2.complex.openai/evals__update/input.json +1160 -0
  302. package/__fixtures__/-2.complex.openai/evals__update/output.py +18 -0
  303. package/__fixtures__/-2.complex.openai/files__content/input.json +151 -0
  304. package/__fixtures__/-2.complex.openai/files__content/output.py +16 -0
  305. package/__fixtures__/-2.complex.openai/files__create/input.json +379 -0
  306. package/__fixtures__/-2.complex.openai/files__create/output.py +16 -0
  307. package/__fixtures__/-2.complex.openai/files__delete/input.json +184 -0
  308. package/__fixtures__/-2.complex.openai/files__delete/output.py +16 -0
  309. package/__fixtures__/-2.complex.openai/files__list/input.json +397 -0
  310. package/__fixtures__/-2.complex.openai/files__list/output.py +17 -0
  311. package/__fixtures__/-2.complex.openai/files__retrieve/input.json +295 -0
  312. package/__fixtures__/-2.complex.openai/files__retrieve/output.py +16 -0
  313. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__run__create/input.json +1225 -0
  314. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__run__create/output.py +34 -0
  315. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__validate__create/input.json +991 -0
  316. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__validate__create/output.py +32 -0
  317. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__create/input.json +297 -0
  318. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__create/output.py +29 -0
  319. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__delete/input.json +208 -0
  320. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__delete/output.py +30 -0
  321. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__list/input.json +325 -0
  322. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__list/output.py +31 -0
  323. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__cancel/input.json +1645 -0
  324. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__cancel/output.py +22 -0
  325. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__checkpoints__list/input.json +383 -0
  326. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__checkpoints__list/output.py +31 -0
  327. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__create/input.json +1887 -0
  328. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__create/output.py +22 -0
  329. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list/input.json +1714 -0
  330. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list/output.py +23 -0
  331. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list_events/input.json +330 -0
  332. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list_events/output.py +25 -0
  333. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__pause/input.json +1645 -0
  334. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__pause/output.py +22 -0
  335. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__resume/input.json +1645 -0
  336. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__resume/output.py +22 -0
  337. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__retrieve/input.json +1645 -0
  338. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__retrieve/output.py +22 -0
  339. package/__fixtures__/-2.complex.openai/images__edits__create/input.json +744 -0
  340. package/__fixtures__/-2.complex.openai/images__edits__create/output.py +22 -0
  341. package/__fixtures__/-2.complex.openai/images__generations__create/input.json +789 -0
  342. package/__fixtures__/-2.complex.openai/images__generations__create/output.py +22 -0
  343. package/__fixtures__/-2.complex.openai/images__variations__create/input.json +550 -0
  344. package/__fixtures__/-2.complex.openai/images__variations__create/output.py +22 -0
  345. package/__fixtures__/-2.complex.openai/models__delete/input.json +184 -0
  346. package/__fixtures__/-2.complex.openai/models__delete/output.py +16 -0
  347. package/__fixtures__/-2.complex.openai/models__list/input.json +221 -0
  348. package/__fixtures__/-2.complex.openai/models__list/output.py +15 -0
  349. package/__fixtures__/-2.complex.openai/models__retrieve/input.json +199 -0
  350. package/__fixtures__/-2.complex.openai/models__retrieve/output.py +16 -0
  351. package/__fixtures__/-2.complex.openai/moderations__create/input.json +831 -0
  352. package/__fixtures__/-2.complex.openai/moderations__create/output.py +16 -0
  353. package/__fixtures__/-2.complex.openai/projects__groups__roles__create/input.json +368 -0
  354. package/__fixtures__/-2.complex.openai/projects__groups__roles__create/output.py +30 -0
  355. package/__fixtures__/-2.complex.openai/projects__groups__roles__delete/input.json +214 -0
  356. package/__fixtures__/-2.complex.openai/projects__groups__roles__delete/output.py +32 -0
  357. package/__fixtures__/-2.complex.openai/projects__groups__roles__list/input.json +402 -0
  358. package/__fixtures__/-2.complex.openai/projects__groups__roles__list/output.py +33 -0
  359. package/__fixtures__/-2.complex.openai/projects__roles__create/input.json +289 -0
  360. package/__fixtures__/-2.complex.openai/projects__roles__create/output.py +24 -0
  361. package/__fixtures__/-2.complex.openai/projects__roles__delete/input.json +210 -0
  362. package/__fixtures__/-2.complex.openai/projects__roles__delete/output.py +24 -0
  363. package/__fixtures__/-2.complex.openai/projects__roles__list/input.json +344 -0
  364. package/__fixtures__/-2.complex.openai/projects__roles__list/output.py +25 -0
  365. package/__fixtures__/-2.complex.openai/projects__roles__update/input.json +300 -0
  366. package/__fixtures__/-2.complex.openai/projects__roles__update/output.py +26 -0
  367. package/__fixtures__/-2.complex.openai/projects__users__roles__create/input.json +615 -0
  368. package/__fixtures__/-2.complex.openai/projects__users__roles__create/output.py +30 -0
  369. package/__fixtures__/-2.complex.openai/projects__users__roles__delete/input.json +214 -0
  370. package/__fixtures__/-2.complex.openai/projects__users__roles__delete/output.py +32 -0
  371. package/__fixtures__/-2.complex.openai/projects__users__roles__list/input.json +402 -0
  372. package/__fixtures__/-2.complex.openai/projects__users__roles__list/output.py +33 -0
  373. package/__fixtures__/-2.complex.openai/realtime__calls__accept/input.json +1768 -0
  374. package/__fixtures__/-2.complex.openai/realtime__calls__accept/output.py +24 -0
  375. package/__fixtures__/-2.complex.openai/realtime__calls__create/input.json +1790 -0
  376. package/__fixtures__/-2.complex.openai/realtime__calls__create/output.py +22 -0
  377. package/__fixtures__/-2.complex.openai/realtime__calls__hangup/input.json +147 -0
  378. package/__fixtures__/-2.complex.openai/realtime__calls__hangup/output.py +22 -0
  379. package/__fixtures__/-2.complex.openai/realtime__calls__refer/input.json +175 -0
  380. package/__fixtures__/-2.complex.openai/realtime__calls__refer/output.py +22 -0
  381. package/__fixtures__/-2.complex.openai/realtime__calls__reject/input.json +175 -0
  382. package/__fixtures__/-2.complex.openai/realtime__calls__reject/output.py +24 -0
  383. package/__fixtures__/-2.complex.openai/realtime__client_secrets__create/input.json +2407 -0
  384. package/__fixtures__/-2.complex.openai/realtime__client_secrets__create/output.py +22 -0
  385. package/__fixtures__/-2.complex.openai/realtime__sessions__create/input.json +1400 -0
  386. package/__fixtures__/-2.complex.openai/realtime__sessions__create/output.py +22 -0
  387. package/__fixtures__/-2.complex.openai/realtime__transcription_sessions__create/input.json +562 -0
  388. package/__fixtures__/-2.complex.openai/realtime__transcription_sessions__create/output.py +22 -0
  389. package/__fixtures__/-2.complex.openai/realtime__translations__client_secrets__create/input.json +498 -0
  390. package/__fixtures__/-2.complex.openai/realtime__translations__client_secrets__create/output.py +28 -0
  391. package/__fixtures__/-2.complex.openai/responses__cancel/input.json +9526 -0
  392. package/__fixtures__/-2.complex.openai/responses__cancel/output.py +16 -0
  393. package/__fixtures__/-2.complex.openai/responses__compact__create/input.json +8721 -0
  394. package/__fixtures__/-2.complex.openai/responses__compact__create/output.py +22 -0
  395. package/__fixtures__/-2.complex.openai/responses__create/input.json +9862 -0
  396. package/__fixtures__/-2.complex.openai/responses__create/output.py +16 -0
  397. package/__fixtures__/-2.complex.openai/responses__delete/input.json +194 -0
  398. package/__fixtures__/-2.complex.openai/responses__delete/output.py +16 -0
  399. package/__fixtures__/-2.complex.openai/responses__input_items__list/input.json +6686 -0
  400. package/__fixtures__/-2.complex.openai/responses__input_items__list/output.py +25 -0
  401. package/__fixtures__/-2.complex.openai/responses__input_tokens__count/input.json +7368 -0
  402. package/__fixtures__/-2.complex.openai/responses__input_tokens__count/output.py +22 -0
  403. package/__fixtures__/-2.complex.openai/responses__retrieve/input.json +9550 -0
  404. package/__fixtures__/-2.complex.openai/responses__retrieve/output.py +18 -0
  405. package/__fixtures__/-2.complex.openai/skills__content/input.json +152 -0
  406. package/__fixtures__/-2.complex.openai/skills__content/output.py +16 -0
  407. package/__fixtures__/-2.complex.openai/skills__create/input.json +258 -0
  408. package/__fixtures__/-2.complex.openai/skills__create/output.py +14 -0
  409. package/__fixtures__/-2.complex.openai/skills__delete/input.json +186 -0
  410. package/__fixtures__/-2.complex.openai/skills__delete/output.py +16 -0
  411. package/__fixtures__/-2.complex.openai/skills__list/input.json +323 -0
  412. package/__fixtures__/-2.complex.openai/skills__list/output.py +17 -0
  413. package/__fixtures__/-2.complex.openai/skills__retrieve/input.json +226 -0
  414. package/__fixtures__/-2.complex.openai/skills__retrieve/output.py +16 -0
  415. package/__fixtures__/-2.complex.openai/skills__update/input.json +251 -0
  416. package/__fixtures__/-2.complex.openai/skills__update/output.py +16 -0
  417. package/__fixtures__/-2.complex.openai/skills__versions__content/input.json +166 -0
  418. package/__fixtures__/-2.complex.openai/skills__versions__content/output.py +24 -0
  419. package/__fixtures__/-2.complex.openai/skills__versions__create/input.json +284 -0
  420. package/__fixtures__/-2.complex.openai/skills__versions__create/output.py +24 -0
  421. package/__fixtures__/-2.complex.openai/skills__versions__delete/input.json +209 -0
  422. package/__fixtures__/-2.complex.openai/skills__versions__delete/output.py +24 -0
  423. package/__fixtures__/-2.complex.openai/skills__versions__list/input.json +341 -0
  424. package/__fixtures__/-2.complex.openai/skills__versions__list/output.py +25 -0
  425. package/__fixtures__/-2.complex.openai/skills__versions__retrieve/input.json +240 -0
  426. package/__fixtures__/-2.complex.openai/skills__versions__retrieve/output.py +24 -0
  427. package/__fixtures__/-2.complex.openai/uploads__cancel/input.json +407 -0
  428. package/__fixtures__/-2.complex.openai/uploads__cancel/output.py +16 -0
  429. package/__fixtures__/-2.complex.openai/uploads__complete/input.json +443 -0
  430. package/__fixtures__/-2.complex.openai/uploads__complete/output.py +18 -0
  431. package/__fixtures__/-2.complex.openai/uploads__create/input.json +501 -0
  432. package/__fixtures__/-2.complex.openai/uploads__create/output.py +16 -0
  433. package/__fixtures__/-2.complex.openai/uploads__parts__create/input.json +229 -0
  434. package/__fixtures__/-2.complex.openai/uploads__parts__create/output.py +24 -0
  435. package/__fixtures__/-2.complex.openai/vector_stores__create/input.json +507 -0
  436. package/__fixtures__/-2.complex.openai/vector_stores__create/output.py +16 -0
  437. package/__fixtures__/-2.complex.openai/vector_stores__delete/input.json +184 -0
  438. package/__fixtures__/-2.complex.openai/vector_stores__delete/output.py +16 -0
  439. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__cancel/input.json +300 -0
  440. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__cancel/output.py +24 -0
  441. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__create/input.json +314 -0
  442. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__create/output.py +22 -0
  443. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__list_files/input.json +571 -0
  444. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__list_files/output.py +27 -0
  445. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__retrieve/input.json +302 -0
  446. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__retrieve/output.py +24 -0
  447. package/__fixtures__/-2.complex.openai/vector_stores__files__content/input.json +249 -0
  448. package/__fixtures__/-2.complex.openai/vector_stores__files__content/output.py +25 -0
  449. package/__fixtures__/-2.complex.openai/vector_stores__files__create/input.json +527 -0
  450. package/__fixtures__/-2.complex.openai/vector_stores__files__create/output.py +24 -0
  451. package/__fixtures__/-2.complex.openai/vector_stores__files__delete/input.json +198 -0
  452. package/__fixtures__/-2.complex.openai/vector_stores__files__delete/output.py +24 -0
  453. package/__fixtures__/-2.complex.openai/vector_stores__files__list/input.json +562 -0
  454. package/__fixtures__/-2.complex.openai/vector_stores__files__list/output.py +25 -0
  455. package/__fixtures__/-2.complex.openai/vector_stores__files__retrieve/input.json +432 -0
  456. package/__fixtures__/-2.complex.openai/vector_stores__files__retrieve/output.py +24 -0
  457. package/__fixtures__/-2.complex.openai/vector_stores__files__update/input.json +455 -0
  458. package/__fixtures__/-2.complex.openai/vector_stores__files__update/output.py +24 -0
  459. package/__fixtures__/-2.complex.openai/vector_stores__list/input.json +468 -0
  460. package/__fixtures__/-2.complex.openai/vector_stores__list/output.py +17 -0
  461. package/__fixtures__/-2.complex.openai/vector_stores__retrieve/input.json +366 -0
  462. package/__fixtures__/-2.complex.openai/vector_stores__retrieve/output.py +16 -0
  463. package/__fixtures__/-2.complex.openai/vector_stores__search/input.json +637 -0
  464. package/__fixtures__/-2.complex.openai/vector_stores__search/output.py +19 -0
  465. package/__fixtures__/-2.complex.openai/vector_stores__update/input.json +409 -0
  466. package/__fixtures__/-2.complex.openai/vector_stores__update/output.py +18 -0
  467. package/__fixtures__/-2.complex.openai/videos__characters__create/input.json +216 -0
  468. package/__fixtures__/-2.complex.openai/videos__characters__create/output.py +22 -0
  469. package/__fixtures__/-2.complex.openai/videos__characters__retrieve/input.json +193 -0
  470. package/__fixtures__/-2.complex.openai/videos__characters__retrieve/output.py +22 -0
  471. package/__fixtures__/-2.complex.openai/videos__create/input.json +465 -0
  472. package/__fixtures__/-2.complex.openai/videos__create/output.py +16 -0
  473. package/__fixtures__/-2.complex.openai/videos__delete/input.json +190 -0
  474. package/__fixtures__/-2.complex.openai/videos__delete/output.py +16 -0
  475. package/__fixtures__/-2.complex.openai/videos__download_content/input.json +181 -0
  476. package/__fixtures__/-2.complex.openai/videos__download_content/output.py +18 -0
  477. package/__fixtures__/-2.complex.openai/videos__edits__create/input.json +422 -0
  478. package/__fixtures__/-2.complex.openai/videos__edits__create/output.py +20 -0
  479. package/__fixtures__/-2.complex.openai/videos__extensions__create/input.json +446 -0
  480. package/__fixtures__/-2.complex.openai/videos__extensions__create/output.py +20 -0
  481. package/__fixtures__/-2.complex.openai/videos__list/input.json +477 -0
  482. package/__fixtures__/-2.complex.openai/videos__list/output.py +17 -0
  483. package/__fixtures__/-2.complex.openai/videos__remix/input.json +405 -0
  484. package/__fixtures__/-2.complex.openai/videos__remix/output.py +16 -0
  485. package/__fixtures__/-2.complex.openai/videos__retrieve/input.json +380 -0
  486. package/__fixtures__/-2.complex.openai/videos__retrieve/output.py +16 -0
  487. package/__fixtures__/1.basic/input.json +249 -0
  488. package/__fixtures__/1.basic/output/petstore/__init__.py +6 -0
  489. package/__fixtures__/1.basic/output/petstore/_client.py +21 -0
  490. package/__fixtures__/1.basic/output/petstore/_pagination.py +42 -0
  491. package/__fixtures__/1.basic/output/petstore/_transport.py +391 -0
  492. package/__fixtures__/1.basic/output/petstore/models.py +33 -0
  493. package/__fixtures__/1.basic/output/petstore/resources.py +25 -0
  494. package/__fixtures__/1.basic/output/pyproject.toml +12 -0
  495. package/__fixtures__/1.basic/output/tests/conftest.py +16 -0
  496. package/__fixtures__/1.basic/output/tests/test_pets.py +36 -0
  497. package/__fixtures__/1.basic/output/tests/utils.py +28 -0
  498. package/__fixtures__/2.wire/input.json +351 -0
  499. package/__fixtures__/2.wire/output/pyproject.toml +12 -0
  500. package/__fixtures__/2.wire/output/tests/conftest.py +16 -0
  501. package/__fixtures__/2.wire/output/tests/test_items.py +18 -0
  502. package/__fixtures__/2.wire/output/tests/test_tokens.py +17 -0
  503. package/__fixtures__/2.wire/output/tests/test_uploads.py +27 -0
  504. package/__fixtures__/2.wire/output/tests/utils.py +28 -0
  505. package/__fixtures__/2.wire/output/wire_service/__init__.py +6 -0
  506. package/__fixtures__/2.wire/output/wire_service/_client.py +23 -0
  507. package/__fixtures__/2.wire/output/wire_service/_pagination.py +42 -0
  508. package/__fixtures__/2.wire/output/wire_service/_transport.py +391 -0
  509. package/__fixtures__/2.wire/output/wire_service/models.py +44 -0
  510. package/__fixtures__/2.wire/output/wire_service/resources.py +38 -0
  511. package/__tests__/docs.test.ts +115 -0
  512. package/__tests__/e2e/harness.ts +79 -0
  513. package/__tests__/e2e/openai.test.ts +14 -0
  514. package/__tests__/e2e/publish.test.ts +19 -0
  515. package/__tests__/opensdk-python.test.ts +134 -0
  516. package/__tests__/utils.ts +117 -0
  517. package/biome.json +25 -0
  518. package/dist/index.cjs +1274 -0
  519. package/dist/index.cjs.map +1 -0
  520. package/dist/index.d.cts +32 -0
  521. package/dist/index.d.ts +32 -0
  522. package/dist/index.js +1246 -0
  523. package/dist/index.js.map +1 -0
  524. package/index.ts +1 -0
  525. package/package.json +30 -0
  526. package/src/emitter.ts +95 -0
  527. package/src/example-py.ts +60 -0
  528. package/src/index.ts +4 -0
  529. package/src/method.ts +13 -0
  530. package/src/naming.ts +45 -0
  531. package/src/project.ts +446 -0
  532. package/src/publish.ts +22 -0
  533. package/src/pytype.ts +86 -0
  534. package/src/runtime.ts +551 -0
  535. package/src/tests-py.ts +197 -0
  536. package/src/types.ts +8 -0
  537. package/tsconfig.json +18 -0
  538. package/tsup.config.ts +19 -0
  539. package/vitest.config.ts +8 -0
@@ -0,0 +1,3325 @@
1
+ {
2
+ "opensdk": "1.0.0",
3
+ "info": {
4
+ "title": "openai",
5
+ "version": "2.3.0"
6
+ },
7
+ "servers": [
8
+ "https://api.openai.com/v1"
9
+ ],
10
+ "security": [
11
+ {
12
+ "type": "http",
13
+ "kind": "bearer",
14
+ "schemeName": "ApiKeyAuth",
15
+ "envVar": "OPENAI_API_KEY",
16
+ "scheme": "bearer"
17
+ },
18
+ {
19
+ "type": "http",
20
+ "kind": "bearer",
21
+ "schemeName": "AdminApiKeyAuth",
22
+ "envVar": "OPENAI_API_KEY",
23
+ "scheme": "bearer"
24
+ }
25
+ ],
26
+ "types": [
27
+ {
28
+ "name": "CreateChatCompletionRequest",
29
+ "kind": "struct",
30
+ "fields": [
31
+ {
32
+ "name": "metadata",
33
+ "type": {
34
+ "kind": "ref",
35
+ "name": "Metadata"
36
+ },
37
+ "required": false
38
+ },
39
+ {
40
+ "name": "top_logprobs",
41
+ "type": {
42
+ "kind": "scalar",
43
+ "scalar": "integer",
44
+ "nullable": true
45
+ },
46
+ "required": false,
47
+ "nullable": true,
48
+ "description": "An integer between 0 and 20 specifying the maximum number of most likely\ntokens to return at each token position, each with an associated log\nprobability. In some cases, the number of returned tokens may be fewer than\nrequested.\n`logprobs` must be set to `true` if this parameter is used.\n"
49
+ },
50
+ {
51
+ "name": "temperature",
52
+ "type": {
53
+ "kind": "scalar",
54
+ "scalar": "number",
55
+ "nullable": true
56
+ },
57
+ "required": false
58
+ },
59
+ {
60
+ "name": "top_p",
61
+ "type": {
62
+ "kind": "scalar",
63
+ "scalar": "number",
64
+ "nullable": true
65
+ },
66
+ "required": false
67
+ },
68
+ {
69
+ "name": "user",
70
+ "type": {
71
+ "kind": "scalar",
72
+ "scalar": "string"
73
+ },
74
+ "required": false,
75
+ "deprecated": true,
76
+ "description": "This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.\nA stable identifier for your end-users.\nUsed to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).\n"
77
+ },
78
+ {
79
+ "name": "safety_identifier",
80
+ "type": {
81
+ "kind": "scalar",
82
+ "scalar": "string"
83
+ },
84
+ "required": false,
85
+ "description": "A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.\nThe IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).\n"
86
+ },
87
+ {
88
+ "name": "prompt_cache_key",
89
+ "type": {
90
+ "kind": "scalar",
91
+ "scalar": "string"
92
+ },
93
+ "required": false,
94
+ "description": "Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching).\n"
95
+ },
96
+ {
97
+ "name": "service_tier",
98
+ "type": {
99
+ "kind": "ref",
100
+ "name": "ServiceTier"
101
+ },
102
+ "required": false
103
+ },
104
+ {
105
+ "name": "prompt_cache_retention",
106
+ "type": {
107
+ "kind": "ref",
108
+ "name": "CreateChatCompletionRequestPromptCacheRetention",
109
+ "nullable": true
110
+ },
111
+ "required": false
112
+ },
113
+ {
114
+ "name": "messages",
115
+ "type": {
116
+ "kind": "array",
117
+ "items": {
118
+ "kind": "ref",
119
+ "name": "ChatCompletionRequestMessage"
120
+ }
121
+ },
122
+ "required": true,
123
+ "description": "A list of messages comprising the conversation so far. Depending on the\n[model](/docs/models) you use, different message types (modalities) are\nsupported, like [text](/docs/guides/text-generation),\n[images](/docs/guides/vision), and [audio](/docs/guides/audio).\n"
124
+ },
125
+ {
126
+ "name": "model",
127
+ "type": {
128
+ "kind": "ref",
129
+ "name": "ModelIdsShared"
130
+ },
131
+ "required": true
132
+ },
133
+ {
134
+ "name": "modalities",
135
+ "type": {
136
+ "kind": "ref",
137
+ "name": "ResponseModalities"
138
+ },
139
+ "required": false
140
+ },
141
+ {
142
+ "name": "verbosity",
143
+ "type": {
144
+ "kind": "ref",
145
+ "name": "Verbosity"
146
+ },
147
+ "required": false
148
+ },
149
+ {
150
+ "name": "reasoning_effort",
151
+ "type": {
152
+ "kind": "ref",
153
+ "name": "ReasoningEffort"
154
+ },
155
+ "required": false
156
+ },
157
+ {
158
+ "name": "max_completion_tokens",
159
+ "type": {
160
+ "kind": "scalar",
161
+ "scalar": "integer",
162
+ "nullable": true
163
+ },
164
+ "required": false,
165
+ "nullable": true,
166
+ "description": "An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n"
167
+ },
168
+ {
169
+ "name": "frequency_penalty",
170
+ "type": {
171
+ "kind": "scalar",
172
+ "scalar": "number",
173
+ "nullable": true
174
+ },
175
+ "required": false,
176
+ "nullable": true,
177
+ "default": 0,
178
+ "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on\ntheir existing frequency in the text so far, decreasing the model's\nlikelihood to repeat the same line verbatim.\n"
179
+ },
180
+ {
181
+ "name": "presence_penalty",
182
+ "type": {
183
+ "kind": "scalar",
184
+ "scalar": "number",
185
+ "nullable": true
186
+ },
187
+ "required": false,
188
+ "nullable": true,
189
+ "default": 0,
190
+ "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on\nwhether they appear in the text so far, increasing the model's likelihood\nto talk about new topics.\n"
191
+ },
192
+ {
193
+ "name": "web_search_options",
194
+ "type": {
195
+ "kind": "ref",
196
+ "name": "CreateChatCompletionRequestWebSearchOptions"
197
+ },
198
+ "required": false,
199
+ "description": "This tool searches the web for relevant results to use in a response.\nLearn more about the [web search tool](/docs/guides/tools-web-search?api-mode=chat).\n"
200
+ },
201
+ {
202
+ "name": "response_format",
203
+ "type": {
204
+ "kind": "ref",
205
+ "name": "CreateChatCompletionRequestResponseFormat"
206
+ },
207
+ "required": false,
208
+ "description": "An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n"
209
+ },
210
+ {
211
+ "name": "audio",
212
+ "type": {
213
+ "kind": "ref",
214
+ "name": "CreateChatCompletionRequestAudio",
215
+ "nullable": true
216
+ },
217
+ "required": false,
218
+ "nullable": true,
219
+ "description": "Parameters for audio output. Required when audio output is requested with\n`modalities: [\"audio\"]`. [Learn more](/docs/guides/audio).\n"
220
+ },
221
+ {
222
+ "name": "store",
223
+ "type": {
224
+ "kind": "scalar",
225
+ "scalar": "boolean",
226
+ "nullable": true
227
+ },
228
+ "required": false,
229
+ "nullable": true,
230
+ "default": false,
231
+ "description": "Whether or not to store the output of this chat completion request for\nuse in our [model distillation](/docs/guides/distillation) or\n[evals](/docs/guides/evals) products.\n\nSupports text and image inputs. Note: image inputs over 8MB will be dropped.\n"
232
+ },
233
+ {
234
+ "name": "stream",
235
+ "type": {
236
+ "kind": "scalar",
237
+ "scalar": "boolean",
238
+ "nullable": true
239
+ },
240
+ "required": false,
241
+ "nullable": true,
242
+ "default": false,
243
+ "description": "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](/docs/api-reference/chat/streaming)\nfor more information, along with the [streaming responses](/docs/guides/streaming-responses)\nguide for more information on how to handle the streaming events.\n"
244
+ },
245
+ {
246
+ "name": "stop",
247
+ "type": {
248
+ "kind": "ref",
249
+ "name": "StopConfiguration"
250
+ },
251
+ "required": false
252
+ },
253
+ {
254
+ "name": "logit_bias",
255
+ "type": {
256
+ "kind": "map",
257
+ "values": {
258
+ "kind": "scalar",
259
+ "scalar": "integer"
260
+ },
261
+ "nullable": true
262
+ },
263
+ "required": false,
264
+ "nullable": true,
265
+ "default": null,
266
+ "description": "Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a JSON object that maps tokens (specified by their token ID in the\ntokenizer) to an associated bias value from -100 to 100. Mathematically,\nthe bias is added to the logits generated by the model prior to sampling.\nThe exact effect will vary per model, but values between -1 and 1 should\ndecrease or increase likelihood of selection; values like -100 or 100\nshould result in a ban or exclusive selection of the relevant token.\n"
267
+ },
268
+ {
269
+ "name": "logprobs",
270
+ "type": {
271
+ "kind": "scalar",
272
+ "scalar": "boolean",
273
+ "nullable": true
274
+ },
275
+ "required": false,
276
+ "nullable": true,
277
+ "default": false,
278
+ "description": "Whether to return log probabilities of the output tokens or not. If true,\nreturns the log probabilities of each output token returned in the\n`content` of `message`.\n"
279
+ },
280
+ {
281
+ "name": "max_tokens",
282
+ "type": {
283
+ "kind": "scalar",
284
+ "scalar": "integer",
285
+ "nullable": true
286
+ },
287
+ "required": false,
288
+ "nullable": true,
289
+ "deprecated": true,
290
+ "description": "The maximum number of [tokens](/tokenizer) that can be generated in the\nchat completion. This value can be used to control\n[costs](https://openai.com/api/pricing/) for text generated via API.\n\nThis value is now deprecated in favor of `max_completion_tokens`, and is\nnot compatible with [o-series models](/docs/guides/reasoning).\n"
291
+ },
292
+ {
293
+ "name": "n",
294
+ "type": {
295
+ "kind": "scalar",
296
+ "scalar": "integer",
297
+ "nullable": true
298
+ },
299
+ "required": false,
300
+ "nullable": true,
301
+ "default": 1,
302
+ "description": "How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs."
303
+ },
304
+ {
305
+ "name": "prediction",
306
+ "type": {
307
+ "kind": "ref",
308
+ "name": "PredictionContent",
309
+ "nullable": true
310
+ },
311
+ "required": false,
312
+ "nullable": true,
313
+ "description": "Configuration for a [Predicted Output](/docs/guides/predicted-outputs),\nwhich can greatly improve response times when large parts of the model\nresponse are known ahead of time. This is most common when you are\nregenerating a file with only minor changes to most of the content.\n"
314
+ },
315
+ {
316
+ "name": "seed",
317
+ "type": {
318
+ "kind": "scalar",
319
+ "scalar": "integer",
320
+ "nullable": true
321
+ },
322
+ "required": false,
323
+ "nullable": true,
324
+ "deprecated": true,
325
+ "description": "This feature is in Beta.\nIf specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.\nDeterminism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.\n"
326
+ },
327
+ {
328
+ "name": "stream_options",
329
+ "type": {
330
+ "kind": "ref",
331
+ "name": "ChatCompletionStreamOptions"
332
+ },
333
+ "required": false
334
+ },
335
+ {
336
+ "name": "tools",
337
+ "type": {
338
+ "kind": "array",
339
+ "items": {
340
+ "kind": "ref",
341
+ "name": "CreateChatCompletionRequestToolsItem"
342
+ }
343
+ },
344
+ "required": false,
345
+ "description": "A list of tools the model may call. You can provide either\n[custom tools](/docs/guides/function-calling#custom-tools) or\n[function tools](/docs/guides/function-calling).\n"
346
+ },
347
+ {
348
+ "name": "tool_choice",
349
+ "type": {
350
+ "kind": "ref",
351
+ "name": "ChatCompletionToolChoiceOption"
352
+ },
353
+ "required": false
354
+ },
355
+ {
356
+ "name": "parallel_tool_calls",
357
+ "type": {
358
+ "kind": "ref",
359
+ "name": "ParallelToolCalls"
360
+ },
361
+ "required": false
362
+ },
363
+ {
364
+ "name": "function_call",
365
+ "type": {
366
+ "kind": "ref",
367
+ "name": "CreateChatCompletionRequestFunctionCall"
368
+ },
369
+ "required": false,
370
+ "deprecated": true,
371
+ "description": "Deprecated in favor of `tool_choice`.\n\nControls which (if any) function is called by the model.\n\n`none` means the model will not call a function and instead generates a\nmessage.\n\n`auto` means the model can pick between generating a message or calling a\nfunction.\n\nSpecifying a particular function via `{\"name\": \"my_function\"}` forces the\nmodel to call that function.\n\n`none` is the default when no functions are present. `auto` is the default\nif functions are present.\n"
372
+ },
373
+ {
374
+ "name": "functions",
375
+ "type": {
376
+ "kind": "array",
377
+ "items": {
378
+ "kind": "ref",
379
+ "name": "ChatCompletionFunctions"
380
+ }
381
+ },
382
+ "required": false,
383
+ "deprecated": true,
384
+ "description": "Deprecated in favor of `tools`.\n\nA list of functions the model may generate JSON inputs for.\n"
385
+ }
386
+ ]
387
+ },
388
+ {
389
+ "name": "Metadata",
390
+ "kind": "alias",
391
+ "of": {
392
+ "kind": "map",
393
+ "values": {
394
+ "kind": "scalar",
395
+ "scalar": "string"
396
+ },
397
+ "nullable": true
398
+ }
399
+ },
400
+ {
401
+ "name": "ServiceTier",
402
+ "kind": "enum",
403
+ "base": "string",
404
+ "values": [
405
+ {
406
+ "value": "auto"
407
+ },
408
+ {
409
+ "value": "default"
410
+ },
411
+ {
412
+ "value": "flex"
413
+ },
414
+ {
415
+ "value": "scale"
416
+ },
417
+ {
418
+ "value": "priority"
419
+ }
420
+ ],
421
+ "description": "Specifies the processing type used for serving the request.\n - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.\n - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.\n - If set to '[flex](/docs/guides/flex-processing)' or '[priority](https://openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.\n - When not set, the default behavior is 'auto'.\n\n When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.\n"
422
+ },
423
+ {
424
+ "name": "CreateChatCompletionRequestPromptCacheRetention",
425
+ "kind": "enum",
426
+ "base": "string",
427
+ "values": [
428
+ {
429
+ "value": "in_memory"
430
+ },
431
+ {
432
+ "value": "24h"
433
+ }
434
+ ],
435
+ "description": "The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](/docs/guides/prompt-caching#prompt-cache-retention).\n"
436
+ },
437
+ {
438
+ "name": "ChatCompletionRequestMessage",
439
+ "kind": "union",
440
+ "semantics": "oneOf",
441
+ "variants": [
442
+ {
443
+ "kind": "ref",
444
+ "name": "ChatCompletionRequestDeveloperMessage"
445
+ },
446
+ {
447
+ "kind": "ref",
448
+ "name": "ChatCompletionRequestSystemMessage"
449
+ },
450
+ {
451
+ "kind": "ref",
452
+ "name": "ChatCompletionRequestUserMessage"
453
+ },
454
+ {
455
+ "kind": "ref",
456
+ "name": "ChatCompletionRequestAssistantMessage"
457
+ },
458
+ {
459
+ "kind": "ref",
460
+ "name": "ChatCompletionRequestToolMessage"
461
+ },
462
+ {
463
+ "kind": "ref",
464
+ "name": "ChatCompletionRequestFunctionMessage"
465
+ }
466
+ ],
467
+ "discriminator": {
468
+ "propertyName": "role",
469
+ "mapping": {
470
+ "developer": "ChatCompletionRequestDeveloperMessage",
471
+ "system": "ChatCompletionRequestSystemMessage",
472
+ "user": "ChatCompletionRequestUserMessage",
473
+ "assistant": "ChatCompletionRequestAssistantMessage",
474
+ "tool": "ChatCompletionRequestToolMessage",
475
+ "function": "ChatCompletionRequestFunctionMessage"
476
+ }
477
+ }
478
+ },
479
+ {
480
+ "name": "ChatCompletionRequestDeveloperMessage",
481
+ "kind": "struct",
482
+ "fields": [
483
+ {
484
+ "name": "content",
485
+ "type": {
486
+ "kind": "ref",
487
+ "name": "ChatCompletionRequestDeveloperMessageContent"
488
+ },
489
+ "required": true,
490
+ "description": "The contents of the developer message."
491
+ },
492
+ {
493
+ "name": "role",
494
+ "type": {
495
+ "kind": "scalar",
496
+ "scalar": "string",
497
+ "const": "developer"
498
+ },
499
+ "required": true,
500
+ "description": "The role of the messages author, in this case `developer`."
501
+ },
502
+ {
503
+ "name": "name",
504
+ "type": {
505
+ "kind": "scalar",
506
+ "scalar": "string"
507
+ },
508
+ "required": false,
509
+ "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role."
510
+ }
511
+ ],
512
+ "description": "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, `developer` messages\nreplace the previous `system` messages.\n"
513
+ },
514
+ {
515
+ "name": "ChatCompletionRequestDeveloperMessageContent",
516
+ "kind": "union",
517
+ "semantics": "oneOf",
518
+ "variants": [
519
+ {
520
+ "kind": "scalar",
521
+ "scalar": "string"
522
+ },
523
+ {
524
+ "kind": "array",
525
+ "items": {
526
+ "kind": "ref",
527
+ "name": "ChatCompletionRequestMessageContentPartText"
528
+ }
529
+ }
530
+ ],
531
+ "description": "The contents of the developer message."
532
+ },
533
+ {
534
+ "name": "ChatCompletionRequestMessageContentPartText",
535
+ "kind": "struct",
536
+ "fields": [
537
+ {
538
+ "name": "type",
539
+ "type": {
540
+ "kind": "scalar",
541
+ "scalar": "string",
542
+ "const": "text"
543
+ },
544
+ "required": true,
545
+ "description": "The type of the content part."
546
+ },
547
+ {
548
+ "name": "text",
549
+ "type": {
550
+ "kind": "scalar",
551
+ "scalar": "string"
552
+ },
553
+ "required": true,
554
+ "description": "The text content."
555
+ }
556
+ ],
557
+ "description": "Learn about [text inputs](/docs/guides/text-generation).\n"
558
+ },
559
+ {
560
+ "name": "ChatCompletionRequestSystemMessage",
561
+ "kind": "struct",
562
+ "fields": [
563
+ {
564
+ "name": "content",
565
+ "type": {
566
+ "kind": "ref",
567
+ "name": "ChatCompletionRequestSystemMessageContent"
568
+ },
569
+ "required": true,
570
+ "description": "The contents of the system message."
571
+ },
572
+ {
573
+ "name": "role",
574
+ "type": {
575
+ "kind": "scalar",
576
+ "scalar": "string",
577
+ "const": "system"
578
+ },
579
+ "required": true,
580
+ "description": "The role of the messages author, in this case `system`."
581
+ },
582
+ {
583
+ "name": "name",
584
+ "type": {
585
+ "kind": "scalar",
586
+ "scalar": "string"
587
+ },
588
+ "required": false,
589
+ "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role."
590
+ }
591
+ ],
592
+ "description": "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, use `developer` messages\nfor this purpose instead.\n"
593
+ },
594
+ {
595
+ "name": "ChatCompletionRequestSystemMessageContent",
596
+ "kind": "union",
597
+ "semantics": "oneOf",
598
+ "variants": [
599
+ {
600
+ "kind": "scalar",
601
+ "scalar": "string"
602
+ },
603
+ {
604
+ "kind": "array",
605
+ "items": {
606
+ "kind": "ref",
607
+ "name": "ChatCompletionRequestSystemMessageContentPart"
608
+ }
609
+ }
610
+ ],
611
+ "description": "The contents of the system message."
612
+ },
613
+ {
614
+ "name": "ChatCompletionRequestSystemMessageContentPart",
615
+ "kind": "alias",
616
+ "of": {
617
+ "kind": "ref",
618
+ "name": "ChatCompletionRequestMessageContentPartText"
619
+ }
620
+ },
621
+ {
622
+ "name": "ChatCompletionRequestUserMessage",
623
+ "kind": "struct",
624
+ "fields": [
625
+ {
626
+ "name": "content",
627
+ "type": {
628
+ "kind": "ref",
629
+ "name": "ChatCompletionRequestUserMessageContent"
630
+ },
631
+ "required": true,
632
+ "description": "The contents of the user message.\n"
633
+ },
634
+ {
635
+ "name": "role",
636
+ "type": {
637
+ "kind": "scalar",
638
+ "scalar": "string",
639
+ "const": "user"
640
+ },
641
+ "required": true,
642
+ "description": "The role of the messages author, in this case `user`."
643
+ },
644
+ {
645
+ "name": "name",
646
+ "type": {
647
+ "kind": "scalar",
648
+ "scalar": "string"
649
+ },
650
+ "required": false,
651
+ "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role."
652
+ }
653
+ ],
654
+ "description": "Messages sent by an end user, containing prompts or additional context\ninformation.\n"
655
+ },
656
+ {
657
+ "name": "ChatCompletionRequestUserMessageContent",
658
+ "kind": "union",
659
+ "semantics": "oneOf",
660
+ "variants": [
661
+ {
662
+ "kind": "scalar",
663
+ "scalar": "string"
664
+ },
665
+ {
666
+ "kind": "array",
667
+ "items": {
668
+ "kind": "ref",
669
+ "name": "ChatCompletionRequestUserMessageContentPart"
670
+ }
671
+ }
672
+ ],
673
+ "description": "The contents of the user message.\n"
674
+ },
675
+ {
676
+ "name": "ChatCompletionRequestUserMessageContentPart",
677
+ "kind": "union",
678
+ "semantics": "oneOf",
679
+ "variants": [
680
+ {
681
+ "kind": "ref",
682
+ "name": "ChatCompletionRequestMessageContentPartText"
683
+ },
684
+ {
685
+ "kind": "ref",
686
+ "name": "ChatCompletionRequestMessageContentPartImage"
687
+ },
688
+ {
689
+ "kind": "ref",
690
+ "name": "ChatCompletionRequestMessageContentPartAudio"
691
+ },
692
+ {
693
+ "kind": "ref",
694
+ "name": "ChatCompletionRequestMessageContentPartFile"
695
+ }
696
+ ]
697
+ },
698
+ {
699
+ "name": "ChatCompletionRequestMessageContentPartImage",
700
+ "kind": "struct",
701
+ "fields": [
702
+ {
703
+ "name": "type",
704
+ "type": {
705
+ "kind": "scalar",
706
+ "scalar": "string",
707
+ "const": "image_url"
708
+ },
709
+ "required": true,
710
+ "description": "The type of the content part."
711
+ },
712
+ {
713
+ "name": "image_url",
714
+ "type": {
715
+ "kind": "ref",
716
+ "name": "ChatCompletionRequestMessageContentPartImageImageUrl"
717
+ },
718
+ "required": true
719
+ }
720
+ ],
721
+ "description": "Learn about [image inputs](/docs/guides/vision).\n"
722
+ },
723
+ {
724
+ "name": "ChatCompletionRequestMessageContentPartImageImageUrl",
725
+ "kind": "struct",
726
+ "fields": [
727
+ {
728
+ "name": "url",
729
+ "type": {
730
+ "kind": "scalar",
731
+ "scalar": "string",
732
+ "format": "uri"
733
+ },
734
+ "required": true,
735
+ "description": "Either a URL of the image or the base64 encoded image data."
736
+ },
737
+ {
738
+ "name": "detail",
739
+ "type": {
740
+ "kind": "ref",
741
+ "name": "ChatCompletionRequestMessageContentPartImageImageUrlDetail"
742
+ },
743
+ "required": false,
744
+ "default": "auto",
745
+ "description": "Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding)."
746
+ }
747
+ ]
748
+ },
749
+ {
750
+ "name": "ChatCompletionRequestMessageContentPartImageImageUrlDetail",
751
+ "kind": "enum",
752
+ "base": "string",
753
+ "values": [
754
+ {
755
+ "value": "auto"
756
+ },
757
+ {
758
+ "value": "low"
759
+ },
760
+ {
761
+ "value": "high"
762
+ }
763
+ ],
764
+ "description": "Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding)."
765
+ },
766
+ {
767
+ "name": "ChatCompletionRequestMessageContentPartAudio",
768
+ "kind": "struct",
769
+ "fields": [
770
+ {
771
+ "name": "type",
772
+ "type": {
773
+ "kind": "scalar",
774
+ "scalar": "string",
775
+ "const": "input_audio"
776
+ },
777
+ "required": true,
778
+ "description": "The type of the content part. Always `input_audio`."
779
+ },
780
+ {
781
+ "name": "input_audio",
782
+ "type": {
783
+ "kind": "ref",
784
+ "name": "ChatCompletionRequestMessageContentPartAudioInputAudio"
785
+ },
786
+ "required": true
787
+ }
788
+ ],
789
+ "description": "Learn about [audio inputs](/docs/guides/audio).\n"
790
+ },
791
+ {
792
+ "name": "ChatCompletionRequestMessageContentPartAudioInputAudio",
793
+ "kind": "struct",
794
+ "fields": [
795
+ {
796
+ "name": "data",
797
+ "type": {
798
+ "kind": "scalar",
799
+ "scalar": "string"
800
+ },
801
+ "required": true,
802
+ "description": "Base64 encoded audio data."
803
+ },
804
+ {
805
+ "name": "format",
806
+ "type": {
807
+ "kind": "ref",
808
+ "name": "ChatCompletionRequestMessageContentPartAudioInputAudioFormat"
809
+ },
810
+ "required": true,
811
+ "description": "The format of the encoded audio data. Currently supports \"wav\" and \"mp3\".\n"
812
+ }
813
+ ]
814
+ },
815
+ {
816
+ "name": "ChatCompletionRequestMessageContentPartAudioInputAudioFormat",
817
+ "kind": "enum",
818
+ "base": "string",
819
+ "values": [
820
+ {
821
+ "value": "wav"
822
+ },
823
+ {
824
+ "value": "mp3"
825
+ }
826
+ ],
827
+ "description": "The format of the encoded audio data. Currently supports \"wav\" and \"mp3\".\n"
828
+ },
829
+ {
830
+ "name": "ChatCompletionRequestMessageContentPartFile",
831
+ "kind": "struct",
832
+ "fields": [
833
+ {
834
+ "name": "type",
835
+ "type": {
836
+ "kind": "scalar",
837
+ "scalar": "string",
838
+ "const": "file"
839
+ },
840
+ "required": true,
841
+ "description": "The type of the content part. Always `file`."
842
+ },
843
+ {
844
+ "name": "file",
845
+ "type": {
846
+ "kind": "ref",
847
+ "name": "ChatCompletionRequestMessageContentPartFileFile"
848
+ },
849
+ "required": true
850
+ }
851
+ ],
852
+ "description": "Learn about [file inputs](/docs/guides/text) for text generation.\n"
853
+ },
854
+ {
855
+ "name": "ChatCompletionRequestMessageContentPartFileFile",
856
+ "kind": "struct",
857
+ "fields": [
858
+ {
859
+ "name": "filename",
860
+ "type": {
861
+ "kind": "scalar",
862
+ "scalar": "string"
863
+ },
864
+ "required": false,
865
+ "description": "The name of the file, used when passing the file to the model as a \nstring.\n"
866
+ },
867
+ {
868
+ "name": "file_data",
869
+ "type": {
870
+ "kind": "scalar",
871
+ "scalar": "string"
872
+ },
873
+ "required": false,
874
+ "description": "The base64 encoded file data, used when passing the file to the model \nas a string.\n"
875
+ },
876
+ {
877
+ "name": "file_id",
878
+ "type": {
879
+ "kind": "scalar",
880
+ "scalar": "string"
881
+ },
882
+ "required": false,
883
+ "description": "The ID of an uploaded file to use as input.\n"
884
+ }
885
+ ]
886
+ },
887
+ {
888
+ "name": "ChatCompletionRequestAssistantMessage",
889
+ "kind": "struct",
890
+ "fields": [
891
+ {
892
+ "name": "content",
893
+ "type": {
894
+ "kind": "ref",
895
+ "name": "ChatCompletionRequestAssistantMessageContent",
896
+ "nullable": true
897
+ },
898
+ "required": false
899
+ },
900
+ {
901
+ "name": "refusal",
902
+ "type": {
903
+ "kind": "scalar",
904
+ "scalar": "string",
905
+ "nullable": true
906
+ },
907
+ "required": false
908
+ },
909
+ {
910
+ "name": "role",
911
+ "type": {
912
+ "kind": "scalar",
913
+ "scalar": "string",
914
+ "const": "assistant"
915
+ },
916
+ "required": true,
917
+ "description": "The role of the messages author, in this case `assistant`."
918
+ },
919
+ {
920
+ "name": "name",
921
+ "type": {
922
+ "kind": "scalar",
923
+ "scalar": "string"
924
+ },
925
+ "required": false,
926
+ "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role."
927
+ },
928
+ {
929
+ "name": "audio",
930
+ "type": {
931
+ "kind": "ref",
932
+ "name": "ChatCompletionRequestAssistantMessageAudio",
933
+ "nullable": true
934
+ },
935
+ "required": false
936
+ },
937
+ {
938
+ "name": "tool_calls",
939
+ "type": {
940
+ "kind": "ref",
941
+ "name": "ChatCompletionMessageToolCalls"
942
+ },
943
+ "required": false
944
+ },
945
+ {
946
+ "name": "function_call",
947
+ "type": {
948
+ "kind": "ref",
949
+ "name": "ChatCompletionRequestAssistantMessageFunctionCall",
950
+ "nullable": true
951
+ },
952
+ "required": false
953
+ }
954
+ ],
955
+ "description": "Messages sent by the model in response to user messages.\n"
956
+ },
957
+ {
958
+ "name": "ChatCompletionRequestAssistantMessageContent",
959
+ "kind": "union",
960
+ "semantics": "oneOf",
961
+ "variants": [
962
+ {
963
+ "kind": "scalar",
964
+ "scalar": "string"
965
+ },
966
+ {
967
+ "kind": "array",
968
+ "items": {
969
+ "kind": "ref",
970
+ "name": "ChatCompletionRequestAssistantMessageContentPart"
971
+ }
972
+ }
973
+ ],
974
+ "description": "The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.\n"
975
+ },
976
+ {
977
+ "name": "ChatCompletionRequestAssistantMessageContentPart",
978
+ "kind": "union",
979
+ "semantics": "oneOf",
980
+ "variants": [
981
+ {
982
+ "kind": "ref",
983
+ "name": "ChatCompletionRequestMessageContentPartText"
984
+ },
985
+ {
986
+ "kind": "ref",
987
+ "name": "ChatCompletionRequestMessageContentPartRefusal"
988
+ }
989
+ ],
990
+ "discriminator": {
991
+ "propertyName": "type",
992
+ "mapping": {
993
+ "text": "ChatCompletionRequestMessageContentPartText",
994
+ "refusal": "ChatCompletionRequestMessageContentPartRefusal"
995
+ }
996
+ }
997
+ },
998
+ {
999
+ "name": "ChatCompletionRequestMessageContentPartRefusal",
1000
+ "kind": "struct",
1001
+ "fields": [
1002
+ {
1003
+ "name": "type",
1004
+ "type": {
1005
+ "kind": "scalar",
1006
+ "scalar": "string",
1007
+ "const": "refusal"
1008
+ },
1009
+ "required": true,
1010
+ "description": "The type of the content part."
1011
+ },
1012
+ {
1013
+ "name": "refusal",
1014
+ "type": {
1015
+ "kind": "scalar",
1016
+ "scalar": "string"
1017
+ },
1018
+ "required": true,
1019
+ "description": "The refusal message generated by the model."
1020
+ }
1021
+ ]
1022
+ },
1023
+ {
1024
+ "name": "ChatCompletionRequestAssistantMessageAudio",
1025
+ "kind": "struct",
1026
+ "fields": [
1027
+ {
1028
+ "name": "id",
1029
+ "type": {
1030
+ "kind": "scalar",
1031
+ "scalar": "string"
1032
+ },
1033
+ "required": true,
1034
+ "description": "Unique identifier for a previous audio response from the model.\n"
1035
+ }
1036
+ ],
1037
+ "description": "Data about a previous audio response from the model.\n[Learn more](/docs/guides/audio).\n"
1038
+ },
1039
+ {
1040
+ "name": "ChatCompletionMessageToolCalls",
1041
+ "kind": "alias",
1042
+ "of": {
1043
+ "kind": "array",
1044
+ "items": {
1045
+ "kind": "ref",
1046
+ "name": "ChatCompletionMessageToolCallsItem"
1047
+ }
1048
+ }
1049
+ },
1050
+ {
1051
+ "name": "ChatCompletionMessageToolCallsItem",
1052
+ "kind": "union",
1053
+ "semantics": "oneOf",
1054
+ "variants": [
1055
+ {
1056
+ "kind": "ref",
1057
+ "name": "ChatCompletionMessageToolCall"
1058
+ },
1059
+ {
1060
+ "kind": "ref",
1061
+ "name": "ChatCompletionMessageCustomToolCall"
1062
+ }
1063
+ ],
1064
+ "discriminator": {
1065
+ "propertyName": "type",
1066
+ "mapping": {
1067
+ "function": "ChatCompletionMessageToolCall",
1068
+ "custom": "ChatCompletionMessageCustomToolCall"
1069
+ }
1070
+ }
1071
+ },
1072
+ {
1073
+ "name": "ChatCompletionMessageToolCall",
1074
+ "kind": "struct",
1075
+ "fields": [
1076
+ {
1077
+ "name": "id",
1078
+ "type": {
1079
+ "kind": "scalar",
1080
+ "scalar": "string"
1081
+ },
1082
+ "required": true,
1083
+ "description": "The ID of the tool call."
1084
+ },
1085
+ {
1086
+ "name": "type",
1087
+ "type": {
1088
+ "kind": "scalar",
1089
+ "scalar": "string",
1090
+ "const": "function"
1091
+ },
1092
+ "required": true,
1093
+ "description": "The type of the tool. Currently, only `function` is supported."
1094
+ },
1095
+ {
1096
+ "name": "function",
1097
+ "type": {
1098
+ "kind": "ref",
1099
+ "name": "ChatCompletionMessageToolCallFunction"
1100
+ },
1101
+ "required": true,
1102
+ "description": "The function that the model called."
1103
+ }
1104
+ ],
1105
+ "description": "A call to a function tool created by the model.\n"
1106
+ },
1107
+ {
1108
+ "name": "ChatCompletionMessageToolCallFunction",
1109
+ "kind": "struct",
1110
+ "fields": [
1111
+ {
1112
+ "name": "name",
1113
+ "type": {
1114
+ "kind": "scalar",
1115
+ "scalar": "string"
1116
+ },
1117
+ "required": true,
1118
+ "description": "The name of the function to call."
1119
+ },
1120
+ {
1121
+ "name": "arguments",
1122
+ "type": {
1123
+ "kind": "scalar",
1124
+ "scalar": "string"
1125
+ },
1126
+ "required": true,
1127
+ "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function."
1128
+ }
1129
+ ],
1130
+ "description": "The function that the model called."
1131
+ },
1132
+ {
1133
+ "name": "ChatCompletionMessageCustomToolCall",
1134
+ "kind": "struct",
1135
+ "fields": [
1136
+ {
1137
+ "name": "id",
1138
+ "type": {
1139
+ "kind": "scalar",
1140
+ "scalar": "string"
1141
+ },
1142
+ "required": true,
1143
+ "description": "The ID of the tool call."
1144
+ },
1145
+ {
1146
+ "name": "type",
1147
+ "type": {
1148
+ "kind": "scalar",
1149
+ "scalar": "string",
1150
+ "const": "custom"
1151
+ },
1152
+ "required": true,
1153
+ "description": "The type of the tool. Always `custom`."
1154
+ },
1155
+ {
1156
+ "name": "custom",
1157
+ "type": {
1158
+ "kind": "ref",
1159
+ "name": "ChatCompletionMessageCustomToolCallCustom"
1160
+ },
1161
+ "required": true,
1162
+ "description": "The custom tool that the model called."
1163
+ }
1164
+ ],
1165
+ "description": "A call to a custom tool created by the model.\n"
1166
+ },
1167
+ {
1168
+ "name": "ChatCompletionMessageCustomToolCallCustom",
1169
+ "kind": "struct",
1170
+ "fields": [
1171
+ {
1172
+ "name": "name",
1173
+ "type": {
1174
+ "kind": "scalar",
1175
+ "scalar": "string"
1176
+ },
1177
+ "required": true,
1178
+ "description": "The name of the custom tool to call."
1179
+ },
1180
+ {
1181
+ "name": "input",
1182
+ "type": {
1183
+ "kind": "scalar",
1184
+ "scalar": "string"
1185
+ },
1186
+ "required": true,
1187
+ "description": "The input for the custom tool call generated by the model."
1188
+ }
1189
+ ],
1190
+ "description": "The custom tool that the model called."
1191
+ },
1192
+ {
1193
+ "name": "ChatCompletionRequestAssistantMessageFunctionCall",
1194
+ "kind": "struct",
1195
+ "fields": [
1196
+ {
1197
+ "name": "arguments",
1198
+ "type": {
1199
+ "kind": "scalar",
1200
+ "scalar": "string"
1201
+ },
1202
+ "required": true,
1203
+ "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function."
1204
+ },
1205
+ {
1206
+ "name": "name",
1207
+ "type": {
1208
+ "kind": "scalar",
1209
+ "scalar": "string"
1210
+ },
1211
+ "required": true,
1212
+ "description": "The name of the function to call."
1213
+ }
1214
+ ],
1215
+ "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model."
1216
+ },
1217
+ {
1218
+ "name": "ChatCompletionRequestToolMessage",
1219
+ "kind": "struct",
1220
+ "fields": [
1221
+ {
1222
+ "name": "role",
1223
+ "type": {
1224
+ "kind": "scalar",
1225
+ "scalar": "string",
1226
+ "const": "tool"
1227
+ },
1228
+ "required": true,
1229
+ "description": "The role of the messages author, in this case `tool`."
1230
+ },
1231
+ {
1232
+ "name": "content",
1233
+ "type": {
1234
+ "kind": "ref",
1235
+ "name": "ChatCompletionRequestToolMessageContent"
1236
+ },
1237
+ "required": true,
1238
+ "description": "The contents of the tool message."
1239
+ },
1240
+ {
1241
+ "name": "tool_call_id",
1242
+ "type": {
1243
+ "kind": "scalar",
1244
+ "scalar": "string"
1245
+ },
1246
+ "required": true,
1247
+ "description": "Tool call that this message is responding to."
1248
+ }
1249
+ ]
1250
+ },
1251
+ {
1252
+ "name": "ChatCompletionRequestToolMessageContent",
1253
+ "kind": "union",
1254
+ "semantics": "oneOf",
1255
+ "variants": [
1256
+ {
1257
+ "kind": "scalar",
1258
+ "scalar": "string"
1259
+ },
1260
+ {
1261
+ "kind": "array",
1262
+ "items": {
1263
+ "kind": "ref",
1264
+ "name": "ChatCompletionRequestToolMessageContentPart"
1265
+ }
1266
+ }
1267
+ ],
1268
+ "description": "The contents of the tool message."
1269
+ },
1270
+ {
1271
+ "name": "ChatCompletionRequestToolMessageContentPart",
1272
+ "kind": "alias",
1273
+ "of": {
1274
+ "kind": "ref",
1275
+ "name": "ChatCompletionRequestMessageContentPartText"
1276
+ }
1277
+ },
1278
+ {
1279
+ "name": "ChatCompletionRequestFunctionMessage",
1280
+ "kind": "struct",
1281
+ "fields": [
1282
+ {
1283
+ "name": "role",
1284
+ "type": {
1285
+ "kind": "scalar",
1286
+ "scalar": "string",
1287
+ "const": "function"
1288
+ },
1289
+ "required": true,
1290
+ "description": "The role of the messages author, in this case `function`."
1291
+ },
1292
+ {
1293
+ "name": "content",
1294
+ "type": {
1295
+ "kind": "scalar",
1296
+ "scalar": "string",
1297
+ "nullable": true
1298
+ },
1299
+ "required": true
1300
+ },
1301
+ {
1302
+ "name": "name",
1303
+ "type": {
1304
+ "kind": "scalar",
1305
+ "scalar": "string"
1306
+ },
1307
+ "required": true,
1308
+ "description": "The name of the function to call."
1309
+ }
1310
+ ]
1311
+ },
1312
+ {
1313
+ "name": "ModelIdsShared",
1314
+ "kind": "union",
1315
+ "semantics": "anyOf",
1316
+ "variants": [
1317
+ {
1318
+ "kind": "scalar",
1319
+ "scalar": "string"
1320
+ },
1321
+ {
1322
+ "kind": "ref",
1323
+ "name": "ModelIdsSharedString"
1324
+ }
1325
+ ]
1326
+ },
1327
+ {
1328
+ "name": "ModelIdsSharedString",
1329
+ "kind": "enum",
1330
+ "base": "string",
1331
+ "values": [
1332
+ {
1333
+ "value": "gpt-5.4"
1334
+ },
1335
+ {
1336
+ "value": "gpt-5.4-mini"
1337
+ },
1338
+ {
1339
+ "value": "gpt-5.4-nano"
1340
+ },
1341
+ {
1342
+ "value": "gpt-5.4-mini-2026-03-17"
1343
+ },
1344
+ {
1345
+ "value": "gpt-5.4-nano-2026-03-17"
1346
+ },
1347
+ {
1348
+ "value": "gpt-5.3-chat-latest"
1349
+ },
1350
+ {
1351
+ "value": "gpt-5.2"
1352
+ },
1353
+ {
1354
+ "value": "gpt-5.2-2025-12-11"
1355
+ },
1356
+ {
1357
+ "value": "gpt-5.2-chat-latest"
1358
+ },
1359
+ {
1360
+ "value": "gpt-5.2-pro"
1361
+ },
1362
+ {
1363
+ "value": "gpt-5.2-pro-2025-12-11"
1364
+ },
1365
+ {
1366
+ "value": "gpt-5.1"
1367
+ },
1368
+ {
1369
+ "value": "gpt-5.1-2025-11-13"
1370
+ },
1371
+ {
1372
+ "value": "gpt-5.1-codex"
1373
+ },
1374
+ {
1375
+ "value": "gpt-5.1-mini"
1376
+ },
1377
+ {
1378
+ "value": "gpt-5.1-chat-latest"
1379
+ },
1380
+ {
1381
+ "value": "gpt-5"
1382
+ },
1383
+ {
1384
+ "value": "gpt-5-mini"
1385
+ },
1386
+ {
1387
+ "value": "gpt-5-nano"
1388
+ },
1389
+ {
1390
+ "value": "gpt-5-2025-08-07"
1391
+ },
1392
+ {
1393
+ "value": "gpt-5-mini-2025-08-07"
1394
+ },
1395
+ {
1396
+ "value": "gpt-5-nano-2025-08-07"
1397
+ },
1398
+ {
1399
+ "value": "gpt-5-chat-latest"
1400
+ },
1401
+ {
1402
+ "value": "gpt-4.1"
1403
+ },
1404
+ {
1405
+ "value": "gpt-4.1-mini"
1406
+ },
1407
+ {
1408
+ "value": "gpt-4.1-nano"
1409
+ },
1410
+ {
1411
+ "value": "gpt-4.1-2025-04-14"
1412
+ },
1413
+ {
1414
+ "value": "gpt-4.1-mini-2025-04-14"
1415
+ },
1416
+ {
1417
+ "value": "gpt-4.1-nano-2025-04-14"
1418
+ },
1419
+ {
1420
+ "value": "o4-mini"
1421
+ },
1422
+ {
1423
+ "value": "o4-mini-2025-04-16"
1424
+ },
1425
+ {
1426
+ "value": "o3"
1427
+ },
1428
+ {
1429
+ "value": "o3-2025-04-16"
1430
+ },
1431
+ {
1432
+ "value": "o3-mini"
1433
+ },
1434
+ {
1435
+ "value": "o3-mini-2025-01-31"
1436
+ },
1437
+ {
1438
+ "value": "o1"
1439
+ },
1440
+ {
1441
+ "value": "o1-2024-12-17"
1442
+ },
1443
+ {
1444
+ "value": "o1-preview"
1445
+ },
1446
+ {
1447
+ "value": "o1-preview-2024-09-12"
1448
+ },
1449
+ {
1450
+ "value": "o1-mini"
1451
+ },
1452
+ {
1453
+ "value": "o1-mini-2024-09-12"
1454
+ },
1455
+ {
1456
+ "value": "gpt-4o"
1457
+ },
1458
+ {
1459
+ "value": "gpt-4o-2024-11-20"
1460
+ },
1461
+ {
1462
+ "value": "gpt-4o-2024-08-06"
1463
+ },
1464
+ {
1465
+ "value": "gpt-4o-2024-05-13"
1466
+ },
1467
+ {
1468
+ "value": "gpt-4o-audio-preview"
1469
+ },
1470
+ {
1471
+ "value": "gpt-4o-audio-preview-2024-10-01"
1472
+ },
1473
+ {
1474
+ "value": "gpt-4o-audio-preview-2024-12-17"
1475
+ },
1476
+ {
1477
+ "value": "gpt-4o-audio-preview-2025-06-03"
1478
+ },
1479
+ {
1480
+ "value": "gpt-4o-mini-audio-preview"
1481
+ },
1482
+ {
1483
+ "value": "gpt-4o-mini-audio-preview-2024-12-17"
1484
+ },
1485
+ {
1486
+ "value": "gpt-4o-search-preview"
1487
+ },
1488
+ {
1489
+ "value": "gpt-4o-mini-search-preview"
1490
+ },
1491
+ {
1492
+ "value": "gpt-4o-search-preview-2025-03-11"
1493
+ },
1494
+ {
1495
+ "value": "gpt-4o-mini-search-preview-2025-03-11"
1496
+ },
1497
+ {
1498
+ "value": "chatgpt-4o-latest"
1499
+ },
1500
+ {
1501
+ "value": "codex-mini-latest"
1502
+ },
1503
+ {
1504
+ "value": "gpt-4o-mini"
1505
+ },
1506
+ {
1507
+ "value": "gpt-4o-mini-2024-07-18"
1508
+ },
1509
+ {
1510
+ "value": "gpt-4-turbo"
1511
+ },
1512
+ {
1513
+ "value": "gpt-4-turbo-2024-04-09"
1514
+ },
1515
+ {
1516
+ "value": "gpt-4-0125-preview"
1517
+ },
1518
+ {
1519
+ "value": "gpt-4-turbo-preview"
1520
+ },
1521
+ {
1522
+ "value": "gpt-4-1106-preview"
1523
+ },
1524
+ {
1525
+ "value": "gpt-4-vision-preview"
1526
+ },
1527
+ {
1528
+ "value": "gpt-4"
1529
+ },
1530
+ {
1531
+ "value": "gpt-4-0314"
1532
+ },
1533
+ {
1534
+ "value": "gpt-4-0613"
1535
+ },
1536
+ {
1537
+ "value": "gpt-4-32k"
1538
+ },
1539
+ {
1540
+ "value": "gpt-4-32k-0314"
1541
+ },
1542
+ {
1543
+ "value": "gpt-4-32k-0613"
1544
+ },
1545
+ {
1546
+ "value": "gpt-3.5-turbo"
1547
+ },
1548
+ {
1549
+ "value": "gpt-3.5-turbo-16k"
1550
+ },
1551
+ {
1552
+ "value": "gpt-3.5-turbo-0301"
1553
+ },
1554
+ {
1555
+ "value": "gpt-3.5-turbo-0613"
1556
+ },
1557
+ {
1558
+ "value": "gpt-3.5-turbo-1106"
1559
+ },
1560
+ {
1561
+ "value": "gpt-3.5-turbo-0125"
1562
+ },
1563
+ {
1564
+ "value": "gpt-3.5-turbo-16k-0613"
1565
+ }
1566
+ ]
1567
+ },
1568
+ {
1569
+ "name": "ResponseModalities",
1570
+ "kind": "alias",
1571
+ "of": {
1572
+ "kind": "array",
1573
+ "items": {
1574
+ "kind": "ref",
1575
+ "name": "ResponseModalitiesItem"
1576
+ },
1577
+ "nullable": true
1578
+ }
1579
+ },
1580
+ {
1581
+ "name": "ResponseModalitiesItem",
1582
+ "kind": "enum",
1583
+ "base": "string",
1584
+ "values": [
1585
+ {
1586
+ "value": "text"
1587
+ },
1588
+ {
1589
+ "value": "audio"
1590
+ }
1591
+ ]
1592
+ },
1593
+ {
1594
+ "name": "Verbosity",
1595
+ "kind": "enum",
1596
+ "base": "string",
1597
+ "values": [
1598
+ {
1599
+ "value": "low"
1600
+ },
1601
+ {
1602
+ "value": "medium"
1603
+ },
1604
+ {
1605
+ "value": "high"
1606
+ }
1607
+ ],
1608
+ "description": "Constrains the verbosity of the model's response. Lower values will result in\nmore concise responses, while higher values will result in more verbose responses.\nCurrently supported values are `low`, `medium`, and `high`.\n"
1609
+ },
1610
+ {
1611
+ "name": "ReasoningEffort",
1612
+ "kind": "enum",
1613
+ "base": "string",
1614
+ "values": [
1615
+ {
1616
+ "value": "none"
1617
+ },
1618
+ {
1619
+ "value": "minimal"
1620
+ },
1621
+ {
1622
+ "value": "low"
1623
+ },
1624
+ {
1625
+ "value": "medium"
1626
+ },
1627
+ {
1628
+ "value": "high"
1629
+ },
1630
+ {
1631
+ "value": "xhigh"
1632
+ }
1633
+ ],
1634
+ "description": "Constrains effort on reasoning for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n\n- `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.\n- All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.\n- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.\n- `xhigh` is supported for all models after `gpt-5.1-codex-max`.\n"
1635
+ },
1636
+ {
1637
+ "name": "CreateChatCompletionRequestWebSearchOptions",
1638
+ "kind": "struct",
1639
+ "fields": [
1640
+ {
1641
+ "name": "user_location",
1642
+ "type": {
1643
+ "kind": "ref",
1644
+ "name": "CreateChatCompletionRequestWebSearchOptionsUserLocation",
1645
+ "nullable": true
1646
+ },
1647
+ "required": false,
1648
+ "nullable": true,
1649
+ "description": "Approximate location parameters for the search.\n"
1650
+ },
1651
+ {
1652
+ "name": "search_context_size",
1653
+ "type": {
1654
+ "kind": "ref",
1655
+ "name": "WebSearchContextSize"
1656
+ },
1657
+ "required": false
1658
+ }
1659
+ ],
1660
+ "description": "This tool searches the web for relevant results to use in a response.\nLearn more about the [web search tool](/docs/guides/tools-web-search?api-mode=chat).\n"
1661
+ },
1662
+ {
1663
+ "name": "CreateChatCompletionRequestWebSearchOptionsUserLocation",
1664
+ "kind": "struct",
1665
+ "fields": [
1666
+ {
1667
+ "name": "type",
1668
+ "type": {
1669
+ "kind": "scalar",
1670
+ "scalar": "string",
1671
+ "const": "approximate"
1672
+ },
1673
+ "required": true,
1674
+ "description": "The type of location approximation. Always `approximate`.\n"
1675
+ },
1676
+ {
1677
+ "name": "approximate",
1678
+ "type": {
1679
+ "kind": "ref",
1680
+ "name": "WebSearchLocation"
1681
+ },
1682
+ "required": true
1683
+ }
1684
+ ],
1685
+ "description": "Approximate location parameters for the search.\n"
1686
+ },
1687
+ {
1688
+ "name": "WebSearchLocation",
1689
+ "kind": "struct",
1690
+ "fields": [
1691
+ {
1692
+ "name": "country",
1693
+ "type": {
1694
+ "kind": "scalar",
1695
+ "scalar": "string"
1696
+ },
1697
+ "required": false,
1698
+ "description": "The two-letter \n[ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user,\ne.g. `US`.\n"
1699
+ },
1700
+ {
1701
+ "name": "region",
1702
+ "type": {
1703
+ "kind": "scalar",
1704
+ "scalar": "string"
1705
+ },
1706
+ "required": false,
1707
+ "description": "Free text input for the region of the user, e.g. `California`.\n"
1708
+ },
1709
+ {
1710
+ "name": "city",
1711
+ "type": {
1712
+ "kind": "scalar",
1713
+ "scalar": "string"
1714
+ },
1715
+ "required": false,
1716
+ "description": "Free text input for the city of the user, e.g. `San Francisco`.\n"
1717
+ },
1718
+ {
1719
+ "name": "timezone",
1720
+ "type": {
1721
+ "kind": "scalar",
1722
+ "scalar": "string"
1723
+ },
1724
+ "required": false,
1725
+ "description": "The [IANA timezone](https://timeapi.io/documentation/iana-timezones) \nof the user, e.g. `America/Los_Angeles`.\n"
1726
+ }
1727
+ ],
1728
+ "description": "Approximate location parameters for the search."
1729
+ },
1730
+ {
1731
+ "name": "WebSearchContextSize",
1732
+ "kind": "enum",
1733
+ "base": "string",
1734
+ "values": [
1735
+ {
1736
+ "value": "low"
1737
+ },
1738
+ {
1739
+ "value": "medium"
1740
+ },
1741
+ {
1742
+ "value": "high"
1743
+ }
1744
+ ],
1745
+ "description": "High level guidance for the amount of context window space to use for the \nsearch. One of `low`, `medium`, or `high`. `medium` is the default.\n"
1746
+ },
1747
+ {
1748
+ "name": "CreateChatCompletionRequestResponseFormat",
1749
+ "kind": "union",
1750
+ "semantics": "oneOf",
1751
+ "variants": [
1752
+ {
1753
+ "kind": "ref",
1754
+ "name": "ResponseFormatText"
1755
+ },
1756
+ {
1757
+ "kind": "ref",
1758
+ "name": "ResponseFormatJsonSchema"
1759
+ },
1760
+ {
1761
+ "kind": "ref",
1762
+ "name": "ResponseFormatJsonObject"
1763
+ }
1764
+ ],
1765
+ "discriminator": {
1766
+ "propertyName": "type",
1767
+ "mapping": {
1768
+ "text": "ResponseFormatText",
1769
+ "json_schema": "ResponseFormatJsonSchema",
1770
+ "json_object": "ResponseFormatJsonObject"
1771
+ }
1772
+ },
1773
+ "description": "An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n"
1774
+ },
1775
+ {
1776
+ "name": "ResponseFormatText",
1777
+ "kind": "struct",
1778
+ "fields": [
1779
+ {
1780
+ "name": "type",
1781
+ "type": {
1782
+ "kind": "scalar",
1783
+ "scalar": "string",
1784
+ "const": "text"
1785
+ },
1786
+ "required": true,
1787
+ "description": "The type of response format being defined. Always `text`."
1788
+ }
1789
+ ],
1790
+ "description": "Default response format. Used to generate text responses.\n"
1791
+ },
1792
+ {
1793
+ "name": "ResponseFormatJsonSchema",
1794
+ "kind": "struct",
1795
+ "fields": [
1796
+ {
1797
+ "name": "type",
1798
+ "type": {
1799
+ "kind": "scalar",
1800
+ "scalar": "string",
1801
+ "const": "json_schema"
1802
+ },
1803
+ "required": true,
1804
+ "description": "The type of response format being defined. Always `json_schema`."
1805
+ },
1806
+ {
1807
+ "name": "json_schema",
1808
+ "type": {
1809
+ "kind": "ref",
1810
+ "name": "ResponseFormatJsonSchemaJsonSchema"
1811
+ },
1812
+ "required": true,
1813
+ "description": "Structured Outputs configuration options, including a JSON Schema.\n"
1814
+ }
1815
+ ],
1816
+ "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n"
1817
+ },
1818
+ {
1819
+ "name": "ResponseFormatJsonSchemaJsonSchema",
1820
+ "kind": "struct",
1821
+ "fields": [
1822
+ {
1823
+ "name": "description",
1824
+ "type": {
1825
+ "kind": "scalar",
1826
+ "scalar": "string"
1827
+ },
1828
+ "required": false,
1829
+ "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n"
1830
+ },
1831
+ {
1832
+ "name": "name",
1833
+ "type": {
1834
+ "kind": "scalar",
1835
+ "scalar": "string"
1836
+ },
1837
+ "required": true,
1838
+ "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n"
1839
+ },
1840
+ {
1841
+ "name": "schema",
1842
+ "type": {
1843
+ "kind": "ref",
1844
+ "name": "ResponseFormatJsonSchemaSchema"
1845
+ },
1846
+ "required": false
1847
+ },
1848
+ {
1849
+ "name": "strict",
1850
+ "type": {
1851
+ "kind": "scalar",
1852
+ "scalar": "boolean",
1853
+ "nullable": true
1854
+ },
1855
+ "required": false
1856
+ }
1857
+ ],
1858
+ "description": "Structured Outputs configuration options, including a JSON Schema.\n"
1859
+ },
1860
+ {
1861
+ "name": "ResponseFormatJsonSchemaSchema",
1862
+ "kind": "alias",
1863
+ "of": {
1864
+ "kind": "map",
1865
+ "values": {
1866
+ "kind": "any"
1867
+ }
1868
+ }
1869
+ },
1870
+ {
1871
+ "name": "ResponseFormatJsonObject",
1872
+ "kind": "struct",
1873
+ "fields": [
1874
+ {
1875
+ "name": "type",
1876
+ "type": {
1877
+ "kind": "scalar",
1878
+ "scalar": "string",
1879
+ "const": "json_object"
1880
+ },
1881
+ "required": true,
1882
+ "description": "The type of response format being defined. Always `json_object`."
1883
+ }
1884
+ ],
1885
+ "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n"
1886
+ },
1887
+ {
1888
+ "name": "CreateChatCompletionRequestAudio",
1889
+ "kind": "struct",
1890
+ "fields": [
1891
+ {
1892
+ "name": "voice",
1893
+ "type": {
1894
+ "kind": "ref",
1895
+ "name": "VoiceIdsOrCustomVoice"
1896
+ },
1897
+ "required": true
1898
+ },
1899
+ {
1900
+ "name": "format",
1901
+ "type": {
1902
+ "kind": "ref",
1903
+ "name": "CreateChatCompletionRequestAudioFormat"
1904
+ },
1905
+ "required": true,
1906
+ "description": "Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`,\n`opus`, or `pcm16`.\n"
1907
+ }
1908
+ ],
1909
+ "description": "Parameters for audio output. Required when audio output is requested with\n`modalities: [\"audio\"]`. [Learn more](/docs/guides/audio).\n"
1910
+ },
1911
+ {
1912
+ "name": "VoiceIdsOrCustomVoice",
1913
+ "kind": "union",
1914
+ "semantics": "anyOf",
1915
+ "variants": [
1916
+ {
1917
+ "kind": "ref",
1918
+ "name": "VoiceIdsShared"
1919
+ },
1920
+ {
1921
+ "kind": "ref",
1922
+ "name": "VoiceIdsOrCustomVoiceVariant1"
1923
+ }
1924
+ ],
1925
+ "description": "A built-in voice name or a custom voice reference.\n"
1926
+ },
1927
+ {
1928
+ "name": "VoiceIdsShared",
1929
+ "kind": "union",
1930
+ "semantics": "anyOf",
1931
+ "variants": [
1932
+ {
1933
+ "kind": "scalar",
1934
+ "scalar": "string"
1935
+ },
1936
+ {
1937
+ "kind": "ref",
1938
+ "name": "VoiceIdsSharedString"
1939
+ }
1940
+ ]
1941
+ },
1942
+ {
1943
+ "name": "VoiceIdsSharedString",
1944
+ "kind": "enum",
1945
+ "base": "string",
1946
+ "values": [
1947
+ {
1948
+ "value": "alloy"
1949
+ },
1950
+ {
1951
+ "value": "ash"
1952
+ },
1953
+ {
1954
+ "value": "ballad"
1955
+ },
1956
+ {
1957
+ "value": "coral"
1958
+ },
1959
+ {
1960
+ "value": "echo"
1961
+ },
1962
+ {
1963
+ "value": "sage"
1964
+ },
1965
+ {
1966
+ "value": "shimmer"
1967
+ },
1968
+ {
1969
+ "value": "verse"
1970
+ },
1971
+ {
1972
+ "value": "marin"
1973
+ },
1974
+ {
1975
+ "value": "cedar"
1976
+ }
1977
+ ]
1978
+ },
1979
+ {
1980
+ "name": "VoiceIdsOrCustomVoiceVariant1",
1981
+ "kind": "struct",
1982
+ "fields": [
1983
+ {
1984
+ "name": "id",
1985
+ "type": {
1986
+ "kind": "scalar",
1987
+ "scalar": "string"
1988
+ },
1989
+ "required": true,
1990
+ "description": "The custom voice ID, e.g. `voice_1234`."
1991
+ }
1992
+ ],
1993
+ "description": "Custom voice reference."
1994
+ },
1995
+ {
1996
+ "name": "CreateChatCompletionRequestAudioFormat",
1997
+ "kind": "enum",
1998
+ "base": "string",
1999
+ "values": [
2000
+ {
2001
+ "value": "wav"
2002
+ },
2003
+ {
2004
+ "value": "aac"
2005
+ },
2006
+ {
2007
+ "value": "mp3"
2008
+ },
2009
+ {
2010
+ "value": "flac"
2011
+ },
2012
+ {
2013
+ "value": "opus"
2014
+ },
2015
+ {
2016
+ "value": "pcm16"
2017
+ }
2018
+ ],
2019
+ "description": "Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`,\n`opus`, or `pcm16`.\n"
2020
+ },
2021
+ {
2022
+ "name": "StopConfiguration",
2023
+ "kind": "union",
2024
+ "semantics": "oneOf",
2025
+ "variants": [
2026
+ {
2027
+ "kind": "scalar",
2028
+ "scalar": "string",
2029
+ "nullable": true
2030
+ },
2031
+ {
2032
+ "kind": "array",
2033
+ "items": {
2034
+ "kind": "scalar",
2035
+ "scalar": "string"
2036
+ }
2037
+ }
2038
+ ],
2039
+ "description": "Not supported with latest reasoning models `o3` and `o4-mini`.\n\nUp to 4 sequences where the API will stop generating further tokens. The\nreturned text will not contain the stop sequence.\n"
2040
+ },
2041
+ {
2042
+ "name": "PredictionContent",
2043
+ "kind": "struct",
2044
+ "fields": [
2045
+ {
2046
+ "name": "type",
2047
+ "type": {
2048
+ "kind": "scalar",
2049
+ "scalar": "string",
2050
+ "const": "content"
2051
+ },
2052
+ "required": true,
2053
+ "description": "The type of the predicted content you want to provide. This type is\ncurrently always `content`.\n"
2054
+ },
2055
+ {
2056
+ "name": "content",
2057
+ "type": {
2058
+ "kind": "ref",
2059
+ "name": "ChatCompletionRequestDeveloperMessageContent"
2060
+ },
2061
+ "required": true,
2062
+ "description": "The content that should be matched when generating a model response.\nIf generated tokens would match this content, the entire model response\ncan be returned much more quickly.\n"
2063
+ }
2064
+ ],
2065
+ "description": "Static predicted output content, such as the content of a text file that is\nbeing regenerated.\n"
2066
+ },
2067
+ {
2068
+ "name": "ChatCompletionStreamOptions",
2069
+ "kind": "struct",
2070
+ "fields": [
2071
+ {
2072
+ "name": "include_usage",
2073
+ "type": {
2074
+ "kind": "scalar",
2075
+ "scalar": "boolean"
2076
+ },
2077
+ "required": false,
2078
+ "description": "If set, an additional chunk will be streamed before the `data: [DONE]`\nmessage. The `usage` field on this chunk shows the token usage statistics\nfor the entire request, and the `choices` field will always be an empty\narray.\n\nAll other chunks will also include a `usage` field, but with a null\nvalue. **NOTE:** If the stream is interrupted, you may not receive the\nfinal usage chunk which contains the total token usage for the request.\n"
2079
+ },
2080
+ {
2081
+ "name": "include_obfuscation",
2082
+ "type": {
2083
+ "kind": "scalar",
2084
+ "scalar": "boolean"
2085
+ },
2086
+ "required": false,
2087
+ "description": "When true, stream obfuscation will be enabled. Stream obfuscation adds\nrandom characters to an `obfuscation` field on streaming delta events to\nnormalize payload sizes as a mitigation to certain side-channel attacks.\nThese obfuscation fields are included by default, but add a small amount\nof overhead to the data stream. You can set `include_obfuscation` to\nfalse to optimize for bandwidth if you trust the network links between\nyour application and the OpenAI API.\n"
2088
+ }
2089
+ ],
2090
+ "description": "Options for streaming response. Only set this when you set `stream: true`.\n"
2091
+ },
2092
+ {
2093
+ "name": "CreateChatCompletionRequestToolsItem",
2094
+ "kind": "union",
2095
+ "semantics": "oneOf",
2096
+ "variants": [
2097
+ {
2098
+ "kind": "ref",
2099
+ "name": "ChatCompletionTool"
2100
+ },
2101
+ {
2102
+ "kind": "ref",
2103
+ "name": "CustomToolChatCompletions"
2104
+ }
2105
+ ]
2106
+ },
2107
+ {
2108
+ "name": "ChatCompletionTool",
2109
+ "kind": "struct",
2110
+ "fields": [
2111
+ {
2112
+ "name": "type",
2113
+ "type": {
2114
+ "kind": "scalar",
2115
+ "scalar": "string",
2116
+ "const": "function"
2117
+ },
2118
+ "required": true,
2119
+ "description": "The type of the tool. Currently, only `function` is supported."
2120
+ },
2121
+ {
2122
+ "name": "function",
2123
+ "type": {
2124
+ "kind": "ref",
2125
+ "name": "FunctionObject"
2126
+ },
2127
+ "required": true
2128
+ }
2129
+ ],
2130
+ "description": "A function tool that can be used to generate a response.\n"
2131
+ },
2132
+ {
2133
+ "name": "FunctionObject",
2134
+ "kind": "struct",
2135
+ "fields": [
2136
+ {
2137
+ "name": "description",
2138
+ "type": {
2139
+ "kind": "scalar",
2140
+ "scalar": "string"
2141
+ },
2142
+ "required": false,
2143
+ "description": "A description of what the function does, used by the model to choose when and how to call the function."
2144
+ },
2145
+ {
2146
+ "name": "name",
2147
+ "type": {
2148
+ "kind": "scalar",
2149
+ "scalar": "string"
2150
+ },
2151
+ "required": true,
2152
+ "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64."
2153
+ },
2154
+ {
2155
+ "name": "parameters",
2156
+ "type": {
2157
+ "kind": "ref",
2158
+ "name": "FunctionParameters"
2159
+ },
2160
+ "required": false
2161
+ },
2162
+ {
2163
+ "name": "strict",
2164
+ "type": {
2165
+ "kind": "scalar",
2166
+ "scalar": "boolean",
2167
+ "nullable": true
2168
+ },
2169
+ "required": false
2170
+ }
2171
+ ]
2172
+ },
2173
+ {
2174
+ "name": "FunctionParameters",
2175
+ "kind": "alias",
2176
+ "of": {
2177
+ "kind": "map",
2178
+ "values": {
2179
+ "kind": "any"
2180
+ }
2181
+ }
2182
+ },
2183
+ {
2184
+ "name": "CustomToolChatCompletions",
2185
+ "kind": "struct",
2186
+ "fields": [
2187
+ {
2188
+ "name": "type",
2189
+ "type": {
2190
+ "kind": "scalar",
2191
+ "scalar": "string",
2192
+ "const": "custom"
2193
+ },
2194
+ "required": true,
2195
+ "description": "The type of the custom tool. Always `custom`."
2196
+ },
2197
+ {
2198
+ "name": "custom",
2199
+ "type": {
2200
+ "kind": "ref",
2201
+ "name": "CustomToolChatCompletionsCustom"
2202
+ },
2203
+ "required": true,
2204
+ "description": "Properties of the custom tool.\n"
2205
+ }
2206
+ ],
2207
+ "description": "A custom tool that processes input using a specified format.\n"
2208
+ },
2209
+ {
2210
+ "name": "CustomToolChatCompletionsCustom",
2211
+ "kind": "struct",
2212
+ "fields": [
2213
+ {
2214
+ "name": "name",
2215
+ "type": {
2216
+ "kind": "scalar",
2217
+ "scalar": "string"
2218
+ },
2219
+ "required": true,
2220
+ "description": "The name of the custom tool, used to identify it in tool calls."
2221
+ },
2222
+ {
2223
+ "name": "description",
2224
+ "type": {
2225
+ "kind": "scalar",
2226
+ "scalar": "string"
2227
+ },
2228
+ "required": false,
2229
+ "description": "Optional description of the custom tool, used to provide more context.\n"
2230
+ },
2231
+ {
2232
+ "name": "format",
2233
+ "type": {
2234
+ "kind": "ref",
2235
+ "name": "CustomToolChatCompletionsCustomFormat"
2236
+ },
2237
+ "required": false,
2238
+ "description": "The input format for the custom tool. Default is unconstrained text.\n"
2239
+ }
2240
+ ],
2241
+ "description": "Properties of the custom tool.\n"
2242
+ },
2243
+ {
2244
+ "name": "CustomToolChatCompletionsCustomFormat",
2245
+ "kind": "union",
2246
+ "semantics": "oneOf",
2247
+ "variants": [
2248
+ {
2249
+ "kind": "ref",
2250
+ "name": "CustomToolChatCompletionsCustomFormatText"
2251
+ },
2252
+ {
2253
+ "kind": "ref",
2254
+ "name": "CustomToolChatCompletionsCustomFormatGrammar"
2255
+ }
2256
+ ],
2257
+ "description": "The input format for the custom tool. Default is unconstrained text.\n"
2258
+ },
2259
+ {
2260
+ "name": "CustomToolChatCompletionsCustomFormatText",
2261
+ "kind": "struct",
2262
+ "fields": [
2263
+ {
2264
+ "name": "type",
2265
+ "type": {
2266
+ "kind": "scalar",
2267
+ "scalar": "string",
2268
+ "const": "text"
2269
+ },
2270
+ "required": true,
2271
+ "description": "Unconstrained text format. Always `text`."
2272
+ }
2273
+ ],
2274
+ "description": "Unconstrained free-form text."
2275
+ },
2276
+ {
2277
+ "name": "CustomToolChatCompletionsCustomFormatGrammar",
2278
+ "kind": "struct",
2279
+ "fields": [
2280
+ {
2281
+ "name": "type",
2282
+ "type": {
2283
+ "kind": "scalar",
2284
+ "scalar": "string",
2285
+ "const": "grammar"
2286
+ },
2287
+ "required": true,
2288
+ "description": "Grammar format. Always `grammar`."
2289
+ },
2290
+ {
2291
+ "name": "grammar",
2292
+ "type": {
2293
+ "kind": "ref",
2294
+ "name": "CustomToolChatCompletionsCustomFormatGrammarGrammar"
2295
+ },
2296
+ "required": true,
2297
+ "description": "Your chosen grammar."
2298
+ }
2299
+ ],
2300
+ "description": "A grammar defined by the user."
2301
+ },
2302
+ {
2303
+ "name": "CustomToolChatCompletionsCustomFormatGrammarGrammar",
2304
+ "kind": "struct",
2305
+ "fields": [
2306
+ {
2307
+ "name": "definition",
2308
+ "type": {
2309
+ "kind": "scalar",
2310
+ "scalar": "string"
2311
+ },
2312
+ "required": true,
2313
+ "description": "The grammar definition."
2314
+ },
2315
+ {
2316
+ "name": "syntax",
2317
+ "type": {
2318
+ "kind": "ref",
2319
+ "name": "CustomToolChatCompletionsCustomFormatGrammarGrammarSyntax"
2320
+ },
2321
+ "required": true,
2322
+ "description": "The syntax of the grammar definition. One of `lark` or `regex`."
2323
+ }
2324
+ ],
2325
+ "description": "Your chosen grammar."
2326
+ },
2327
+ {
2328
+ "name": "CustomToolChatCompletionsCustomFormatGrammarGrammarSyntax",
2329
+ "kind": "enum",
2330
+ "base": "string",
2331
+ "values": [
2332
+ {
2333
+ "value": "lark"
2334
+ },
2335
+ {
2336
+ "value": "regex"
2337
+ }
2338
+ ],
2339
+ "description": "The syntax of the grammar definition. One of `lark` or `regex`."
2340
+ },
2341
+ {
2342
+ "name": "ChatCompletionToolChoiceOption",
2343
+ "kind": "union",
2344
+ "semantics": "oneOf",
2345
+ "variants": [
2346
+ {
2347
+ "kind": "ref",
2348
+ "name": "ChatCompletionToolChoiceOptionToolChoiceMode"
2349
+ },
2350
+ {
2351
+ "kind": "ref",
2352
+ "name": "ChatCompletionAllowedToolsChoice"
2353
+ },
2354
+ {
2355
+ "kind": "ref",
2356
+ "name": "ChatCompletionNamedToolChoice"
2357
+ },
2358
+ {
2359
+ "kind": "ref",
2360
+ "name": "ChatCompletionNamedToolChoiceCustom"
2361
+ }
2362
+ ],
2363
+ "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tool and instead generates a message.\n`auto` means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools.\nSpecifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n\n`none` is the default when no tools are present. `auto` is the default if tools are present.\n"
2364
+ },
2365
+ {
2366
+ "name": "ChatCompletionToolChoiceOptionToolChoiceMode",
2367
+ "kind": "enum",
2368
+ "base": "string",
2369
+ "values": [
2370
+ {
2371
+ "value": "none"
2372
+ },
2373
+ {
2374
+ "value": "auto"
2375
+ },
2376
+ {
2377
+ "value": "required"
2378
+ }
2379
+ ],
2380
+ "description": "`none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `required` means the model must call one or more tools.\n"
2381
+ },
2382
+ {
2383
+ "name": "ChatCompletionAllowedToolsChoice",
2384
+ "kind": "struct",
2385
+ "fields": [
2386
+ {
2387
+ "name": "type",
2388
+ "type": {
2389
+ "kind": "scalar",
2390
+ "scalar": "string",
2391
+ "const": "allowed_tools"
2392
+ },
2393
+ "required": true,
2394
+ "description": "Allowed tool configuration type. Always `allowed_tools`."
2395
+ },
2396
+ {
2397
+ "name": "allowed_tools",
2398
+ "type": {
2399
+ "kind": "ref",
2400
+ "name": "ChatCompletionAllowedTools"
2401
+ },
2402
+ "required": true
2403
+ }
2404
+ ],
2405
+ "description": "Constrains the tools available to the model to a pre-defined set.\n"
2406
+ },
2407
+ {
2408
+ "name": "ChatCompletionAllowedTools",
2409
+ "kind": "struct",
2410
+ "fields": [
2411
+ {
2412
+ "name": "mode",
2413
+ "type": {
2414
+ "kind": "ref",
2415
+ "name": "ChatCompletionAllowedToolsMode"
2416
+ },
2417
+ "required": true,
2418
+ "description": "Constrains the tools available to the model to a pre-defined set.\n\n`auto` allows the model to pick from among the allowed tools and generate a\nmessage.\n\n`required` requires the model to call one or more of the allowed tools.\n"
2419
+ },
2420
+ {
2421
+ "name": "tools",
2422
+ "type": {
2423
+ "kind": "array",
2424
+ "items": {
2425
+ "kind": "map",
2426
+ "values": {
2427
+ "kind": "any"
2428
+ }
2429
+ }
2430
+ },
2431
+ "required": true,
2432
+ "description": "A list of tool definitions that the model should be allowed to call.\n\nFor the Chat Completions API, the list of tool definitions might look like:\n```json\n[\n { \"type\": \"function\", \"function\": { \"name\": \"get_weather\" } },\n { \"type\": \"function\", \"function\": { \"name\": \"get_time\" } }\n]\n```\n"
2433
+ }
2434
+ ],
2435
+ "description": "Constrains the tools available to the model to a pre-defined set.\n"
2436
+ },
2437
+ {
2438
+ "name": "ChatCompletionAllowedToolsMode",
2439
+ "kind": "enum",
2440
+ "base": "string",
2441
+ "values": [
2442
+ {
2443
+ "value": "auto"
2444
+ },
2445
+ {
2446
+ "value": "required"
2447
+ }
2448
+ ],
2449
+ "description": "Constrains the tools available to the model to a pre-defined set.\n\n`auto` allows the model to pick from among the allowed tools and generate a\nmessage.\n\n`required` requires the model to call one or more of the allowed tools.\n"
2450
+ },
2451
+ {
2452
+ "name": "ChatCompletionNamedToolChoice",
2453
+ "kind": "struct",
2454
+ "fields": [
2455
+ {
2456
+ "name": "type",
2457
+ "type": {
2458
+ "kind": "scalar",
2459
+ "scalar": "string",
2460
+ "const": "function"
2461
+ },
2462
+ "required": true,
2463
+ "description": "For function calling, the type is always `function`."
2464
+ },
2465
+ {
2466
+ "name": "function",
2467
+ "type": {
2468
+ "kind": "ref",
2469
+ "name": "ChatCompletionNamedToolChoiceFunction"
2470
+ },
2471
+ "required": true
2472
+ }
2473
+ ],
2474
+ "description": "Specifies a tool the model should use. Use to force the model to call a specific function."
2475
+ },
2476
+ {
2477
+ "name": "ChatCompletionNamedToolChoiceFunction",
2478
+ "kind": "struct",
2479
+ "fields": [
2480
+ {
2481
+ "name": "name",
2482
+ "type": {
2483
+ "kind": "scalar",
2484
+ "scalar": "string"
2485
+ },
2486
+ "required": true,
2487
+ "description": "The name of the function to call."
2488
+ }
2489
+ ]
2490
+ },
2491
+ {
2492
+ "name": "ChatCompletionNamedToolChoiceCustom",
2493
+ "kind": "struct",
2494
+ "fields": [
2495
+ {
2496
+ "name": "type",
2497
+ "type": {
2498
+ "kind": "scalar",
2499
+ "scalar": "string",
2500
+ "const": "custom"
2501
+ },
2502
+ "required": true,
2503
+ "description": "For custom tool calling, the type is always `custom`."
2504
+ },
2505
+ {
2506
+ "name": "custom",
2507
+ "type": {
2508
+ "kind": "ref",
2509
+ "name": "ChatCompletionNamedToolChoiceCustomCustom"
2510
+ },
2511
+ "required": true
2512
+ }
2513
+ ],
2514
+ "description": "Specifies a tool the model should use. Use to force the model to call a specific custom tool."
2515
+ },
2516
+ {
2517
+ "name": "ChatCompletionNamedToolChoiceCustomCustom",
2518
+ "kind": "struct",
2519
+ "fields": [
2520
+ {
2521
+ "name": "name",
2522
+ "type": {
2523
+ "kind": "scalar",
2524
+ "scalar": "string"
2525
+ },
2526
+ "required": true,
2527
+ "description": "The name of the custom tool to call."
2528
+ }
2529
+ ]
2530
+ },
2531
+ {
2532
+ "name": "ParallelToolCalls",
2533
+ "kind": "alias",
2534
+ "of": {
2535
+ "kind": "scalar",
2536
+ "scalar": "boolean"
2537
+ }
2538
+ },
2539
+ {
2540
+ "name": "CreateChatCompletionRequestFunctionCall",
2541
+ "kind": "union",
2542
+ "semantics": "oneOf",
2543
+ "variants": [
2544
+ {
2545
+ "kind": "ref",
2546
+ "name": "CreateChatCompletionRequestFunctionCallString"
2547
+ },
2548
+ {
2549
+ "kind": "ref",
2550
+ "name": "ChatCompletionFunctionCallOption"
2551
+ }
2552
+ ],
2553
+ "description": "Deprecated in favor of `tool_choice`.\n\nControls which (if any) function is called by the model.\n\n`none` means the model will not call a function and instead generates a\nmessage.\n\n`auto` means the model can pick between generating a message or calling a\nfunction.\n\nSpecifying a particular function via `{\"name\": \"my_function\"}` forces the\nmodel to call that function.\n\n`none` is the default when no functions are present. `auto` is the default\nif functions are present.\n"
2554
+ },
2555
+ {
2556
+ "name": "CreateChatCompletionRequestFunctionCallString",
2557
+ "kind": "enum",
2558
+ "base": "string",
2559
+ "values": [
2560
+ {
2561
+ "value": "none"
2562
+ },
2563
+ {
2564
+ "value": "auto"
2565
+ }
2566
+ ],
2567
+ "description": "`none` means the model will not call a function and instead generates a message. `auto` means the model can pick between generating a message or calling a function.\n"
2568
+ },
2569
+ {
2570
+ "name": "ChatCompletionFunctionCallOption",
2571
+ "kind": "struct",
2572
+ "fields": [
2573
+ {
2574
+ "name": "name",
2575
+ "type": {
2576
+ "kind": "scalar",
2577
+ "scalar": "string"
2578
+ },
2579
+ "required": true,
2580
+ "description": "The name of the function to call."
2581
+ }
2582
+ ],
2583
+ "description": "Specifying a particular function via `{\"name\": \"my_function\"}` forces the model to call that function.\n"
2584
+ },
2585
+ {
2586
+ "name": "ChatCompletionFunctions",
2587
+ "kind": "struct",
2588
+ "fields": [
2589
+ {
2590
+ "name": "description",
2591
+ "type": {
2592
+ "kind": "scalar",
2593
+ "scalar": "string"
2594
+ },
2595
+ "required": false,
2596
+ "description": "A description of what the function does, used by the model to choose when and how to call the function."
2597
+ },
2598
+ {
2599
+ "name": "name",
2600
+ "type": {
2601
+ "kind": "scalar",
2602
+ "scalar": "string"
2603
+ },
2604
+ "required": true,
2605
+ "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64."
2606
+ },
2607
+ {
2608
+ "name": "parameters",
2609
+ "type": {
2610
+ "kind": "ref",
2611
+ "name": "FunctionParameters"
2612
+ },
2613
+ "required": false
2614
+ }
2615
+ ]
2616
+ },
2617
+ {
2618
+ "name": "CreateChatCompletionResponse",
2619
+ "kind": "struct",
2620
+ "fields": [
2621
+ {
2622
+ "name": "id",
2623
+ "type": {
2624
+ "kind": "scalar",
2625
+ "scalar": "string"
2626
+ },
2627
+ "required": true,
2628
+ "description": "A unique identifier for the chat completion."
2629
+ },
2630
+ {
2631
+ "name": "choices",
2632
+ "type": {
2633
+ "kind": "array",
2634
+ "items": {
2635
+ "kind": "ref",
2636
+ "name": "CreateChatCompletionResponseChoicesItem"
2637
+ }
2638
+ },
2639
+ "required": true,
2640
+ "description": "A list of chat completion choices. Can be more than one if `n` is greater than 1."
2641
+ },
2642
+ {
2643
+ "name": "created",
2644
+ "type": {
2645
+ "kind": "scalar",
2646
+ "scalar": "integer",
2647
+ "format": "unixtime"
2648
+ },
2649
+ "required": true,
2650
+ "description": "The Unix timestamp (in seconds) of when the chat completion was created."
2651
+ },
2652
+ {
2653
+ "name": "model",
2654
+ "type": {
2655
+ "kind": "scalar",
2656
+ "scalar": "string"
2657
+ },
2658
+ "required": true,
2659
+ "description": "The model used for the chat completion."
2660
+ },
2661
+ {
2662
+ "name": "service_tier",
2663
+ "type": {
2664
+ "kind": "ref",
2665
+ "name": "ServiceTier"
2666
+ },
2667
+ "required": false
2668
+ },
2669
+ {
2670
+ "name": "system_fingerprint",
2671
+ "type": {
2672
+ "kind": "scalar",
2673
+ "scalar": "string"
2674
+ },
2675
+ "required": false,
2676
+ "deprecated": true,
2677
+ "description": "This fingerprint represents the backend configuration that the model runs with.\n\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n"
2678
+ },
2679
+ {
2680
+ "name": "object",
2681
+ "type": {
2682
+ "kind": "scalar",
2683
+ "scalar": "string",
2684
+ "const": "chat.completion"
2685
+ },
2686
+ "required": true,
2687
+ "description": "The object type, which is always `chat.completion`."
2688
+ },
2689
+ {
2690
+ "name": "usage",
2691
+ "type": {
2692
+ "kind": "ref",
2693
+ "name": "CompletionUsage"
2694
+ },
2695
+ "required": false
2696
+ }
2697
+ ],
2698
+ "description": "Represents a chat completion response returned by model, based on the provided input."
2699
+ },
2700
+ {
2701
+ "name": "CreateChatCompletionResponseChoicesItem",
2702
+ "kind": "struct",
2703
+ "fields": [
2704
+ {
2705
+ "name": "finish_reason",
2706
+ "type": {
2707
+ "kind": "ref",
2708
+ "name": "CreateChatCompletionResponseChoicesItemFinishReason"
2709
+ },
2710
+ "required": true,
2711
+ "description": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\n"
2712
+ },
2713
+ {
2714
+ "name": "index",
2715
+ "type": {
2716
+ "kind": "scalar",
2717
+ "scalar": "integer"
2718
+ },
2719
+ "required": true,
2720
+ "description": "The index of the choice in the list of choices."
2721
+ },
2722
+ {
2723
+ "name": "message",
2724
+ "type": {
2725
+ "kind": "ref",
2726
+ "name": "ChatCompletionResponseMessage"
2727
+ },
2728
+ "required": true
2729
+ },
2730
+ {
2731
+ "name": "logprobs",
2732
+ "type": {
2733
+ "kind": "ref",
2734
+ "name": "CreateChatCompletionResponseChoicesItemLogprobs",
2735
+ "nullable": true
2736
+ },
2737
+ "required": true
2738
+ }
2739
+ ]
2740
+ },
2741
+ {
2742
+ "name": "CreateChatCompletionResponseChoicesItemFinishReason",
2743
+ "kind": "enum",
2744
+ "base": "string",
2745
+ "values": [
2746
+ {
2747
+ "value": "stop"
2748
+ },
2749
+ {
2750
+ "value": "length"
2751
+ },
2752
+ {
2753
+ "value": "tool_calls"
2754
+ },
2755
+ {
2756
+ "value": "content_filter"
2757
+ },
2758
+ {
2759
+ "value": "function_call"
2760
+ }
2761
+ ],
2762
+ "description": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\n"
2763
+ },
2764
+ {
2765
+ "name": "ChatCompletionResponseMessage",
2766
+ "kind": "struct",
2767
+ "fields": [
2768
+ {
2769
+ "name": "content",
2770
+ "type": {
2771
+ "kind": "scalar",
2772
+ "scalar": "string",
2773
+ "nullable": true
2774
+ },
2775
+ "required": true
2776
+ },
2777
+ {
2778
+ "name": "refusal",
2779
+ "type": {
2780
+ "kind": "scalar",
2781
+ "scalar": "string",
2782
+ "nullable": true
2783
+ },
2784
+ "required": true
2785
+ },
2786
+ {
2787
+ "name": "tool_calls",
2788
+ "type": {
2789
+ "kind": "ref",
2790
+ "name": "ChatCompletionMessageToolCalls"
2791
+ },
2792
+ "required": false
2793
+ },
2794
+ {
2795
+ "name": "annotations",
2796
+ "type": {
2797
+ "kind": "array",
2798
+ "items": {
2799
+ "kind": "ref",
2800
+ "name": "ChatCompletionResponseMessageAnnotationsItem"
2801
+ }
2802
+ },
2803
+ "required": false,
2804
+ "description": "Annotations for the message, when applicable, as when using the\n[web search tool](/docs/guides/tools-web-search?api-mode=chat).\n"
2805
+ },
2806
+ {
2807
+ "name": "role",
2808
+ "type": {
2809
+ "kind": "scalar",
2810
+ "scalar": "string",
2811
+ "const": "assistant"
2812
+ },
2813
+ "required": true,
2814
+ "description": "The role of the author of this message."
2815
+ },
2816
+ {
2817
+ "name": "function_call",
2818
+ "type": {
2819
+ "kind": "ref",
2820
+ "name": "ChatCompletionRequestAssistantMessageFunctionCall"
2821
+ },
2822
+ "required": false,
2823
+ "deprecated": true,
2824
+ "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model."
2825
+ },
2826
+ {
2827
+ "name": "audio",
2828
+ "type": {
2829
+ "kind": "ref",
2830
+ "name": "ChatCompletionResponseMessageAudio",
2831
+ "nullable": true
2832
+ },
2833
+ "required": false
2834
+ }
2835
+ ],
2836
+ "description": "A chat completion message generated by the model."
2837
+ },
2838
+ {
2839
+ "name": "ChatCompletionResponseMessageAnnotationsItem",
2840
+ "kind": "struct",
2841
+ "fields": [
2842
+ {
2843
+ "name": "type",
2844
+ "type": {
2845
+ "kind": "scalar",
2846
+ "scalar": "string",
2847
+ "const": "url_citation"
2848
+ },
2849
+ "required": true,
2850
+ "description": "The type of the URL citation. Always `url_citation`."
2851
+ },
2852
+ {
2853
+ "name": "url_citation",
2854
+ "type": {
2855
+ "kind": "ref",
2856
+ "name": "ChatCompletionResponseMessageAnnotationsItemUrlCitation"
2857
+ },
2858
+ "required": true,
2859
+ "description": "A URL citation when using web search."
2860
+ }
2861
+ ],
2862
+ "description": "A URL citation when using web search.\n"
2863
+ },
2864
+ {
2865
+ "name": "ChatCompletionResponseMessageAnnotationsItemUrlCitation",
2866
+ "kind": "struct",
2867
+ "fields": [
2868
+ {
2869
+ "name": "end_index",
2870
+ "type": {
2871
+ "kind": "scalar",
2872
+ "scalar": "integer"
2873
+ },
2874
+ "required": true,
2875
+ "description": "The index of the last character of the URL citation in the message."
2876
+ },
2877
+ {
2878
+ "name": "start_index",
2879
+ "type": {
2880
+ "kind": "scalar",
2881
+ "scalar": "integer"
2882
+ },
2883
+ "required": true,
2884
+ "description": "The index of the first character of the URL citation in the message."
2885
+ },
2886
+ {
2887
+ "name": "url",
2888
+ "type": {
2889
+ "kind": "scalar",
2890
+ "scalar": "string",
2891
+ "format": "uri"
2892
+ },
2893
+ "required": true,
2894
+ "description": "The URL of the web resource."
2895
+ },
2896
+ {
2897
+ "name": "title",
2898
+ "type": {
2899
+ "kind": "scalar",
2900
+ "scalar": "string"
2901
+ },
2902
+ "required": true,
2903
+ "description": "The title of the web resource."
2904
+ }
2905
+ ],
2906
+ "description": "A URL citation when using web search."
2907
+ },
2908
+ {
2909
+ "name": "ChatCompletionResponseMessageAudio",
2910
+ "kind": "struct",
2911
+ "fields": [
2912
+ {
2913
+ "name": "id",
2914
+ "type": {
2915
+ "kind": "scalar",
2916
+ "scalar": "string"
2917
+ },
2918
+ "required": true,
2919
+ "description": "Unique identifier for this audio response."
2920
+ },
2921
+ {
2922
+ "name": "expires_at",
2923
+ "type": {
2924
+ "kind": "scalar",
2925
+ "scalar": "integer",
2926
+ "format": "unixtime"
2927
+ },
2928
+ "required": true,
2929
+ "description": "The Unix timestamp (in seconds) for when this audio response will\nno longer be accessible on the server for use in multi-turn\nconversations.\n"
2930
+ },
2931
+ {
2932
+ "name": "data",
2933
+ "type": {
2934
+ "kind": "scalar",
2935
+ "scalar": "string"
2936
+ },
2937
+ "required": true,
2938
+ "description": "Base64 encoded audio bytes generated by the model, in the format\nspecified in the request.\n"
2939
+ },
2940
+ {
2941
+ "name": "transcript",
2942
+ "type": {
2943
+ "kind": "scalar",
2944
+ "scalar": "string"
2945
+ },
2946
+ "required": true,
2947
+ "description": "Transcript of the audio generated by the model."
2948
+ }
2949
+ ],
2950
+ "description": "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](/docs/guides/audio).\n"
2951
+ },
2952
+ {
2953
+ "name": "CreateChatCompletionResponseChoicesItemLogprobs",
2954
+ "kind": "struct",
2955
+ "fields": [
2956
+ {
2957
+ "name": "content",
2958
+ "type": {
2959
+ "kind": "array",
2960
+ "items": {
2961
+ "kind": "ref",
2962
+ "name": "ChatCompletionTokenLogprob"
2963
+ },
2964
+ "nullable": true
2965
+ },
2966
+ "required": true
2967
+ },
2968
+ {
2969
+ "name": "refusal",
2970
+ "type": {
2971
+ "kind": "array",
2972
+ "items": {
2973
+ "kind": "ref",
2974
+ "name": "ChatCompletionTokenLogprob"
2975
+ },
2976
+ "nullable": true
2977
+ },
2978
+ "required": true
2979
+ }
2980
+ ],
2981
+ "description": "Log probability information for the choice."
2982
+ },
2983
+ {
2984
+ "name": "ChatCompletionTokenLogprob",
2985
+ "kind": "struct",
2986
+ "fields": [
2987
+ {
2988
+ "name": "token",
2989
+ "type": {
2990
+ "kind": "scalar",
2991
+ "scalar": "string"
2992
+ },
2993
+ "required": true,
2994
+ "description": "The token."
2995
+ },
2996
+ {
2997
+ "name": "logprob",
2998
+ "type": {
2999
+ "kind": "scalar",
3000
+ "scalar": "number"
3001
+ },
3002
+ "required": true,
3003
+ "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely."
3004
+ },
3005
+ {
3006
+ "name": "bytes",
3007
+ "type": {
3008
+ "kind": "array",
3009
+ "items": {
3010
+ "kind": "scalar",
3011
+ "scalar": "integer"
3012
+ },
3013
+ "nullable": true
3014
+ },
3015
+ "required": true
3016
+ },
3017
+ {
3018
+ "name": "top_logprobs",
3019
+ "type": {
3020
+ "kind": "array",
3021
+ "items": {
3022
+ "kind": "ref",
3023
+ "name": "ChatCompletionTokenLogprobTopLogprobsItem"
3024
+ }
3025
+ },
3026
+ "required": true,
3027
+ "description": "List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`."
3028
+ }
3029
+ ]
3030
+ },
3031
+ {
3032
+ "name": "ChatCompletionTokenLogprobTopLogprobsItem",
3033
+ "kind": "struct",
3034
+ "fields": [
3035
+ {
3036
+ "name": "token",
3037
+ "type": {
3038
+ "kind": "scalar",
3039
+ "scalar": "string"
3040
+ },
3041
+ "required": true,
3042
+ "description": "The token."
3043
+ },
3044
+ {
3045
+ "name": "logprob",
3046
+ "type": {
3047
+ "kind": "scalar",
3048
+ "scalar": "number"
3049
+ },
3050
+ "required": true,
3051
+ "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely."
3052
+ },
3053
+ {
3054
+ "name": "bytes",
3055
+ "type": {
3056
+ "kind": "array",
3057
+ "items": {
3058
+ "kind": "scalar",
3059
+ "scalar": "integer"
3060
+ },
3061
+ "nullable": true
3062
+ },
3063
+ "required": true
3064
+ }
3065
+ ]
3066
+ },
3067
+ {
3068
+ "name": "CompletionUsage",
3069
+ "kind": "struct",
3070
+ "fields": [
3071
+ {
3072
+ "name": "completion_tokens",
3073
+ "type": {
3074
+ "kind": "scalar",
3075
+ "scalar": "integer"
3076
+ },
3077
+ "required": true,
3078
+ "default": 0,
3079
+ "description": "Number of tokens in the generated completion."
3080
+ },
3081
+ {
3082
+ "name": "prompt_tokens",
3083
+ "type": {
3084
+ "kind": "scalar",
3085
+ "scalar": "integer"
3086
+ },
3087
+ "required": true,
3088
+ "default": 0,
3089
+ "description": "Number of tokens in the prompt."
3090
+ },
3091
+ {
3092
+ "name": "total_tokens",
3093
+ "type": {
3094
+ "kind": "scalar",
3095
+ "scalar": "integer"
3096
+ },
3097
+ "required": true,
3098
+ "default": 0,
3099
+ "description": "Total number of tokens used in the request (prompt + completion)."
3100
+ },
3101
+ {
3102
+ "name": "completion_tokens_details",
3103
+ "type": {
3104
+ "kind": "ref",
3105
+ "name": "CompletionUsageCompletionTokensDetails"
3106
+ },
3107
+ "required": false,
3108
+ "description": "Breakdown of tokens used in a completion."
3109
+ },
3110
+ {
3111
+ "name": "prompt_tokens_details",
3112
+ "type": {
3113
+ "kind": "ref",
3114
+ "name": "CompletionUsagePromptTokensDetails"
3115
+ },
3116
+ "required": false,
3117
+ "description": "Breakdown of tokens used in the prompt."
3118
+ }
3119
+ ],
3120
+ "description": "Usage statistics for the completion request."
3121
+ },
3122
+ {
3123
+ "name": "CompletionUsageCompletionTokensDetails",
3124
+ "kind": "struct",
3125
+ "fields": [
3126
+ {
3127
+ "name": "accepted_prediction_tokens",
3128
+ "type": {
3129
+ "kind": "scalar",
3130
+ "scalar": "integer"
3131
+ },
3132
+ "required": false,
3133
+ "default": 0,
3134
+ "description": "When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.\n"
3135
+ },
3136
+ {
3137
+ "name": "audio_tokens",
3138
+ "type": {
3139
+ "kind": "scalar",
3140
+ "scalar": "integer"
3141
+ },
3142
+ "required": false,
3143
+ "default": 0,
3144
+ "description": "Audio input tokens generated by the model."
3145
+ },
3146
+ {
3147
+ "name": "reasoning_tokens",
3148
+ "type": {
3149
+ "kind": "scalar",
3150
+ "scalar": "integer"
3151
+ },
3152
+ "required": false,
3153
+ "default": 0,
3154
+ "description": "Tokens generated by the model for reasoning."
3155
+ },
3156
+ {
3157
+ "name": "rejected_prediction_tokens",
3158
+ "type": {
3159
+ "kind": "scalar",
3160
+ "scalar": "integer"
3161
+ },
3162
+ "required": false,
3163
+ "default": 0,
3164
+ "description": "When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.\n"
3165
+ }
3166
+ ],
3167
+ "description": "Breakdown of tokens used in a completion."
3168
+ },
3169
+ {
3170
+ "name": "CompletionUsagePromptTokensDetails",
3171
+ "kind": "struct",
3172
+ "fields": [
3173
+ {
3174
+ "name": "audio_tokens",
3175
+ "type": {
3176
+ "kind": "scalar",
3177
+ "scalar": "integer"
3178
+ },
3179
+ "required": false,
3180
+ "default": 0,
3181
+ "description": "Audio input tokens present in the prompt."
3182
+ },
3183
+ {
3184
+ "name": "cached_tokens",
3185
+ "type": {
3186
+ "kind": "scalar",
3187
+ "scalar": "integer"
3188
+ },
3189
+ "required": false,
3190
+ "default": 0,
3191
+ "description": "Cached tokens present in the prompt."
3192
+ }
3193
+ ],
3194
+ "description": "Breakdown of tokens used in the prompt."
3195
+ }
3196
+ ],
3197
+ "resources": [
3198
+ {
3199
+ "name": "chat",
3200
+ "resources": [
3201
+ {
3202
+ "name": "completions",
3203
+ "methods": [
3204
+ {
3205
+ "action": "create",
3206
+ "httpMethod": "post",
3207
+ "path": "/chat/completions",
3208
+ "operationId": "createChatCompletion",
3209
+ "description": "**Starting a new project?** We recommend trying [Responses](/docs/api-reference/responses)\nto take advantage of the latest OpenAI platform features. Compare\n[Chat Completions with Responses](/docs/guides/responses-vs-chat-completions?api-mode=responses).\n\n---\n\nCreates a model response for the given chat conversation. Learn more in the\n[text generation](/docs/guides/text-generation), [vision](/docs/guides/vision),\nand [audio](/docs/guides/audio) guides.\n\nParameter support can differ depending on the model used to generate the\nresponse, particularly for newer reasoning models. Parameters that are only\nsupported for reasoning models are noted below. For the current state of\nunsupported parameters in reasoning models,\n[refer to the reasoning guide](/docs/guides/reasoning).\n\nReturns a chat completion object, or a streamed sequence of chat completion\nchunk objects if the request is streamed.\n",
3210
+ "requestBody": {
3211
+ "contentType": "application/json",
3212
+ "type": {
3213
+ "kind": "ref",
3214
+ "name": "CreateChatCompletionRequest"
3215
+ },
3216
+ "required": true,
3217
+ "encoding": "json"
3218
+ },
3219
+ "responses": [
3220
+ {
3221
+ "status": "200",
3222
+ "description": "OK",
3223
+ "contentType": "application/json",
3224
+ "type": {
3225
+ "kind": "ref",
3226
+ "name": "CreateChatCompletionResponse"
3227
+ }
3228
+ }
3229
+ ],
3230
+ "primaryResponse": {
3231
+ "kind": "ref",
3232
+ "name": "CreateChatCompletionResponse"
3233
+ }
3234
+ }
3235
+ ]
3236
+ }
3237
+ ]
3238
+ }
3239
+ ],
3240
+ "sdk": {
3241
+ "retry": {
3242
+ "maxRetries": 2,
3243
+ "retryableStatusCodes": [
3244
+ 408,
3245
+ 429,
3246
+ 500,
3247
+ 502,
3248
+ 503,
3249
+ 504
3250
+ ],
3251
+ "retryConnectionErrors": true,
3252
+ "honorRetryAfterHeader": true,
3253
+ "backoff": {
3254
+ "initialDelayMs": 500,
3255
+ "maxDelayMs": 8000,
3256
+ "multiplier": 2,
3257
+ "jitter": 0.25
3258
+ }
3259
+ },
3260
+ "timeout": {
3261
+ "defaultTimeoutMs": 60000
3262
+ },
3263
+ "errors": {
3264
+ "statusCodeMap": {
3265
+ "400": "BadRequest",
3266
+ "401": "Unauthorized",
3267
+ "403": "PermissionDenied",
3268
+ "404": "NotFound",
3269
+ "409": "Conflict",
3270
+ "422": "UnprocessableEntity",
3271
+ "429": "RateLimited"
3272
+ },
3273
+ "clientErrorKind": "API",
3274
+ "serverErrorKind": "Internal"
3275
+ },
3276
+ "userAgent": {
3277
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
3278
+ "includeRuntimeVersion": false,
3279
+ "aiAgentEnvVars": {
3280
+ "CLAUDE_CODE": "claude-code",
3281
+ "CURSOR_AGENT": "cursor",
3282
+ "CLINE_ACTIVE": "cline",
3283
+ "WINDSURF_ACTIVE": "windsurf",
3284
+ "COPILOT_AGENT": "copilot"
3285
+ }
3286
+ },
3287
+ "telemetry": {
3288
+ "requestIdHeader": "X-Request-ID",
3289
+ "headerName": "X-Client-Telemetry",
3290
+ "enabledByDefault": false
3291
+ },
3292
+ "logging": {
3293
+ "events": [
3294
+ "request.start",
3295
+ "request.success",
3296
+ "request.retry",
3297
+ "request.rate_limited",
3298
+ "request.error",
3299
+ "request.connection_error"
3300
+ ]
3301
+ },
3302
+ "idempotency": {
3303
+ "headerName": "Idempotency-Key",
3304
+ "autoGenerateForPost": true
3305
+ },
3306
+ "pagination": {
3307
+ "autoPageDelayMs": 0
3308
+ },
3309
+ "requestGuard": {
3310
+ "optionKeys": [
3311
+ "api_key",
3312
+ "apiKey",
3313
+ "idempotency_key",
3314
+ "idempotencyKey",
3315
+ "extra_headers",
3316
+ "extraHeaders",
3317
+ "max_retries",
3318
+ "maxRetries",
3319
+ "base_url",
3320
+ "baseUrl",
3321
+ "timeout"
3322
+ ]
3323
+ }
3324
+ }
3325
+ }