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