@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,1714 @@
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": "ListPaginatedFineTuningJobsResponse",
29
+ "kind": "struct",
30
+ "fields": [
31
+ {
32
+ "name": "data",
33
+ "type": {
34
+ "kind": "array",
35
+ "items": {
36
+ "kind": "ref",
37
+ "name": "FineTuningJob"
38
+ }
39
+ },
40
+ "required": true
41
+ },
42
+ {
43
+ "name": "has_more",
44
+ "type": {
45
+ "kind": "scalar",
46
+ "scalar": "boolean"
47
+ },
48
+ "required": true
49
+ },
50
+ {
51
+ "name": "object",
52
+ "type": {
53
+ "kind": "scalar",
54
+ "scalar": "string",
55
+ "const": "list"
56
+ },
57
+ "required": true
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "name": "FineTuningJob",
63
+ "kind": "struct",
64
+ "fields": [
65
+ {
66
+ "name": "id",
67
+ "type": {
68
+ "kind": "scalar",
69
+ "scalar": "string"
70
+ },
71
+ "required": true,
72
+ "description": "The object identifier, which can be referenced in the API endpoints."
73
+ },
74
+ {
75
+ "name": "created_at",
76
+ "type": {
77
+ "kind": "scalar",
78
+ "scalar": "integer",
79
+ "format": "unixtime"
80
+ },
81
+ "required": true,
82
+ "description": "The Unix timestamp (in seconds) for when the fine-tuning job was created."
83
+ },
84
+ {
85
+ "name": "error",
86
+ "type": {
87
+ "kind": "ref",
88
+ "name": "FineTuningJobError",
89
+ "nullable": true
90
+ },
91
+ "required": true
92
+ },
93
+ {
94
+ "name": "fine_tuned_model",
95
+ "type": {
96
+ "kind": "scalar",
97
+ "scalar": "string",
98
+ "nullable": true
99
+ },
100
+ "required": true
101
+ },
102
+ {
103
+ "name": "finished_at",
104
+ "type": {
105
+ "kind": "scalar",
106
+ "scalar": "integer",
107
+ "format": "unixtime",
108
+ "nullable": true
109
+ },
110
+ "required": true
111
+ },
112
+ {
113
+ "name": "hyperparameters",
114
+ "type": {
115
+ "kind": "ref",
116
+ "name": "FineTuningJobHyperparameters"
117
+ },
118
+ "required": true,
119
+ "description": "The hyperparameters used for the fine-tuning job. This value will only be returned when running `supervised` jobs."
120
+ },
121
+ {
122
+ "name": "model",
123
+ "type": {
124
+ "kind": "scalar",
125
+ "scalar": "string"
126
+ },
127
+ "required": true,
128
+ "description": "The base model that is being fine-tuned."
129
+ },
130
+ {
131
+ "name": "object",
132
+ "type": {
133
+ "kind": "scalar",
134
+ "scalar": "string",
135
+ "const": "fine_tuning.job"
136
+ },
137
+ "required": true,
138
+ "description": "The object type, which is always \"fine_tuning.job\"."
139
+ },
140
+ {
141
+ "name": "organization_id",
142
+ "type": {
143
+ "kind": "scalar",
144
+ "scalar": "string"
145
+ },
146
+ "required": true,
147
+ "description": "The organization that owns the fine-tuning job."
148
+ },
149
+ {
150
+ "name": "result_files",
151
+ "type": {
152
+ "kind": "array",
153
+ "items": {
154
+ "kind": "scalar",
155
+ "scalar": "string"
156
+ }
157
+ },
158
+ "required": true,
159
+ "description": "The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents)."
160
+ },
161
+ {
162
+ "name": "status",
163
+ "type": {
164
+ "kind": "ref",
165
+ "name": "FineTuningJobStatus"
166
+ },
167
+ "required": true,
168
+ "description": "The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`."
169
+ },
170
+ {
171
+ "name": "trained_tokens",
172
+ "type": {
173
+ "kind": "scalar",
174
+ "scalar": "integer",
175
+ "nullable": true
176
+ },
177
+ "required": true
178
+ },
179
+ {
180
+ "name": "training_file",
181
+ "type": {
182
+ "kind": "scalar",
183
+ "scalar": "string"
184
+ },
185
+ "required": true,
186
+ "description": "The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents)."
187
+ },
188
+ {
189
+ "name": "validation_file",
190
+ "type": {
191
+ "kind": "scalar",
192
+ "scalar": "string",
193
+ "nullable": true
194
+ },
195
+ "required": true
196
+ },
197
+ {
198
+ "name": "integrations",
199
+ "type": {
200
+ "kind": "array",
201
+ "items": {
202
+ "kind": "ref",
203
+ "name": "FineTuningIntegration"
204
+ },
205
+ "nullable": true
206
+ },
207
+ "required": false
208
+ },
209
+ {
210
+ "name": "seed",
211
+ "type": {
212
+ "kind": "scalar",
213
+ "scalar": "integer"
214
+ },
215
+ "required": true,
216
+ "description": "The seed used for the fine-tuning job."
217
+ },
218
+ {
219
+ "name": "estimated_finish",
220
+ "type": {
221
+ "kind": "scalar",
222
+ "scalar": "integer",
223
+ "format": "unixtime",
224
+ "nullable": true
225
+ },
226
+ "required": false
227
+ },
228
+ {
229
+ "name": "method",
230
+ "type": {
231
+ "kind": "ref",
232
+ "name": "FineTuneMethod"
233
+ },
234
+ "required": false
235
+ },
236
+ {
237
+ "name": "metadata",
238
+ "type": {
239
+ "kind": "ref",
240
+ "name": "Metadata"
241
+ },
242
+ "required": false
243
+ }
244
+ ],
245
+ "description": "The `fine_tuning.job` object represents a fine-tuning job that has been created through the API.\n"
246
+ },
247
+ {
248
+ "name": "FineTuningJobError",
249
+ "kind": "struct",
250
+ "fields": [
251
+ {
252
+ "name": "code",
253
+ "type": {
254
+ "kind": "scalar",
255
+ "scalar": "string"
256
+ },
257
+ "required": true,
258
+ "description": "A machine-readable error code."
259
+ },
260
+ {
261
+ "name": "message",
262
+ "type": {
263
+ "kind": "scalar",
264
+ "scalar": "string"
265
+ },
266
+ "required": true,
267
+ "description": "A human-readable error message."
268
+ },
269
+ {
270
+ "name": "param",
271
+ "type": {
272
+ "kind": "scalar",
273
+ "scalar": "string",
274
+ "nullable": true
275
+ },
276
+ "required": true
277
+ }
278
+ ],
279
+ "description": "For fine-tuning jobs that have `failed`, this will contain more information on the cause of the failure."
280
+ },
281
+ {
282
+ "name": "FineTuningJobHyperparameters",
283
+ "kind": "struct",
284
+ "fields": [
285
+ {
286
+ "name": "batch_size",
287
+ "type": {
288
+ "kind": "ref",
289
+ "name": "FineTuningJobHyperparametersBatchSize",
290
+ "nullable": true
291
+ },
292
+ "required": false
293
+ },
294
+ {
295
+ "name": "learning_rate_multiplier",
296
+ "type": {
297
+ "kind": "ref",
298
+ "name": "FineTuningJobHyperparametersLearningRateMultiplier"
299
+ },
300
+ "required": false,
301
+ "default": "auto",
302
+ "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid\noverfitting.\n"
303
+ },
304
+ {
305
+ "name": "n_epochs",
306
+ "type": {
307
+ "kind": "ref",
308
+ "name": "FineTuningJobHyperparametersBatchSize"
309
+ },
310
+ "required": false,
311
+ "default": "auto",
312
+ "description": "The number of epochs to train the model for. An epoch refers to one full cycle\nthrough the training dataset.\n"
313
+ }
314
+ ],
315
+ "description": "The hyperparameters used for the fine-tuning job. This value will only be returned when running `supervised` jobs."
316
+ },
317
+ {
318
+ "name": "FineTuningJobHyperparametersBatchSize",
319
+ "kind": "union",
320
+ "semantics": "oneOf",
321
+ "variants": [
322
+ {
323
+ "kind": "scalar",
324
+ "scalar": "string",
325
+ "const": "auto"
326
+ },
327
+ {
328
+ "kind": "scalar",
329
+ "scalar": "integer"
330
+ }
331
+ ],
332
+ "description": "Number of examples in each batch. A larger batch size means that model parameters\nare updated less frequently, but with lower variance.\n"
333
+ },
334
+ {
335
+ "name": "FineTuningJobHyperparametersLearningRateMultiplier",
336
+ "kind": "union",
337
+ "semantics": "oneOf",
338
+ "variants": [
339
+ {
340
+ "kind": "scalar",
341
+ "scalar": "string",
342
+ "const": "auto"
343
+ },
344
+ {
345
+ "kind": "scalar",
346
+ "scalar": "number"
347
+ }
348
+ ],
349
+ "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid\noverfitting.\n"
350
+ },
351
+ {
352
+ "name": "FineTuningJobStatus",
353
+ "kind": "enum",
354
+ "base": "string",
355
+ "values": [
356
+ {
357
+ "value": "validating_files"
358
+ },
359
+ {
360
+ "value": "queued"
361
+ },
362
+ {
363
+ "value": "running"
364
+ },
365
+ {
366
+ "value": "succeeded"
367
+ },
368
+ {
369
+ "value": "failed"
370
+ },
371
+ {
372
+ "value": "cancelled"
373
+ }
374
+ ],
375
+ "description": "The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`."
376
+ },
377
+ {
378
+ "name": "FineTuningIntegration",
379
+ "kind": "struct",
380
+ "fields": [
381
+ {
382
+ "name": "type",
383
+ "type": {
384
+ "kind": "scalar",
385
+ "scalar": "string",
386
+ "const": "wandb"
387
+ },
388
+ "required": true,
389
+ "description": "The type of the integration being enabled for the fine-tuning job"
390
+ },
391
+ {
392
+ "name": "wandb",
393
+ "type": {
394
+ "kind": "ref",
395
+ "name": "FineTuningIntegrationWandb"
396
+ },
397
+ "required": true,
398
+ "description": "The settings for your integration with Weights and Biases. This payload specifies the project that\nmetrics will be sent to. Optionally, you can set an explicit display name for your run, add tags\nto your run, and set a default entity (team, username, etc) to be associated with your run.\n"
399
+ }
400
+ ]
401
+ },
402
+ {
403
+ "name": "FineTuningIntegrationWandb",
404
+ "kind": "struct",
405
+ "fields": [
406
+ {
407
+ "name": "project",
408
+ "type": {
409
+ "kind": "scalar",
410
+ "scalar": "string"
411
+ },
412
+ "required": true,
413
+ "description": "The name of the project that the new run will be created under.\n"
414
+ },
415
+ {
416
+ "name": "name",
417
+ "type": {
418
+ "kind": "scalar",
419
+ "scalar": "string",
420
+ "nullable": true
421
+ },
422
+ "required": false
423
+ },
424
+ {
425
+ "name": "entity",
426
+ "type": {
427
+ "kind": "scalar",
428
+ "scalar": "string",
429
+ "nullable": true
430
+ },
431
+ "required": false
432
+ },
433
+ {
434
+ "name": "tags",
435
+ "type": {
436
+ "kind": "array",
437
+ "items": {
438
+ "kind": "scalar",
439
+ "scalar": "string"
440
+ }
441
+ },
442
+ "required": false,
443
+ "description": "A list of tags to be attached to the newly created run. These tags are passed through directly to WandB. Some\ndefault tags are generated by OpenAI: \"openai/finetune\", \"openai/{base-model}\", \"openai/{ftjob-abcdef}\".\n"
444
+ }
445
+ ],
446
+ "description": "The settings for your integration with Weights and Biases. This payload specifies the project that\nmetrics will be sent to. Optionally, you can set an explicit display name for your run, add tags\nto your run, and set a default entity (team, username, etc) to be associated with your run.\n"
447
+ },
448
+ {
449
+ "name": "FineTuneMethod",
450
+ "kind": "struct",
451
+ "fields": [
452
+ {
453
+ "name": "type",
454
+ "type": {
455
+ "kind": "ref",
456
+ "name": "FineTuneMethodType"
457
+ },
458
+ "required": true,
459
+ "description": "The type of method. Is either `supervised`, `dpo`, or `reinforcement`."
460
+ },
461
+ {
462
+ "name": "supervised",
463
+ "type": {
464
+ "kind": "ref",
465
+ "name": "FineTuneSupervisedMethod"
466
+ },
467
+ "required": false
468
+ },
469
+ {
470
+ "name": "dpo",
471
+ "type": {
472
+ "kind": "ref",
473
+ "name": "FineTuneDpoMethod"
474
+ },
475
+ "required": false
476
+ },
477
+ {
478
+ "name": "reinforcement",
479
+ "type": {
480
+ "kind": "ref",
481
+ "name": "FineTuneReinforcementMethod"
482
+ },
483
+ "required": false
484
+ }
485
+ ],
486
+ "description": "The method used for fine-tuning."
487
+ },
488
+ {
489
+ "name": "FineTuneMethodType",
490
+ "kind": "enum",
491
+ "base": "string",
492
+ "values": [
493
+ {
494
+ "value": "supervised"
495
+ },
496
+ {
497
+ "value": "dpo"
498
+ },
499
+ {
500
+ "value": "reinforcement"
501
+ }
502
+ ],
503
+ "description": "The type of method. Is either `supervised`, `dpo`, or `reinforcement`."
504
+ },
505
+ {
506
+ "name": "FineTuneSupervisedMethod",
507
+ "kind": "struct",
508
+ "fields": [
509
+ {
510
+ "name": "hyperparameters",
511
+ "type": {
512
+ "kind": "ref",
513
+ "name": "FineTuneSupervisedHyperparameters"
514
+ },
515
+ "required": false
516
+ }
517
+ ],
518
+ "description": "Configuration for the supervised fine-tuning method."
519
+ },
520
+ {
521
+ "name": "FineTuneSupervisedHyperparameters",
522
+ "kind": "struct",
523
+ "fields": [
524
+ {
525
+ "name": "batch_size",
526
+ "type": {
527
+ "kind": "ref",
528
+ "name": "FineTuningJobHyperparametersBatchSize"
529
+ },
530
+ "required": false,
531
+ "default": "auto",
532
+ "description": "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.\n"
533
+ },
534
+ {
535
+ "name": "learning_rate_multiplier",
536
+ "type": {
537
+ "kind": "ref",
538
+ "name": "FineTuningJobHyperparametersLearningRateMultiplier"
539
+ },
540
+ "required": false,
541
+ "default": "auto",
542
+ "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.\n"
543
+ },
544
+ {
545
+ "name": "n_epochs",
546
+ "type": {
547
+ "kind": "ref",
548
+ "name": "FineTuningJobHyperparametersBatchSize"
549
+ },
550
+ "required": false,
551
+ "default": "auto",
552
+ "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.\n"
553
+ }
554
+ ],
555
+ "description": "The hyperparameters used for the fine-tuning job."
556
+ },
557
+ {
558
+ "name": "FineTuneDpoMethod",
559
+ "kind": "struct",
560
+ "fields": [
561
+ {
562
+ "name": "hyperparameters",
563
+ "type": {
564
+ "kind": "ref",
565
+ "name": "FineTuneDpoHyperparameters"
566
+ },
567
+ "required": false
568
+ }
569
+ ],
570
+ "description": "Configuration for the DPO fine-tuning method."
571
+ },
572
+ {
573
+ "name": "FineTuneDpoHyperparameters",
574
+ "kind": "struct",
575
+ "fields": [
576
+ {
577
+ "name": "beta",
578
+ "type": {
579
+ "kind": "ref",
580
+ "name": "FineTuningJobHyperparametersLearningRateMultiplier"
581
+ },
582
+ "required": false,
583
+ "default": "auto",
584
+ "description": "The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model.\n"
585
+ },
586
+ {
587
+ "name": "batch_size",
588
+ "type": {
589
+ "kind": "ref",
590
+ "name": "FineTuningJobHyperparametersBatchSize"
591
+ },
592
+ "required": false,
593
+ "default": "auto",
594
+ "description": "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.\n"
595
+ },
596
+ {
597
+ "name": "learning_rate_multiplier",
598
+ "type": {
599
+ "kind": "ref",
600
+ "name": "FineTuningJobHyperparametersLearningRateMultiplier"
601
+ },
602
+ "required": false,
603
+ "default": "auto",
604
+ "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.\n"
605
+ },
606
+ {
607
+ "name": "n_epochs",
608
+ "type": {
609
+ "kind": "ref",
610
+ "name": "FineTuningJobHyperparametersBatchSize"
611
+ },
612
+ "required": false,
613
+ "default": "auto",
614
+ "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.\n"
615
+ }
616
+ ],
617
+ "description": "The hyperparameters used for the DPO fine-tuning job."
618
+ },
619
+ {
620
+ "name": "FineTuneReinforcementMethod",
621
+ "kind": "struct",
622
+ "fields": [
623
+ {
624
+ "name": "grader",
625
+ "type": {
626
+ "kind": "ref",
627
+ "name": "FineTuneReinforcementMethodGrader"
628
+ },
629
+ "required": true,
630
+ "description": "The grader used for the fine-tuning job."
631
+ },
632
+ {
633
+ "name": "hyperparameters",
634
+ "type": {
635
+ "kind": "ref",
636
+ "name": "FineTuneReinforcementHyperparameters"
637
+ },
638
+ "required": false
639
+ }
640
+ ],
641
+ "description": "Configuration for the reinforcement fine-tuning method."
642
+ },
643
+ {
644
+ "name": "FineTuneReinforcementMethodGrader",
645
+ "kind": "union",
646
+ "semantics": "oneOf",
647
+ "variants": [
648
+ {
649
+ "kind": "ref",
650
+ "name": "GraderStringCheck"
651
+ },
652
+ {
653
+ "kind": "ref",
654
+ "name": "GraderTextSimilarity"
655
+ },
656
+ {
657
+ "kind": "ref",
658
+ "name": "GraderPython"
659
+ },
660
+ {
661
+ "kind": "ref",
662
+ "name": "GraderScoreModel"
663
+ },
664
+ {
665
+ "kind": "ref",
666
+ "name": "GraderMulti"
667
+ }
668
+ ],
669
+ "description": "The grader used for the fine-tuning job."
670
+ },
671
+ {
672
+ "name": "GraderStringCheck",
673
+ "kind": "struct",
674
+ "fields": [
675
+ {
676
+ "name": "type",
677
+ "type": {
678
+ "kind": "scalar",
679
+ "scalar": "string",
680
+ "const": "string_check"
681
+ },
682
+ "required": true,
683
+ "description": "The object type, which is always `string_check`."
684
+ },
685
+ {
686
+ "name": "name",
687
+ "type": {
688
+ "kind": "scalar",
689
+ "scalar": "string"
690
+ },
691
+ "required": true,
692
+ "description": "The name of the grader."
693
+ },
694
+ {
695
+ "name": "input",
696
+ "type": {
697
+ "kind": "scalar",
698
+ "scalar": "string"
699
+ },
700
+ "required": true,
701
+ "description": "The input text. This may include template strings."
702
+ },
703
+ {
704
+ "name": "reference",
705
+ "type": {
706
+ "kind": "scalar",
707
+ "scalar": "string"
708
+ },
709
+ "required": true,
710
+ "description": "The reference text. This may include template strings."
711
+ },
712
+ {
713
+ "name": "operation",
714
+ "type": {
715
+ "kind": "ref",
716
+ "name": "GraderStringCheckOperation"
717
+ },
718
+ "required": true,
719
+ "description": "The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`."
720
+ }
721
+ ],
722
+ "description": "A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.\n"
723
+ },
724
+ {
725
+ "name": "GraderStringCheckOperation",
726
+ "kind": "enum",
727
+ "base": "string",
728
+ "values": [
729
+ {
730
+ "value": "eq"
731
+ },
732
+ {
733
+ "value": "ne"
734
+ },
735
+ {
736
+ "value": "like"
737
+ },
738
+ {
739
+ "value": "ilike"
740
+ }
741
+ ],
742
+ "description": "The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`."
743
+ },
744
+ {
745
+ "name": "GraderTextSimilarity",
746
+ "kind": "struct",
747
+ "fields": [
748
+ {
749
+ "name": "type",
750
+ "type": {
751
+ "kind": "scalar",
752
+ "scalar": "string",
753
+ "const": "text_similarity"
754
+ },
755
+ "required": true,
756
+ "default": "text_similarity",
757
+ "description": "The type of grader."
758
+ },
759
+ {
760
+ "name": "name",
761
+ "type": {
762
+ "kind": "scalar",
763
+ "scalar": "string"
764
+ },
765
+ "required": true,
766
+ "description": "The name of the grader."
767
+ },
768
+ {
769
+ "name": "input",
770
+ "type": {
771
+ "kind": "scalar",
772
+ "scalar": "string"
773
+ },
774
+ "required": true,
775
+ "description": "The text being graded."
776
+ },
777
+ {
778
+ "name": "reference",
779
+ "type": {
780
+ "kind": "scalar",
781
+ "scalar": "string"
782
+ },
783
+ "required": true,
784
+ "description": "The text being graded against."
785
+ },
786
+ {
787
+ "name": "evaluation_metric",
788
+ "type": {
789
+ "kind": "ref",
790
+ "name": "GraderTextSimilarityEvaluationMetric"
791
+ },
792
+ "required": true,
793
+ "description": "The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, \n`gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, \nor `rouge_l`.\n"
794
+ }
795
+ ],
796
+ "description": "A TextSimilarityGrader object which grades text based on similarity metrics.\n"
797
+ },
798
+ {
799
+ "name": "GraderTextSimilarityEvaluationMetric",
800
+ "kind": "enum",
801
+ "base": "string",
802
+ "values": [
803
+ {
804
+ "value": "cosine"
805
+ },
806
+ {
807
+ "value": "fuzzy_match"
808
+ },
809
+ {
810
+ "value": "bleu"
811
+ },
812
+ {
813
+ "value": "gleu"
814
+ },
815
+ {
816
+ "value": "meteor"
817
+ },
818
+ {
819
+ "value": "rouge_1"
820
+ },
821
+ {
822
+ "value": "rouge_2"
823
+ },
824
+ {
825
+ "value": "rouge_3"
826
+ },
827
+ {
828
+ "value": "rouge_4"
829
+ },
830
+ {
831
+ "value": "rouge_5"
832
+ },
833
+ {
834
+ "value": "rouge_l"
835
+ }
836
+ ],
837
+ "description": "The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, \n`gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, \nor `rouge_l`.\n"
838
+ },
839
+ {
840
+ "name": "GraderPython",
841
+ "kind": "struct",
842
+ "fields": [
843
+ {
844
+ "name": "type",
845
+ "type": {
846
+ "kind": "scalar",
847
+ "scalar": "string",
848
+ "const": "python"
849
+ },
850
+ "required": true,
851
+ "description": "The object type, which is always `python`."
852
+ },
853
+ {
854
+ "name": "name",
855
+ "type": {
856
+ "kind": "scalar",
857
+ "scalar": "string"
858
+ },
859
+ "required": true,
860
+ "description": "The name of the grader."
861
+ },
862
+ {
863
+ "name": "source",
864
+ "type": {
865
+ "kind": "scalar",
866
+ "scalar": "string"
867
+ },
868
+ "required": true,
869
+ "description": "The source code of the python script."
870
+ },
871
+ {
872
+ "name": "image_tag",
873
+ "type": {
874
+ "kind": "scalar",
875
+ "scalar": "string"
876
+ },
877
+ "required": false,
878
+ "description": "The image tag to use for the python script."
879
+ }
880
+ ],
881
+ "description": "A PythonGrader object that runs a python script on the input.\n"
882
+ },
883
+ {
884
+ "name": "GraderScoreModel",
885
+ "kind": "struct",
886
+ "fields": [
887
+ {
888
+ "name": "type",
889
+ "type": {
890
+ "kind": "scalar",
891
+ "scalar": "string",
892
+ "const": "score_model"
893
+ },
894
+ "required": true,
895
+ "description": "The object type, which is always `score_model`."
896
+ },
897
+ {
898
+ "name": "name",
899
+ "type": {
900
+ "kind": "scalar",
901
+ "scalar": "string"
902
+ },
903
+ "required": true,
904
+ "description": "The name of the grader."
905
+ },
906
+ {
907
+ "name": "model",
908
+ "type": {
909
+ "kind": "scalar",
910
+ "scalar": "string"
911
+ },
912
+ "required": true,
913
+ "description": "The model to use for the evaluation."
914
+ },
915
+ {
916
+ "name": "sampling_params",
917
+ "type": {
918
+ "kind": "ref",
919
+ "name": "GraderScoreModelSamplingParams"
920
+ },
921
+ "required": false,
922
+ "description": "The sampling parameters for the model."
923
+ },
924
+ {
925
+ "name": "input",
926
+ "type": {
927
+ "kind": "array",
928
+ "items": {
929
+ "kind": "ref",
930
+ "name": "EvalItem"
931
+ }
932
+ },
933
+ "required": true,
934
+ "description": "The input messages evaluated by the grader. Supports text, output text, input image, and input audio content blocks, and may include template strings.\n"
935
+ },
936
+ {
937
+ "name": "range",
938
+ "type": {
939
+ "kind": "array",
940
+ "items": {
941
+ "kind": "scalar",
942
+ "scalar": "number"
943
+ }
944
+ },
945
+ "required": false,
946
+ "description": "The range of the score. Defaults to `[0, 1]`."
947
+ }
948
+ ],
949
+ "description": "A ScoreModelGrader object that uses a model to assign a score to the input.\n"
950
+ },
951
+ {
952
+ "name": "GraderScoreModelSamplingParams",
953
+ "kind": "struct",
954
+ "fields": [
955
+ {
956
+ "name": "seed",
957
+ "type": {
958
+ "kind": "scalar",
959
+ "scalar": "integer",
960
+ "nullable": true
961
+ },
962
+ "required": false
963
+ },
964
+ {
965
+ "name": "top_p",
966
+ "type": {
967
+ "kind": "scalar",
968
+ "scalar": "number",
969
+ "nullable": true
970
+ },
971
+ "required": false
972
+ },
973
+ {
974
+ "name": "temperature",
975
+ "type": {
976
+ "kind": "scalar",
977
+ "scalar": "number",
978
+ "nullable": true
979
+ },
980
+ "required": false
981
+ },
982
+ {
983
+ "name": "max_completions_tokens",
984
+ "type": {
985
+ "kind": "scalar",
986
+ "scalar": "integer",
987
+ "nullable": true
988
+ },
989
+ "required": false
990
+ },
991
+ {
992
+ "name": "reasoning_effort",
993
+ "type": {
994
+ "kind": "ref",
995
+ "name": "ReasoningEffort"
996
+ },
997
+ "required": false
998
+ }
999
+ ],
1000
+ "description": "The sampling parameters for the model."
1001
+ },
1002
+ {
1003
+ "name": "ReasoningEffort",
1004
+ "kind": "enum",
1005
+ "base": "string",
1006
+ "values": [
1007
+ {
1008
+ "value": "none"
1009
+ },
1010
+ {
1011
+ "value": "minimal"
1012
+ },
1013
+ {
1014
+ "value": "low"
1015
+ },
1016
+ {
1017
+ "value": "medium"
1018
+ },
1019
+ {
1020
+ "value": "high"
1021
+ },
1022
+ {
1023
+ "value": "xhigh"
1024
+ }
1025
+ ],
1026
+ "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"
1027
+ },
1028
+ {
1029
+ "name": "EvalItem",
1030
+ "kind": "struct",
1031
+ "fields": [
1032
+ {
1033
+ "name": "role",
1034
+ "type": {
1035
+ "kind": "ref",
1036
+ "name": "EvalItemRole"
1037
+ },
1038
+ "required": true,
1039
+ "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n"
1040
+ },
1041
+ {
1042
+ "name": "content",
1043
+ "type": {
1044
+ "kind": "ref",
1045
+ "name": "EvalItemContent"
1046
+ },
1047
+ "required": true
1048
+ },
1049
+ {
1050
+ "name": "type",
1051
+ "type": {
1052
+ "kind": "scalar",
1053
+ "scalar": "string",
1054
+ "const": "message"
1055
+ },
1056
+ "required": false,
1057
+ "description": "The type of the message input. Always `message`.\n"
1058
+ }
1059
+ ],
1060
+ "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n"
1061
+ },
1062
+ {
1063
+ "name": "EvalItemRole",
1064
+ "kind": "enum",
1065
+ "base": "string",
1066
+ "values": [
1067
+ {
1068
+ "value": "user"
1069
+ },
1070
+ {
1071
+ "value": "assistant"
1072
+ },
1073
+ {
1074
+ "value": "system"
1075
+ },
1076
+ {
1077
+ "value": "developer"
1078
+ }
1079
+ ],
1080
+ "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n"
1081
+ },
1082
+ {
1083
+ "name": "EvalItemContent",
1084
+ "kind": "union",
1085
+ "semantics": "oneOf",
1086
+ "variants": [
1087
+ {
1088
+ "kind": "ref",
1089
+ "name": "EvalItemContentItem"
1090
+ },
1091
+ {
1092
+ "kind": "ref",
1093
+ "name": "EvalItemContentArray"
1094
+ }
1095
+ ],
1096
+ "description": "Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.\n"
1097
+ },
1098
+ {
1099
+ "name": "EvalItemContentItem",
1100
+ "kind": "union",
1101
+ "semantics": "oneOf",
1102
+ "variants": [
1103
+ {
1104
+ "kind": "ref",
1105
+ "name": "EvalItemContentText"
1106
+ },
1107
+ {
1108
+ "kind": "ref",
1109
+ "name": "InputTextContent"
1110
+ },
1111
+ {
1112
+ "kind": "ref",
1113
+ "name": "EvalItemContentOutputText"
1114
+ },
1115
+ {
1116
+ "kind": "ref",
1117
+ "name": "EvalItemInputImage"
1118
+ },
1119
+ {
1120
+ "kind": "ref",
1121
+ "name": "InputAudio"
1122
+ }
1123
+ ],
1124
+ "description": "A single content item: input text, output text, input image, or input audio.\n"
1125
+ },
1126
+ {
1127
+ "name": "EvalItemContentText",
1128
+ "kind": "alias",
1129
+ "of": {
1130
+ "kind": "scalar",
1131
+ "scalar": "string"
1132
+ }
1133
+ },
1134
+ {
1135
+ "name": "InputTextContent",
1136
+ "kind": "struct",
1137
+ "fields": [
1138
+ {
1139
+ "name": "type",
1140
+ "type": {
1141
+ "kind": "scalar",
1142
+ "scalar": "string",
1143
+ "const": "input_text"
1144
+ },
1145
+ "required": true,
1146
+ "default": "input_text",
1147
+ "description": "The type of the input item. Always `input_text`."
1148
+ },
1149
+ {
1150
+ "name": "text",
1151
+ "type": {
1152
+ "kind": "scalar",
1153
+ "scalar": "string"
1154
+ },
1155
+ "required": true,
1156
+ "description": "The text input to the model."
1157
+ }
1158
+ ],
1159
+ "description": "A text input to the model."
1160
+ },
1161
+ {
1162
+ "name": "EvalItemContentOutputText",
1163
+ "kind": "struct",
1164
+ "fields": [
1165
+ {
1166
+ "name": "type",
1167
+ "type": {
1168
+ "kind": "scalar",
1169
+ "scalar": "string",
1170
+ "const": "output_text"
1171
+ },
1172
+ "required": true,
1173
+ "description": "The type of the output text. Always `output_text`.\n"
1174
+ },
1175
+ {
1176
+ "name": "text",
1177
+ "type": {
1178
+ "kind": "scalar",
1179
+ "scalar": "string"
1180
+ },
1181
+ "required": true,
1182
+ "description": "The text output from the model.\n"
1183
+ }
1184
+ ],
1185
+ "description": "A text output from the model.\n"
1186
+ },
1187
+ {
1188
+ "name": "EvalItemInputImage",
1189
+ "kind": "struct",
1190
+ "fields": [
1191
+ {
1192
+ "name": "type",
1193
+ "type": {
1194
+ "kind": "scalar",
1195
+ "scalar": "string",
1196
+ "const": "input_image"
1197
+ },
1198
+ "required": true,
1199
+ "description": "The type of the image input. Always `input_image`.\n"
1200
+ },
1201
+ {
1202
+ "name": "image_url",
1203
+ "type": {
1204
+ "kind": "scalar",
1205
+ "scalar": "string",
1206
+ "format": "uri"
1207
+ },
1208
+ "required": true,
1209
+ "description": "The URL of the image input.\n"
1210
+ },
1211
+ {
1212
+ "name": "detail",
1213
+ "type": {
1214
+ "kind": "scalar",
1215
+ "scalar": "string"
1216
+ },
1217
+ "required": false,
1218
+ "description": "The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.\n"
1219
+ }
1220
+ ],
1221
+ "description": "An image input block used within EvalItem content arrays."
1222
+ },
1223
+ {
1224
+ "name": "InputAudio",
1225
+ "kind": "struct",
1226
+ "fields": [
1227
+ {
1228
+ "name": "type",
1229
+ "type": {
1230
+ "kind": "scalar",
1231
+ "scalar": "string",
1232
+ "const": "input_audio"
1233
+ },
1234
+ "required": true,
1235
+ "description": "The type of the input item. Always `input_audio`.\n"
1236
+ },
1237
+ {
1238
+ "name": "input_audio",
1239
+ "type": {
1240
+ "kind": "ref",
1241
+ "name": "InputAudioInputAudio"
1242
+ },
1243
+ "required": true
1244
+ }
1245
+ ],
1246
+ "description": "An audio input to the model.\n"
1247
+ },
1248
+ {
1249
+ "name": "InputAudioInputAudio",
1250
+ "kind": "struct",
1251
+ "fields": [
1252
+ {
1253
+ "name": "data",
1254
+ "type": {
1255
+ "kind": "scalar",
1256
+ "scalar": "string"
1257
+ },
1258
+ "required": true,
1259
+ "description": "Base64-encoded audio data.\n"
1260
+ },
1261
+ {
1262
+ "name": "format",
1263
+ "type": {
1264
+ "kind": "ref",
1265
+ "name": "InputAudioInputAudioFormat"
1266
+ },
1267
+ "required": true,
1268
+ "description": "The format of the audio data. Currently supported formats are `mp3` and\n`wav`.\n"
1269
+ }
1270
+ ]
1271
+ },
1272
+ {
1273
+ "name": "InputAudioInputAudioFormat",
1274
+ "kind": "enum",
1275
+ "base": "string",
1276
+ "values": [
1277
+ {
1278
+ "value": "mp3"
1279
+ },
1280
+ {
1281
+ "value": "wav"
1282
+ }
1283
+ ],
1284
+ "description": "The format of the audio data. Currently supported formats are `mp3` and\n`wav`.\n"
1285
+ },
1286
+ {
1287
+ "name": "EvalItemContentArray",
1288
+ "kind": "alias",
1289
+ "of": {
1290
+ "kind": "array",
1291
+ "items": {
1292
+ "kind": "ref",
1293
+ "name": "EvalItemContentItem"
1294
+ }
1295
+ }
1296
+ },
1297
+ {
1298
+ "name": "GraderMulti",
1299
+ "kind": "struct",
1300
+ "fields": [
1301
+ {
1302
+ "name": "type",
1303
+ "type": {
1304
+ "kind": "scalar",
1305
+ "scalar": "string",
1306
+ "const": "multi"
1307
+ },
1308
+ "required": true,
1309
+ "default": "multi",
1310
+ "description": "The object type, which is always `multi`."
1311
+ },
1312
+ {
1313
+ "name": "name",
1314
+ "type": {
1315
+ "kind": "scalar",
1316
+ "scalar": "string"
1317
+ },
1318
+ "required": true,
1319
+ "description": "The name of the grader."
1320
+ },
1321
+ {
1322
+ "name": "graders",
1323
+ "type": {
1324
+ "kind": "ref",
1325
+ "name": "GraderMultiGraders"
1326
+ },
1327
+ "required": true
1328
+ },
1329
+ {
1330
+ "name": "calculate_output",
1331
+ "type": {
1332
+ "kind": "scalar",
1333
+ "scalar": "string"
1334
+ },
1335
+ "required": true,
1336
+ "description": "A formula to calculate the output based on grader results."
1337
+ }
1338
+ ],
1339
+ "description": "A MultiGrader object combines the output of multiple graders to produce a single score."
1340
+ },
1341
+ {
1342
+ "name": "GraderMultiGraders",
1343
+ "kind": "union",
1344
+ "semantics": "oneOf",
1345
+ "variants": [
1346
+ {
1347
+ "kind": "ref",
1348
+ "name": "GraderStringCheck"
1349
+ },
1350
+ {
1351
+ "kind": "ref",
1352
+ "name": "GraderTextSimilarity"
1353
+ },
1354
+ {
1355
+ "kind": "ref",
1356
+ "name": "GraderPython"
1357
+ },
1358
+ {
1359
+ "kind": "ref",
1360
+ "name": "GraderScoreModel"
1361
+ },
1362
+ {
1363
+ "kind": "ref",
1364
+ "name": "GraderLabelModel"
1365
+ }
1366
+ ]
1367
+ },
1368
+ {
1369
+ "name": "GraderLabelModel",
1370
+ "kind": "struct",
1371
+ "fields": [
1372
+ {
1373
+ "name": "type",
1374
+ "type": {
1375
+ "kind": "scalar",
1376
+ "scalar": "string",
1377
+ "const": "label_model"
1378
+ },
1379
+ "required": true,
1380
+ "description": "The object type, which is always `label_model`."
1381
+ },
1382
+ {
1383
+ "name": "name",
1384
+ "type": {
1385
+ "kind": "scalar",
1386
+ "scalar": "string"
1387
+ },
1388
+ "required": true,
1389
+ "description": "The name of the grader."
1390
+ },
1391
+ {
1392
+ "name": "model",
1393
+ "type": {
1394
+ "kind": "scalar",
1395
+ "scalar": "string"
1396
+ },
1397
+ "required": true,
1398
+ "description": "The model to use for the evaluation. Must support structured outputs."
1399
+ },
1400
+ {
1401
+ "name": "input",
1402
+ "type": {
1403
+ "kind": "array",
1404
+ "items": {
1405
+ "kind": "ref",
1406
+ "name": "EvalItem"
1407
+ }
1408
+ },
1409
+ "required": true
1410
+ },
1411
+ {
1412
+ "name": "labels",
1413
+ "type": {
1414
+ "kind": "array",
1415
+ "items": {
1416
+ "kind": "scalar",
1417
+ "scalar": "string"
1418
+ }
1419
+ },
1420
+ "required": true,
1421
+ "description": "The labels to assign to each item in the evaluation."
1422
+ },
1423
+ {
1424
+ "name": "passing_labels",
1425
+ "type": {
1426
+ "kind": "array",
1427
+ "items": {
1428
+ "kind": "scalar",
1429
+ "scalar": "string"
1430
+ }
1431
+ },
1432
+ "required": true,
1433
+ "description": "The labels that indicate a passing result. Must be a subset of labels."
1434
+ }
1435
+ ],
1436
+ "description": "A LabelModelGrader object which uses a model to assign labels to each item\nin the evaluation.\n"
1437
+ },
1438
+ {
1439
+ "name": "FineTuneReinforcementHyperparameters",
1440
+ "kind": "struct",
1441
+ "fields": [
1442
+ {
1443
+ "name": "batch_size",
1444
+ "type": {
1445
+ "kind": "ref",
1446
+ "name": "FineTuningJobHyperparametersBatchSize"
1447
+ },
1448
+ "required": false,
1449
+ "default": "auto",
1450
+ "description": "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.\n"
1451
+ },
1452
+ {
1453
+ "name": "learning_rate_multiplier",
1454
+ "type": {
1455
+ "kind": "ref",
1456
+ "name": "FineTuningJobHyperparametersLearningRateMultiplier"
1457
+ },
1458
+ "required": false,
1459
+ "default": "auto",
1460
+ "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.\n"
1461
+ },
1462
+ {
1463
+ "name": "n_epochs",
1464
+ "type": {
1465
+ "kind": "ref",
1466
+ "name": "FineTuningJobHyperparametersBatchSize"
1467
+ },
1468
+ "required": false,
1469
+ "default": "auto",
1470
+ "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.\n"
1471
+ },
1472
+ {
1473
+ "name": "reasoning_effort",
1474
+ "type": {
1475
+ "kind": "ref",
1476
+ "name": "FineTuneReinforcementHyperparametersReasoningEffort"
1477
+ },
1478
+ "required": false,
1479
+ "default": "default",
1480
+ "description": "Level of reasoning effort.\n"
1481
+ },
1482
+ {
1483
+ "name": "compute_multiplier",
1484
+ "type": {
1485
+ "kind": "ref",
1486
+ "name": "FineTuningJobHyperparametersLearningRateMultiplier"
1487
+ },
1488
+ "required": false,
1489
+ "default": "auto",
1490
+ "description": "Multiplier on amount of compute used for exploring search space during training.\n"
1491
+ },
1492
+ {
1493
+ "name": "eval_interval",
1494
+ "type": {
1495
+ "kind": "ref",
1496
+ "name": "FineTuningJobHyperparametersBatchSize"
1497
+ },
1498
+ "required": false,
1499
+ "default": "auto",
1500
+ "description": "The number of training steps between evaluation runs.\n"
1501
+ },
1502
+ {
1503
+ "name": "eval_samples",
1504
+ "type": {
1505
+ "kind": "ref",
1506
+ "name": "FineTuningJobHyperparametersBatchSize"
1507
+ },
1508
+ "required": false,
1509
+ "default": "auto",
1510
+ "description": "Number of evaluation samples to generate per training step.\n"
1511
+ }
1512
+ ],
1513
+ "description": "The hyperparameters used for the reinforcement fine-tuning job."
1514
+ },
1515
+ {
1516
+ "name": "FineTuneReinforcementHyperparametersReasoningEffort",
1517
+ "kind": "enum",
1518
+ "base": "string",
1519
+ "values": [
1520
+ {
1521
+ "value": "default"
1522
+ },
1523
+ {
1524
+ "value": "low"
1525
+ },
1526
+ {
1527
+ "value": "medium"
1528
+ },
1529
+ {
1530
+ "value": "high"
1531
+ }
1532
+ ],
1533
+ "description": "Level of reasoning effort.\n"
1534
+ },
1535
+ {
1536
+ "name": "Metadata",
1537
+ "kind": "alias",
1538
+ "of": {
1539
+ "kind": "map",
1540
+ "values": {
1541
+ "kind": "scalar",
1542
+ "scalar": "string"
1543
+ },
1544
+ "nullable": true
1545
+ }
1546
+ }
1547
+ ],
1548
+ "resources": [
1549
+ {
1550
+ "name": "fine-tuning",
1551
+ "resources": [
1552
+ {
1553
+ "name": "jobs",
1554
+ "methods": [
1555
+ {
1556
+ "action": "list",
1557
+ "httpMethod": "get",
1558
+ "path": "/fine_tuning/jobs",
1559
+ "operationId": "listPaginatedFineTuningJobs",
1560
+ "description": "List your organization's fine-tuning jobs\n",
1561
+ "queryParams": [
1562
+ {
1563
+ "name": "after",
1564
+ "type": {
1565
+ "kind": "scalar",
1566
+ "scalar": "string"
1567
+ },
1568
+ "required": false,
1569
+ "description": "Identifier for the last job from the previous pagination request."
1570
+ },
1571
+ {
1572
+ "name": "limit",
1573
+ "type": {
1574
+ "kind": "scalar",
1575
+ "scalar": "integer"
1576
+ },
1577
+ "required": false,
1578
+ "description": "Number of fine-tuning jobs to retrieve.",
1579
+ "default": 20
1580
+ },
1581
+ {
1582
+ "name": "metadata",
1583
+ "type": {
1584
+ "kind": "map",
1585
+ "values": {
1586
+ "kind": "scalar",
1587
+ "scalar": "string"
1588
+ },
1589
+ "nullable": true
1590
+ },
1591
+ "required": false,
1592
+ "description": "Optional metadata filter. To filter, use the syntax `metadata[k]=v`. Alternatively, set `metadata=null` to indicate no metadata.\n",
1593
+ "explode": true,
1594
+ "style": "deepObject"
1595
+ }
1596
+ ],
1597
+ "responses": [
1598
+ {
1599
+ "status": "200",
1600
+ "description": "OK",
1601
+ "contentType": "application/json",
1602
+ "type": {
1603
+ "kind": "ref",
1604
+ "name": "ListPaginatedFineTuningJobsResponse"
1605
+ }
1606
+ }
1607
+ ],
1608
+ "primaryResponse": {
1609
+ "kind": "ref",
1610
+ "name": "ListPaginatedFineTuningJobsResponse"
1611
+ },
1612
+ "pagination": {
1613
+ "style": "cursor",
1614
+ "itemsField": "data",
1615
+ "nextField": "has_more",
1616
+ "itemType": {
1617
+ "kind": "ref",
1618
+ "name": "FineTuningJob"
1619
+ },
1620
+ "cursorParam": "after",
1621
+ "limitParam": "limit"
1622
+ }
1623
+ }
1624
+ ]
1625
+ }
1626
+ ]
1627
+ }
1628
+ ],
1629
+ "sdk": {
1630
+ "retry": {
1631
+ "maxRetries": 2,
1632
+ "retryableStatusCodes": [
1633
+ 408,
1634
+ 429,
1635
+ 500,
1636
+ 502,
1637
+ 503,
1638
+ 504
1639
+ ],
1640
+ "retryConnectionErrors": true,
1641
+ "honorRetryAfterHeader": true,
1642
+ "backoff": {
1643
+ "initialDelayMs": 500,
1644
+ "maxDelayMs": 8000,
1645
+ "multiplier": 2,
1646
+ "jitter": 0.25
1647
+ }
1648
+ },
1649
+ "timeout": {
1650
+ "defaultTimeoutMs": 60000
1651
+ },
1652
+ "errors": {
1653
+ "statusCodeMap": {
1654
+ "400": "BadRequest",
1655
+ "401": "Unauthorized",
1656
+ "403": "PermissionDenied",
1657
+ "404": "NotFound",
1658
+ "409": "Conflict",
1659
+ "422": "UnprocessableEntity",
1660
+ "429": "RateLimited"
1661
+ },
1662
+ "clientErrorKind": "API",
1663
+ "serverErrorKind": "Internal"
1664
+ },
1665
+ "userAgent": {
1666
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
1667
+ "includeRuntimeVersion": false,
1668
+ "aiAgentEnvVars": {
1669
+ "CLAUDE_CODE": "claude-code",
1670
+ "CURSOR_AGENT": "cursor",
1671
+ "CLINE_ACTIVE": "cline",
1672
+ "WINDSURF_ACTIVE": "windsurf",
1673
+ "COPILOT_AGENT": "copilot"
1674
+ }
1675
+ },
1676
+ "telemetry": {
1677
+ "requestIdHeader": "X-Request-ID",
1678
+ "headerName": "X-Client-Telemetry",
1679
+ "enabledByDefault": false
1680
+ },
1681
+ "logging": {
1682
+ "events": [
1683
+ "request.start",
1684
+ "request.success",
1685
+ "request.retry",
1686
+ "request.rate_limited",
1687
+ "request.error",
1688
+ "request.connection_error"
1689
+ ]
1690
+ },
1691
+ "idempotency": {
1692
+ "headerName": "Idempotency-Key",
1693
+ "autoGenerateForPost": true
1694
+ },
1695
+ "pagination": {
1696
+ "autoPageDelayMs": 0
1697
+ },
1698
+ "requestGuard": {
1699
+ "optionKeys": [
1700
+ "api_key",
1701
+ "apiKey",
1702
+ "idempotency_key",
1703
+ "idempotencyKey",
1704
+ "extra_headers",
1705
+ "extraHeaders",
1706
+ "max_retries",
1707
+ "maxRetries",
1708
+ "base_url",
1709
+ "baseUrl",
1710
+ "timeout"
1711
+ ]
1712
+ }
1713
+ }
1714
+ }