openapi_openai 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1607) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +94 -25
  3. data/README.md +599 -53
  4. data/bin/byebug +1 -12
  5. data/bin/coderay +1 -12
  6. data/bin/htmldiff +1 -12
  7. data/bin/ldiff +1 -12
  8. data/bin/pry +1 -12
  9. data/bin/racc +1 -12
  10. data/bin/rake +1 -12
  11. data/bin/rspec +1 -12
  12. data/bin/rubocop +1 -12
  13. data/bin/ruby-parse +1 -12
  14. data/bin/ruby-rewrite +1 -12
  15. data/docs/AdminApiKey.md +30 -0
  16. data/docs/AdminApiKeyOwner.md +26 -0
  17. data/docs/AdminApiKeysCreateRequest.md +18 -0
  18. data/docs/AdminApiKeysDelete200Response.md +22 -0
  19. data/docs/ApiKeyList.md +26 -0
  20. data/docs/ArrayOfContentPartsInner.md +51 -0
  21. data/docs/AssistantObject.md +42 -0
  22. data/docs/AssistantObjectToolResources.md +20 -0
  23. data/docs/AssistantObjectToolResourcesCodeInterpreter.md +18 -0
  24. data/docs/AssistantObjectToolResourcesFileSearch.md +18 -0
  25. data/docs/AssistantObjectToolsInner.md +51 -0
  26. data/docs/AssistantStreamEvent.md +57 -0
  27. data/docs/AssistantToolsCode.md +18 -0
  28. data/docs/AssistantToolsFileSearch.md +20 -0
  29. data/docs/AssistantToolsFileSearchFileSearch.md +20 -0
  30. data/docs/AssistantToolsFileSearchTypeOnly.md +18 -0
  31. data/docs/AssistantToolsFunction.md +20 -0
  32. data/docs/AssistantsApi.md +1657 -0
  33. data/docs/AssistantsApiResponseFormatOption.md +53 -0
  34. data/docs/AssistantsApiToolChoiceOption.md +49 -0
  35. data/docs/AssistantsNamedToolChoice.md +20 -0
  36. data/docs/{CreateChatCompletionRequestFunctionCallOneOf.md → AssistantsNamedToolChoiceFunction.md} +2 -2
  37. data/docs/AudioApi.md +235 -0
  38. data/docs/AudioResponseFormat.md +15 -0
  39. data/docs/AuditLog.md +66 -0
  40. data/docs/AuditLogActor.md +22 -0
  41. data/docs/AuditLogActorApiKey.md +24 -0
  42. data/docs/AuditLogActorServiceAccount.md +18 -0
  43. data/docs/AuditLogActorSession.md +20 -0
  44. data/docs/AuditLogActorUser.md +20 -0
  45. data/docs/AuditLogApiKeyCreated.md +20 -0
  46. data/docs/AuditLogApiKeyCreatedData.md +18 -0
  47. data/docs/AuditLogApiKeyDeleted.md +18 -0
  48. data/docs/AuditLogApiKeyUpdated.md +20 -0
  49. data/docs/AuditLogApiKeyUpdatedChangesRequested.md +18 -0
  50. data/docs/AuditLogEventType.md +15 -0
  51. data/docs/AuditLogInviteAccepted.md +18 -0
  52. data/docs/AuditLogInviteSent.md +20 -0
  53. data/docs/AuditLogInviteSentData.md +20 -0
  54. data/docs/AuditLogLoginFailed.md +20 -0
  55. data/docs/AuditLogOrganizationUpdated.md +20 -0
  56. data/docs/AuditLogOrganizationUpdatedChangesRequested.md +24 -0
  57. data/docs/AuditLogOrganizationUpdatedChangesRequestedSettings.md +20 -0
  58. data/docs/AuditLogProject.md +20 -0
  59. data/docs/AuditLogProjectArchived.md +18 -0
  60. data/docs/AuditLogProjectCreated.md +20 -0
  61. data/docs/AuditLogProjectCreatedData.md +20 -0
  62. data/docs/AuditLogProjectUpdated.md +20 -0
  63. data/docs/AuditLogProjectUpdatedChangesRequested.md +18 -0
  64. data/docs/AuditLogRateLimitDeleted.md +18 -0
  65. data/docs/AuditLogRateLimitUpdated.md +20 -0
  66. data/docs/AuditLogRateLimitUpdatedChangesRequested.md +28 -0
  67. data/docs/AuditLogServiceAccountCreated.md +20 -0
  68. data/docs/AuditLogServiceAccountCreatedData.md +18 -0
  69. data/docs/AuditLogServiceAccountDeleted.md +18 -0
  70. data/docs/AuditLogServiceAccountUpdated.md +20 -0
  71. data/docs/AuditLogServiceAccountUpdatedChangesRequested.md +18 -0
  72. data/docs/AuditLogUserAdded.md +20 -0
  73. data/docs/AuditLogUserAddedData.md +18 -0
  74. data/docs/AuditLogUserDeleted.md +18 -0
  75. data/docs/AuditLogUserUpdated.md +20 -0
  76. data/docs/AuditLogUserUpdatedChangesRequested.md +18 -0
  77. data/docs/AuditLogsApi.md +93 -0
  78. data/docs/AutoChunkingStrategy.md +18 -0
  79. data/docs/AutoChunkingStrategyRequestParam.md +18 -0
  80. data/docs/Batch.md +56 -0
  81. data/docs/BatchApi.md +283 -0
  82. data/docs/BatchErrors.md +20 -0
  83. data/docs/BatchErrorsDataInner.md +24 -0
  84. data/docs/BatchRequestCounts.md +22 -0
  85. data/docs/BatchRequestInput.md +22 -0
  86. data/docs/BatchRequestOutput.md +24 -0
  87. data/docs/BatchRequestOutputError.md +20 -0
  88. data/docs/BatchRequestOutputResponse.md +22 -0
  89. data/docs/ChatApi.md +75 -0
  90. data/docs/ChatCompletionFunctionCallOption.md +18 -0
  91. data/docs/ChatCompletionFunctions.md +3 -3
  92. data/docs/ChatCompletionMessageToolCall.md +22 -0
  93. data/docs/ChatCompletionMessageToolCallChunk.md +24 -0
  94. data/docs/{ChatCompletionRequestMessageFunctionCall.md → ChatCompletionMessageToolCallChunkFunction.md} +2 -2
  95. data/docs/ChatCompletionMessageToolCallFunction.md +20 -0
  96. data/docs/ChatCompletionNamedToolChoice.md +20 -0
  97. data/docs/ChatCompletionRequestAssistantMessage.md +30 -0
  98. data/docs/ChatCompletionRequestAssistantMessageAudio.md +18 -0
  99. data/docs/ChatCompletionRequestAssistantMessageContent.md +49 -0
  100. data/docs/ChatCompletionRequestAssistantMessageContentPart.md +49 -0
  101. data/docs/ChatCompletionRequestAssistantMessageFunctionCall.md +20 -0
  102. data/docs/ChatCompletionRequestDeveloperMessage.md +22 -0
  103. data/docs/ChatCompletionRequestDeveloperMessageContent.md +49 -0
  104. data/docs/ChatCompletionRequestFunctionMessage.md +22 -0
  105. data/docs/ChatCompletionRequestMessage.md +47 -14
  106. data/docs/ChatCompletionRequestMessageContentPartAudio.md +20 -0
  107. data/docs/ChatCompletionRequestMessageContentPartAudioInputAudio.md +20 -0
  108. data/docs/ChatCompletionRequestMessageContentPartImage.md +20 -0
  109. data/docs/ChatCompletionRequestMessageContentPartImageImageUrl.md +20 -0
  110. data/docs/ChatCompletionRequestMessageContentPartRefusal.md +20 -0
  111. data/docs/ChatCompletionRequestMessageContentPartText.md +20 -0
  112. data/docs/ChatCompletionRequestSystemMessage.md +22 -0
  113. data/docs/ChatCompletionRequestSystemMessageContent.md +49 -0
  114. data/docs/ChatCompletionRequestToolMessage.md +22 -0
  115. data/docs/ChatCompletionRequestToolMessageContent.md +49 -0
  116. data/docs/ChatCompletionRequestUserMessage.md +22 -0
  117. data/docs/ChatCompletionRequestUserMessageContent.md +49 -0
  118. data/docs/ChatCompletionRequestUserMessageContentPart.md +51 -0
  119. data/docs/ChatCompletionResponseMessage.md +10 -4
  120. data/docs/ChatCompletionResponseMessageAudio.md +24 -0
  121. data/docs/ChatCompletionResponseMessageFunctionCall.md +20 -0
  122. data/docs/ChatCompletionRole.md +15 -0
  123. data/docs/ChatCompletionStreamOptions.md +18 -0
  124. data/docs/ChatCompletionStreamResponseDelta.md +8 -4
  125. data/docs/ChatCompletionStreamResponseDeltaFunctionCall.md +20 -0
  126. data/docs/ChatCompletionTokenLogprob.md +24 -0
  127. data/docs/ChatCompletionTokenLogprobTopLogprobsInner.md +22 -0
  128. data/docs/ChatCompletionTool.md +20 -0
  129. data/docs/ChatCompletionToolChoiceOption.md +49 -0
  130. data/docs/ChunkingStrategyRequestParam.md +49 -0
  131. data/docs/CompleteUploadRequest.md +20 -0
  132. data/docs/CompletionUsage.md +26 -0
  133. data/docs/CompletionUsageCompletionTokensDetails.md +24 -0
  134. data/docs/CompletionUsagePromptTokensDetails.md +20 -0
  135. data/docs/CompletionsApi.md +75 -0
  136. data/docs/CostsResult.md +24 -0
  137. data/docs/CostsResultAmount.md +20 -0
  138. data/docs/CreateAssistantRequest.md +36 -0
  139. data/docs/CreateAssistantRequestModel.md +15 -0
  140. data/docs/CreateAssistantRequestToolResources.md +20 -0
  141. data/docs/CreateAssistantRequestToolResourcesCodeInterpreter.md +18 -0
  142. data/docs/CreateAssistantRequestToolResourcesFileSearch.md +20 -0
  143. data/docs/CreateAssistantRequestToolResourcesFileSearchVectorStoresInner.md +22 -0
  144. data/docs/CreateAssistantRequestToolResourcesFileSearchVectorStoresInnerChunkingStrategy.md +49 -0
  145. data/docs/CreateBatchRequest.md +24 -0
  146. data/docs/CreateChatCompletionFunctionResponse.md +30 -0
  147. data/docs/CreateChatCompletionFunctionResponseChoicesInner.md +22 -0
  148. data/docs/CreateChatCompletionRequest.md +55 -23
  149. data/docs/CreateChatCompletionRequestAudio.md +20 -0
  150. data/docs/CreateChatCompletionRequestFunctionCall.md +3 -3
  151. data/docs/CreateChatCompletionRequestModel.md +5 -37
  152. data/docs/CreateChatCompletionRequestResponseFormat.md +51 -0
  153. data/docs/CreateChatCompletionResponse.md +12 -8
  154. data/docs/CreateChatCompletionResponseChoicesInner.md +6 -4
  155. data/docs/CreateChatCompletionResponseChoicesInnerLogprobs.md +20 -0
  156. data/docs/CreateChatCompletionStreamResponse.md +13 -7
  157. data/docs/CreateChatCompletionStreamResponseChoicesInner.md +7 -5
  158. data/docs/CreateChatCompletionStreamResponseUsage.md +22 -0
  159. data/docs/CreateCompletionRequest.md +26 -22
  160. data/docs/CreateCompletionRequestModel.md +5 -37
  161. data/docs/CreateCompletionResponse.md +10 -8
  162. data/docs/CreateCompletionResponseChoicesInner.md +4 -4
  163. data/docs/CreateCompletionResponseChoicesInnerLogprobs.md +6 -6
  164. data/docs/CreateEmbeddingRequest.md +7 -3
  165. data/docs/CreateEmbeddingRequestModel.md +5 -37
  166. data/docs/CreateEmbeddingResponse.md +5 -5
  167. data/docs/CreateEmbeddingResponseUsage.md +2 -2
  168. data/docs/CreateFineTuningJobRequest.md +32 -0
  169. data/docs/CreateFineTuningJobRequestHyperparameters.md +22 -0
  170. data/docs/CreateFineTuningJobRequestHyperparametersBatchSize.md +49 -0
  171. data/docs/CreateFineTuningJobRequestHyperparametersLearningRateMultiplier.md +49 -0
  172. data/docs/CreateFineTuningJobRequestHyperparametersNEpochs.md +49 -0
  173. data/docs/CreateFineTuningJobRequestIntegrationsInner.md +20 -0
  174. data/docs/CreateFineTuningJobRequestIntegrationsInnerWandb.md +24 -0
  175. data/docs/CreateFineTuningJobRequestModel.md +15 -0
  176. data/docs/CreateImageEditRequestModel.md +15 -0
  177. data/docs/CreateImageRequest.md +12 -6
  178. data/docs/CreateImageRequestModel.md +15 -0
  179. data/docs/CreateMessageRequest.md +24 -0
  180. data/docs/CreateMessageRequestAttachmentsInner.md +20 -0
  181. data/docs/CreateMessageRequestAttachmentsInnerToolsInner.md +49 -0
  182. data/docs/CreateMessageRequestContent.md +49 -0
  183. data/docs/CreateModerationRequestInput.md +3 -1
  184. data/docs/CreateModerationRequestInputOneOfInner.md +49 -0
  185. data/docs/CreateModerationRequestInputOneOfInnerOneOf.md +20 -0
  186. data/docs/CreateModerationRequestInputOneOfInnerOneOf1.md +20 -0
  187. data/docs/CreateModerationRequestInputOneOfInnerOneOfImageUrl.md +18 -0
  188. data/docs/CreateModerationRequestModel.md +5 -37
  189. data/docs/CreateModerationResponse.md +3 -3
  190. data/docs/CreateModerationResponseResultsInner.md +4 -2
  191. data/docs/CreateModerationResponseResultsInnerCategories.md +19 -7
  192. data/docs/CreateModerationResponseResultsInnerCategoryAppliedInputTypes.md +42 -0
  193. data/docs/CreateModerationResponseResultsInnerCategoryScores.md +19 -7
  194. data/docs/CreateRunRequest.md +48 -0
  195. data/docs/CreateRunRequestModel.md +15 -0
  196. data/docs/CreateSpeechRequest.md +26 -0
  197. data/docs/CreateSpeechRequestModel.md +15 -0
  198. data/docs/CreateThreadAndRunRequest.md +48 -0
  199. data/docs/CreateThreadAndRunRequestToolResources.md +20 -0
  200. data/docs/CreateThreadAndRunRequestToolsInner.md +51 -0
  201. data/docs/CreateThreadRequest.md +22 -0
  202. data/docs/CreateThreadRequestToolResources.md +20 -0
  203. data/docs/CreateThreadRequestToolResourcesFileSearch.md +20 -0
  204. data/docs/CreateThreadRequestToolResourcesFileSearchVectorStoresInner.md +22 -0
  205. data/docs/CreateTranscription200Response.md +49 -0
  206. data/docs/CreateTranscriptionRequestModel.md +5 -37
  207. data/docs/CreateTranscriptionResponseJson.md +18 -0
  208. data/docs/CreateTranscriptionResponseVerboseJson.md +26 -0
  209. data/docs/CreateTranslation200Response.md +49 -0
  210. data/docs/{CreateTranscriptionResponse.md → CreateTranslationResponseJson.md} +2 -2
  211. data/docs/CreateTranslationResponseVerboseJson.md +24 -0
  212. data/docs/CreateUploadRequest.md +24 -0
  213. data/docs/CreateVectorStoreFileBatchRequest.md +20 -0
  214. data/docs/CreateVectorStoreFileRequest.md +20 -0
  215. data/docs/CreateVectorStoreRequest.md +26 -0
  216. data/docs/CreateVectorStoreRequestChunkingStrategy.md +49 -0
  217. data/docs/DefaultApi.md +293 -0
  218. data/docs/DefaultProjectErrorResponse.md +20 -0
  219. data/docs/DeleteAssistantResponse.md +22 -0
  220. data/docs/DeleteMessageResponse.md +22 -0
  221. data/docs/DeleteModelResponse.md +3 -3
  222. data/docs/DeleteThreadResponse.md +22 -0
  223. data/docs/DeleteVectorStoreFileResponse.md +22 -0
  224. data/docs/DeleteVectorStoreResponse.md +22 -0
  225. data/docs/DoneEvent.md +20 -0
  226. data/docs/Embedding.md +22 -0
  227. data/docs/EmbeddingsApi.md +75 -0
  228. data/docs/Error.md +4 -4
  229. data/docs/ErrorEvent.md +20 -0
  230. data/docs/FileSearchRankingOptions.md +20 -0
  231. data/docs/FilesApi.md +357 -0
  232. data/docs/FineTuneChatCompletionRequestAssistantMessage.md +32 -0
  233. data/docs/FineTuneChatRequestInput.md +24 -0
  234. data/docs/FineTuneChatRequestInputMessagesInner.md +55 -0
  235. data/docs/FineTuneCompletionRequestInput.md +20 -0
  236. data/docs/FineTuneDPOMethod.md +18 -0
  237. data/docs/FineTuneDPOMethodHyperparameters.md +24 -0
  238. data/docs/FineTuneDPOMethodHyperparametersBatchSize.md +49 -0
  239. data/docs/{CreateEditRequestModel.md → FineTuneDPOMethodHyperparametersBeta.md} +7 -5
  240. data/docs/FineTuneDPOMethodHyperparametersLearningRateMultiplier.md +49 -0
  241. data/docs/FineTuneDPOMethodHyperparametersNEpochs.md +49 -0
  242. data/docs/FineTuneMethod.md +22 -0
  243. data/docs/FineTunePreferenceRequestInput.md +22 -0
  244. data/docs/FineTunePreferenceRequestInputInput.md +22 -0
  245. data/docs/FineTunePreferenceRequestInputPreferredCompletionInner.md +47 -0
  246. data/docs/FineTuneSupervisedMethod.md +18 -0
  247. data/docs/FineTuneSupervisedMethodHyperparameters.md +22 -0
  248. data/docs/FineTuningApi.md +431 -0
  249. data/docs/FineTuningIntegration.md +20 -0
  250. data/docs/FineTuningJob.md +52 -0
  251. data/docs/FineTuningJobCheckpoint.md +30 -0
  252. data/docs/FineTuningJobCheckpointMetrics.md +30 -0
  253. data/docs/FineTuningJobError.md +22 -0
  254. data/docs/FineTuningJobEvent.md +30 -0
  255. data/docs/FineTuningJobHyperparameters.md +22 -0
  256. data/docs/FineTuningJobIntegrationsInner.md +47 -0
  257. data/docs/FunctionObject.md +24 -0
  258. data/docs/Image.md +22 -0
  259. data/docs/ImagesApi.md +239 -0
  260. data/docs/ImagesResponse.md +1 -1
  261. data/docs/Invite.md +34 -0
  262. data/docs/InviteDeleteResponse.md +22 -0
  263. data/docs/InviteListResponse.md +26 -0
  264. data/docs/InviteProjectsInner.md +20 -0
  265. data/docs/InviteRequest.md +22 -0
  266. data/docs/InviteRequestProjectsInner.md +20 -0
  267. data/docs/InvitesApi.md +283 -0
  268. data/docs/ListAssistantsResponse.md +26 -0
  269. data/docs/ListAuditLogsEffectiveAtParameter.md +24 -0
  270. data/docs/ListAuditLogsResponse.md +26 -0
  271. data/docs/ListBatchesResponse.md +26 -0
  272. data/docs/ListFilesResponse.md +8 -2
  273. data/docs/ListFineTuningJobCheckpointsResponse.md +26 -0
  274. data/docs/ListFineTuningJobEventsResponse.md +20 -0
  275. data/docs/ListMessagesResponse.md +26 -0
  276. data/docs/ListPaginatedFineTuningJobsResponse.md +22 -0
  277. data/docs/ListRunStepsResponse.md +26 -0
  278. data/docs/ListRunsResponse.md +26 -0
  279. data/docs/ListThreadsResponse.md +26 -0
  280. data/docs/ListVectorStoreFilesResponse.md +26 -0
  281. data/docs/ListVectorStoresResponse.md +26 -0
  282. data/docs/MessageContentImageFileObject.md +20 -0
  283. data/docs/MessageContentImageFileObjectImageFile.md +20 -0
  284. data/docs/MessageContentImageUrlObject.md +20 -0
  285. data/docs/MessageContentImageUrlObjectImageUrl.md +20 -0
  286. data/docs/MessageContentRefusalObject.md +20 -0
  287. data/docs/MessageContentTextAnnotationsFileCitationObject.md +26 -0
  288. data/docs/MessageContentTextAnnotationsFileCitationObjectFileCitation.md +18 -0
  289. data/docs/MessageContentTextAnnotationsFilePathObject.md +26 -0
  290. data/docs/MessageContentTextAnnotationsFilePathObjectFilePath.md +18 -0
  291. data/docs/MessageContentTextObject.md +20 -0
  292. data/docs/MessageContentTextObjectText.md +20 -0
  293. data/docs/MessageContentTextObjectTextAnnotationsInner.md +49 -0
  294. data/docs/MessageDeltaContentImageFileObject.md +22 -0
  295. data/docs/MessageDeltaContentImageFileObjectImageFile.md +20 -0
  296. data/docs/MessageDeltaContentImageUrlObject.md +22 -0
  297. data/docs/MessageDeltaContentImageUrlObjectImageUrl.md +20 -0
  298. data/docs/MessageDeltaContentRefusalObject.md +22 -0
  299. data/docs/MessageDeltaContentTextAnnotationsFileCitationObject.md +28 -0
  300. data/docs/MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation.md +20 -0
  301. data/docs/MessageDeltaContentTextAnnotationsFilePathObject.md +28 -0
  302. data/docs/MessageDeltaContentTextAnnotationsFilePathObjectFilePath.md +18 -0
  303. data/docs/MessageDeltaContentTextObject.md +22 -0
  304. data/docs/MessageDeltaContentTextObjectText.md +20 -0
  305. data/docs/MessageDeltaContentTextObjectTextAnnotationsInner.md +49 -0
  306. data/docs/MessageDeltaObject.md +22 -0
  307. data/docs/MessageDeltaObjectDelta.md +20 -0
  308. data/docs/MessageDeltaObjectDeltaContentInner.md +53 -0
  309. data/docs/MessageObject.md +44 -0
  310. data/docs/MessageObjectContentInner.md +53 -0
  311. data/docs/MessageObjectIncompleteDetails.md +18 -0
  312. data/docs/MessageRequestContentTextObject.md +20 -0
  313. data/docs/MessageStreamEvent.md +55 -0
  314. data/docs/MessageStreamEventOneOf.md +20 -0
  315. data/docs/MessageStreamEventOneOf1.md +20 -0
  316. data/docs/MessageStreamEventOneOf2.md +20 -0
  317. data/docs/MessageStreamEventOneOf3.md +20 -0
  318. data/docs/MessageStreamEventOneOf4.md +20 -0
  319. data/docs/Model.md +5 -5
  320. data/docs/ModelsApi.md +208 -0
  321. data/docs/ModerationsApi.md +75 -0
  322. data/docs/ModifyAssistantRequest.md +36 -0
  323. data/docs/ModifyAssistantRequestToolResources.md +20 -0
  324. data/docs/ModifyAssistantRequestToolResourcesCodeInterpreter.md +18 -0
  325. data/docs/ModifyAssistantRequestToolResourcesFileSearch.md +18 -0
  326. data/docs/ModifyMessageRequest.md +18 -0
  327. data/docs/ModifyRunRequest.md +18 -0
  328. data/docs/ModifyThreadRequest.md +20 -0
  329. data/docs/ModifyThreadRequestToolResources.md +20 -0
  330. data/docs/ModifyThreadRequestToolResourcesFileSearch.md +18 -0
  331. data/docs/OpenAIFile.md +9 -9
  332. data/docs/OtherChunkingStrategyResponseParam.md +18 -0
  333. data/docs/PredictionContent.md +20 -0
  334. data/docs/PredictionContentContent.md +49 -0
  335. data/docs/Project.md +28 -0
  336. data/docs/ProjectApiKey.md +28 -0
  337. data/docs/ProjectApiKeyDeleteResponse.md +22 -0
  338. data/docs/ProjectApiKeyListResponse.md +26 -0
  339. data/docs/ProjectApiKeyOwner.md +22 -0
  340. data/docs/ProjectCreateRequest.md +18 -0
  341. data/docs/ProjectListResponse.md +26 -0
  342. data/docs/ProjectRateLimit.md +34 -0
  343. data/docs/ProjectRateLimitListResponse.md +26 -0
  344. data/docs/ProjectRateLimitUpdateRequest.md +28 -0
  345. data/docs/ProjectServiceAccount.md +26 -0
  346. data/docs/ProjectServiceAccountApiKey.md +26 -0
  347. data/docs/ProjectServiceAccountCreateRequest.md +18 -0
  348. data/docs/ProjectServiceAccountCreateResponse.md +28 -0
  349. data/docs/ProjectServiceAccountDeleteResponse.md +22 -0
  350. data/docs/ProjectServiceAccountListResponse.md +26 -0
  351. data/docs/ProjectUpdateRequest.md +18 -0
  352. data/docs/ProjectUser.md +28 -0
  353. data/docs/ProjectUserCreateRequest.md +20 -0
  354. data/docs/ProjectUserDeleteResponse.md +22 -0
  355. data/docs/ProjectUserListResponse.md +26 -0
  356. data/docs/ProjectUserUpdateRequest.md +18 -0
  357. data/docs/ProjectsApi.md +1357 -0
  358. data/docs/RealtimeApi.md +75 -0
  359. data/docs/RealtimeClientEventConversationItemCreate.md +24 -0
  360. data/docs/RealtimeClientEventConversationItemDelete.md +22 -0
  361. data/docs/RealtimeClientEventConversationItemTruncate.md +26 -0
  362. data/docs/RealtimeClientEventInputAudioBufferAppend.md +22 -0
  363. data/docs/RealtimeClientEventInputAudioBufferClear.md +20 -0
  364. data/docs/RealtimeClientEventInputAudioBufferCommit.md +20 -0
  365. data/docs/RealtimeClientEventResponseCancel.md +22 -0
  366. data/docs/RealtimeClientEventResponseCreate.md +22 -0
  367. data/docs/RealtimeClientEventSessionUpdate.md +22 -0
  368. data/docs/RealtimeConversationItem.md +36 -0
  369. data/docs/RealtimeConversationItemContentInner.md +26 -0
  370. data/docs/RealtimeResponse.md +30 -0
  371. data/docs/RealtimeResponseCreateParams.md +38 -0
  372. data/docs/{CreateFineTuneRequestModel.md → RealtimeResponseCreateParamsConversation.md} +4 -4
  373. data/docs/RealtimeResponseCreateParamsMaxResponseOutputTokens.md +49 -0
  374. data/docs/RealtimeResponseCreateParamsToolsInner.md +24 -0
  375. data/docs/RealtimeResponseStatusDetails.md +22 -0
  376. data/docs/RealtimeResponseStatusDetailsError.md +20 -0
  377. data/docs/RealtimeResponseUsage.md +26 -0
  378. data/docs/RealtimeResponseUsageInputTokenDetails.md +22 -0
  379. data/docs/RealtimeResponseUsageOutputTokenDetails.md +20 -0
  380. data/docs/RealtimeServerEventConversationCreated.md +22 -0
  381. data/docs/RealtimeServerEventConversationCreatedConversation.md +20 -0
  382. data/docs/RealtimeServerEventConversationItemCreated.md +24 -0
  383. data/docs/RealtimeServerEventConversationItemDeleted.md +22 -0
  384. data/docs/RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.md +26 -0
  385. data/docs/RealtimeServerEventConversationItemInputAudioTranscriptionFailed.md +26 -0
  386. data/docs/RealtimeServerEventConversationItemInputAudioTranscriptionFailedError.md +24 -0
  387. data/docs/RealtimeServerEventConversationItemTruncated.md +26 -0
  388. data/docs/RealtimeServerEventError.md +22 -0
  389. data/docs/RealtimeServerEventErrorError.md +26 -0
  390. data/docs/RealtimeServerEventInputAudioBufferCleared.md +20 -0
  391. data/docs/RealtimeServerEventInputAudioBufferCommitted.md +24 -0
  392. data/docs/RealtimeServerEventInputAudioBufferSpeechStarted.md +24 -0
  393. data/docs/RealtimeServerEventInputAudioBufferSpeechStopped.md +24 -0
  394. data/docs/RealtimeServerEventRateLimitsUpdated.md +22 -0
  395. data/docs/RealtimeServerEventRateLimitsUpdatedRateLimitsInner.md +24 -0
  396. data/docs/RealtimeServerEventResponseAudioDelta.md +30 -0
  397. data/docs/RealtimeServerEventResponseAudioDone.md +28 -0
  398. data/docs/RealtimeServerEventResponseAudioTranscriptDelta.md +30 -0
  399. data/docs/RealtimeServerEventResponseAudioTranscriptDone.md +30 -0
  400. data/docs/RealtimeServerEventResponseContentPartAdded.md +30 -0
  401. data/docs/RealtimeServerEventResponseContentPartAddedPart.md +24 -0
  402. data/docs/RealtimeServerEventResponseContentPartDone.md +30 -0
  403. data/docs/RealtimeServerEventResponseContentPartDonePart.md +24 -0
  404. data/docs/RealtimeServerEventResponseCreated.md +22 -0
  405. data/docs/RealtimeServerEventResponseDone.md +22 -0
  406. data/docs/RealtimeServerEventResponseFunctionCallArgumentsDelta.md +30 -0
  407. data/docs/RealtimeServerEventResponseFunctionCallArgumentsDone.md +30 -0
  408. data/docs/RealtimeServerEventResponseOutputItemAdded.md +26 -0
  409. data/docs/RealtimeServerEventResponseOutputItemDone.md +26 -0
  410. data/docs/RealtimeServerEventResponseTextDelta.md +30 -0
  411. data/docs/RealtimeServerEventResponseTextDone.md +30 -0
  412. data/docs/RealtimeServerEventSessionCreated.md +22 -0
  413. data/docs/RealtimeServerEventSessionUpdated.md +22 -0
  414. data/docs/RealtimeSession.md +42 -0
  415. data/docs/RealtimeSessionCreateRequest.md +40 -0
  416. data/docs/RealtimeSessionCreateRequestTurnDetection.md +26 -0
  417. data/docs/RealtimeSessionCreateResponse.md +40 -0
  418. data/docs/RealtimeSessionCreateResponseClientSecret.md +20 -0
  419. data/docs/RealtimeSessionCreateResponseTurnDetection.md +24 -0
  420. data/docs/RealtimeSessionInputAudioTranscription.md +18 -0
  421. data/docs/RealtimeSessionModel.md +15 -0
  422. data/docs/RealtimeSessionTurnDetection.md +24 -0
  423. data/docs/ResponseFormatJsonObject.md +18 -0
  424. data/docs/ResponseFormatJsonSchema.md +20 -0
  425. data/docs/ResponseFormatJsonSchemaJsonSchema.md +24 -0
  426. data/docs/ResponseFormatText.md +18 -0
  427. data/docs/RunCompletionUsage.md +22 -0
  428. data/docs/RunObject.md +70 -0
  429. data/docs/RunObjectIncompleteDetails.md +18 -0
  430. data/docs/RunObjectLastError.md +20 -0
  431. data/docs/RunObjectRequiredAction.md +20 -0
  432. data/docs/RunObjectRequiredActionSubmitToolOutputs.md +18 -0
  433. data/docs/RunStepCompletionUsage.md +22 -0
  434. data/docs/RunStepDeltaObject.md +22 -0
  435. data/docs/RunStepDeltaObjectDelta.md +18 -0
  436. data/docs/RunStepDeltaObjectDeltaStepDetails.md +49 -0
  437. data/docs/RunStepDeltaStepDetailsMessageCreationObject.md +20 -0
  438. data/docs/RunStepDeltaStepDetailsMessageCreationObjectMessageCreation.md +18 -0
  439. data/docs/RunStepDeltaStepDetailsToolCallsCodeObject.md +24 -0
  440. data/docs/RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter.md +20 -0
  441. data/docs/RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner.md +49 -0
  442. data/docs/RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.md +22 -0
  443. data/docs/RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage.md +18 -0
  444. data/docs/RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.md +22 -0
  445. data/docs/RunStepDeltaStepDetailsToolCallsFileSearchObject.md +24 -0
  446. data/docs/RunStepDeltaStepDetailsToolCallsFunctionObject.md +24 -0
  447. data/docs/RunStepDeltaStepDetailsToolCallsFunctionObjectFunction.md +22 -0
  448. data/docs/RunStepDeltaStepDetailsToolCallsObject.md +20 -0
  449. data/docs/RunStepDeltaStepDetailsToolCallsObjectToolCallsInner.md +51 -0
  450. data/docs/RunStepDetailsMessageCreationObject.md +20 -0
  451. data/docs/RunStepDetailsMessageCreationObjectMessageCreation.md +18 -0
  452. data/docs/RunStepDetailsToolCallsCodeObject.md +22 -0
  453. data/docs/RunStepDetailsToolCallsCodeObjectCodeInterpreter.md +20 -0
  454. data/docs/RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner.md +49 -0
  455. data/docs/RunStepDetailsToolCallsCodeOutputImageObject.md +20 -0
  456. data/docs/RunStepDetailsToolCallsCodeOutputImageObjectImage.md +18 -0
  457. data/docs/RunStepDetailsToolCallsCodeOutputLogsObject.md +20 -0
  458. data/docs/RunStepDetailsToolCallsFileSearchObject.md +22 -0
  459. data/docs/RunStepDetailsToolCallsFileSearchObjectFileSearch.md +20 -0
  460. data/docs/RunStepDetailsToolCallsFileSearchRankingOptionsObject.md +20 -0
  461. data/docs/RunStepDetailsToolCallsFileSearchResultObject.md +24 -0
  462. data/docs/RunStepDetailsToolCallsFileSearchResultObjectContentInner.md +20 -0
  463. data/docs/RunStepDetailsToolCallsFunctionObject.md +22 -0
  464. data/docs/RunStepDetailsToolCallsFunctionObjectFunction.md +22 -0
  465. data/docs/RunStepDetailsToolCallsObject.md +20 -0
  466. data/docs/RunStepDetailsToolCallsObjectToolCallsInner.md +51 -0
  467. data/docs/RunStepObject.md +48 -0
  468. data/docs/RunStepObjectLastError.md +20 -0
  469. data/docs/RunStepObjectStepDetails.md +49 -0
  470. data/docs/RunStepStreamEvent.md +59 -0
  471. data/docs/RunStepStreamEventOneOf.md +20 -0
  472. data/docs/RunStepStreamEventOneOf1.md +20 -0
  473. data/docs/RunStepStreamEventOneOf2.md +20 -0
  474. data/docs/RunStepStreamEventOneOf3.md +20 -0
  475. data/docs/RunStepStreamEventOneOf4.md +20 -0
  476. data/docs/RunStepStreamEventOneOf5.md +20 -0
  477. data/docs/RunStepStreamEventOneOf6.md +20 -0
  478. data/docs/RunStreamEvent.md +65 -0
  479. data/docs/RunStreamEventOneOf.md +20 -0
  480. data/docs/RunStreamEventOneOf1.md +20 -0
  481. data/docs/RunStreamEventOneOf2.md +20 -0
  482. data/docs/RunStreamEventOneOf3.md +20 -0
  483. data/docs/RunStreamEventOneOf4.md +20 -0
  484. data/docs/RunStreamEventOneOf5.md +20 -0
  485. data/docs/RunStreamEventOneOf6.md +20 -0
  486. data/docs/RunStreamEventOneOf7.md +20 -0
  487. data/docs/RunStreamEventOneOf8.md +20 -0
  488. data/docs/RunStreamEventOneOf9.md +20 -0
  489. data/docs/RunToolCallObject.md +22 -0
  490. data/docs/RunToolCallObjectFunction.md +20 -0
  491. data/docs/StaticChunkingStrategy.md +20 -0
  492. data/docs/StaticChunkingStrategyRequestParam.md +20 -0
  493. data/docs/StaticChunkingStrategyResponseParam.md +20 -0
  494. data/docs/StaticChunkingStrategyStatic.md +20 -0
  495. data/docs/SubmitToolOutputsRunRequest.md +20 -0
  496. data/docs/SubmitToolOutputsRunRequestToolOutputsInner.md +20 -0
  497. data/docs/ThreadObject.md +26 -0
  498. data/docs/ThreadStreamEvent.md +22 -0
  499. data/docs/TranscriptionSegment.md +36 -0
  500. data/docs/TranscriptionWord.md +22 -0
  501. data/docs/TruncationObject.md +20 -0
  502. data/docs/UpdateVectorStoreRequest.md +22 -0
  503. data/docs/Upload.md +34 -0
  504. data/docs/UploadPart.md +24 -0
  505. data/docs/UploadsApi.md +283 -0
  506. data/docs/UsageApi.md +787 -0
  507. data/docs/UsageAudioSpeechesResult.md +30 -0
  508. data/docs/UsageAudioTranscriptionsResult.md +30 -0
  509. data/docs/UsageCodeInterpreterSessionsResult.md +22 -0
  510. data/docs/UsageCompletionsResult.md +40 -0
  511. data/docs/UsageEmbeddingsResult.md +30 -0
  512. data/docs/UsageImagesResult.md +34 -0
  513. data/docs/UsageModerationsResult.md +30 -0
  514. data/docs/UsageResponse.md +24 -0
  515. data/docs/UsageTimeBucket.md +24 -0
  516. data/docs/UsageTimeBucketResultInner.md +63 -0
  517. data/docs/UsageVectorStoresResult.md +22 -0
  518. data/docs/User.md +28 -0
  519. data/docs/{ListFineTunesResponse.md → UserDeleteResponse.md} +6 -4
  520. data/docs/UserListResponse.md +26 -0
  521. data/docs/UserRoleUpdateRequest.md +18 -0
  522. data/docs/UsersApi.md +285 -0
  523. data/docs/VectorStoreExpirationAfter.md +20 -0
  524. data/docs/VectorStoreFileBatchObject.md +28 -0
  525. data/docs/VectorStoreFileBatchObjectFileCounts.md +26 -0
  526. data/docs/VectorStoreFileObject.md +32 -0
  527. data/docs/VectorStoreFileObjectChunkingStrategy.md +49 -0
  528. data/docs/VectorStoreFileObjectLastError.md +20 -0
  529. data/docs/VectorStoreObject.md +38 -0
  530. data/docs/VectorStoreObjectFileCounts.md +26 -0
  531. data/docs/VectorStoresApi.md +939 -0
  532. data/lib/openapi_openai/api/assistants_api.rb +1655 -0
  533. data/lib/openapi_openai/api/audio_api.rb +264 -0
  534. data/lib/openapi_openai/api/audit_logs_api.rb +104 -0
  535. data/lib/openapi_openai/api/batch_api.rb +271 -0
  536. data/lib/openapi_openai/api/chat_api.rb +88 -0
  537. data/lib/openapi_openai/api/completions_api.rb +88 -0
  538. data/lib/openapi_openai/api/default_api.rb +286 -0
  539. data/lib/openapi_openai/api/embeddings_api.rb +88 -0
  540. data/lib/openapi_openai/api/files_api.rb +355 -0
  541. data/lib/openapi_openai/api/fine_tuning_api.rb +405 -0
  542. data/lib/openapi_openai/api/images_api.rb +294 -0
  543. data/lib/openapi_openai/api/invites_api.rb +271 -0
  544. data/lib/openapi_openai/api/models_api.rb +199 -0
  545. data/lib/openapi_openai/api/moderations_api.rb +88 -0
  546. data/lib/openapi_openai/api/projects_api.rb +1319 -0
  547. data/lib/openapi_openai/api/realtime_api.rb +88 -0
  548. data/lib/openapi_openai/api/uploads_api.rb +294 -0
  549. data/lib/openapi_openai/api/usage_api.rb +885 -0
  550. data/lib/openapi_openai/api/users_api.rb +277 -0
  551. data/lib/openapi_openai/api/vector_stores_api.rb +939 -0
  552. data/lib/openapi_openai/api_client.rb +19 -15
  553. data/lib/openapi_openai/api_error.rb +3 -3
  554. data/lib/openapi_openai/api_model_base.rb +88 -0
  555. data/lib/openapi_openai/configuration.rb +20 -3
  556. data/lib/openapi_openai/models/admin_api_key.rb +201 -0
  557. data/lib/openapi_openai/models/admin_api_key_owner.rb +183 -0
  558. data/lib/openapi_openai/models/admin_api_keys_create_request.rb +164 -0
  559. data/lib/openapi_openai/models/admin_api_keys_delete200_response.rb +165 -0
  560. data/lib/openapi_openai/models/api_key_list.rb +185 -0
  561. data/lib/openapi_openai/models/array_of_content_parts_inner.rb +105 -0
  562. data/lib/openapi_openai/models/assistant_object.rb +499 -0
  563. data/lib/openapi_openai/models/assistant_object_tool_resources.rb +157 -0
  564. data/lib/openapi_openai/models/assistant_object_tool_resources_code_interpreter.rb +169 -0
  565. data/lib/openapi_openai/models/assistant_object_tool_resources_file_search.rb +169 -0
  566. data/lib/openapi_openai/models/assistant_object_tools_inner.rb +105 -0
  567. data/lib/openapi_openai/models/assistant_stream_event.rb +109 -0
  568. data/lib/openapi_openai/models/assistant_tools_code.rb +189 -0
  569. data/lib/openapi_openai/models/assistant_tools_file_search.rb +198 -0
  570. data/lib/openapi_openai/models/assistant_tools_file_search_file_search.rb +186 -0
  571. data/lib/openapi_openai/models/assistant_tools_file_search_type_only.rb +189 -0
  572. data/lib/openapi_openai/models/assistant_tools_function.rb +215 -0
  573. data/lib/openapi_openai/models/assistants_api_response_format_option.rb +107 -0
  574. data/lib/openapi_openai/models/assistants_api_tool_choice_option.rb +105 -0
  575. data/lib/openapi_openai/models/assistants_named_tool_choice.rb +199 -0
  576. data/lib/openapi_openai/models/assistants_named_tool_choice_function.rb +165 -0
  577. data/lib/openapi_openai/models/audio_response_format.rb +43 -0
  578. data/lib/openapi_openai/models/audit_log.rb +456 -0
  579. data/lib/openapi_openai/models/audit_log_actor.rb +201 -0
  580. data/lib/openapi_openai/models/audit_log_actor_api_key.rb +211 -0
  581. data/lib/openapi_openai/models/audit_log_actor_service_account.rb +149 -0
  582. data/lib/openapi_openai/models/audit_log_actor_session.rb +158 -0
  583. data/lib/openapi_openai/models/audit_log_actor_user.rb +159 -0
  584. data/lib/openapi_openai/models/audit_log_api_key_created.rb +158 -0
  585. data/lib/openapi_openai/models/audit_log_api_key_created_data.rb +151 -0
  586. data/lib/openapi_openai/models/audit_log_api_key_deleted.rb +149 -0
  587. data/lib/openapi_openai/models/audit_log_api_key_updated.rb +158 -0
  588. data/lib/openapi_openai/models/audit_log_api_key_updated_changes_requested.rb +151 -0
  589. data/lib/openapi_openai/models/audit_log_event_type.rb +60 -0
  590. data/lib/openapi_openai/models/audit_log_invite_accepted.rb +149 -0
  591. data/lib/openapi_openai/models/audit_log_invite_sent.rb +158 -0
  592. data/lib/openapi_openai/models/audit_log_invite_sent_data.rb +159 -0
  593. data/lib/openapi_openai/models/audit_log_login_failed.rb +159 -0
  594. data/lib/openapi_openai/models/audit_log_organization_updated.rb +158 -0
  595. data/lib/openapi_openai/models/audit_log_organization_updated_changes_requested.rb +178 -0
  596. data/lib/openapi_openai/models/audit_log_organization_updated_changes_requested_settings.rb +158 -0
  597. data/lib/openapi_openai/models/audit_log_project.rb +159 -0
  598. data/lib/openapi_openai/models/audit_log_project_archived.rb +149 -0
  599. data/lib/openapi_openai/models/audit_log_project_created.rb +158 -0
  600. data/lib/openapi_openai/models/audit_log_project_created_data.rb +159 -0
  601. data/lib/openapi_openai/models/audit_log_project_updated.rb +158 -0
  602. data/lib/openapi_openai/models/audit_log_project_updated_changes_requested.rb +149 -0
  603. data/lib/openapi_openai/models/audit_log_rate_limit_deleted.rb +149 -0
  604. data/lib/openapi_openai/models/audit_log_rate_limit_updated.rb +158 -0
  605. data/lib/openapi_openai/models/audit_log_rate_limit_updated_changes_requested.rb +199 -0
  606. data/lib/openapi_openai/models/audit_log_service_account_created.rb +158 -0
  607. data/lib/openapi_openai/models/audit_log_service_account_created_data.rb +149 -0
  608. data/lib/openapi_openai/models/audit_log_service_account_deleted.rb +149 -0
  609. data/lib/openapi_openai/models/audit_log_service_account_updated.rb +158 -0
  610. data/lib/openapi_openai/models/audit_log_service_account_updated_changes_requested.rb +149 -0
  611. data/lib/openapi_openai/models/audit_log_user_added.rb +158 -0
  612. data/lib/openapi_openai/models/audit_log_user_added_data.rb +149 -0
  613. data/lib/openapi_openai/models/audit_log_user_deleted.rb +149 -0
  614. data/lib/openapi_openai/models/audit_log_user_updated.rb +158 -0
  615. data/lib/openapi_openai/models/audit_log_user_updated_changes_requested.rb +149 -0
  616. data/lib/openapi_openai/models/auto_chunking_strategy.rb +190 -0
  617. data/lib/openapi_openai/models/auto_chunking_strategy_request_param.rb +190 -0
  618. data/lib/openapi_openai/models/batch.rb +481 -0
  619. data/lib/openapi_openai/models/batch_errors.rb +159 -0
  620. data/lib/openapi_openai/models/batch_errors_data_inner.rb +180 -0
  621. data/lib/openapi_openai/models/batch_request_counts.rb +220 -0
  622. data/lib/openapi_openai/models/batch_request_input.rb +203 -0
  623. data/lib/openapi_openai/models/batch_request_output.rb +178 -0
  624. data/lib/openapi_openai/models/batch_request_output_error.rb +159 -0
  625. data/lib/openapi_openai/models/batch_request_output_response.rb +168 -0
  626. data/lib/openapi_openai/models/chat_completion_function_call_option.rb +166 -0
  627. data/lib/openapi_openai/models/chat_completion_functions.rb +35 -92
  628. data/lib/openapi_openai/models/chat_completion_message_tool_call.rb +242 -0
  629. data/lib/openapi_openai/models/chat_completion_message_tool_call_chunk.rb +227 -0
  630. data/lib/openapi_openai/models/chat_completion_message_tool_call_chunk_function.rb +158 -0
  631. data/lib/openapi_openai/models/{chat_completion_request_message_function_call.rb → chat_completion_message_tool_call_function.rb} +49 -82
  632. data/lib/openapi_openai/models/chat_completion_named_tool_choice.rb +216 -0
  633. data/lib/openapi_openai/models/chat_completion_request_assistant_message.rb +253 -0
  634. data/lib/openapi_openai/models/chat_completion_request_assistant_message_audio.rb +166 -0
  635. data/lib/openapi_openai/models/chat_completion_request_assistant_message_content.rb +105 -0
  636. data/lib/openapi_openai/models/chat_completion_request_assistant_message_content_part.rb +104 -0
  637. data/lib/openapi_openai/models/chat_completion_request_assistant_message_function_call.rb +193 -0
  638. data/lib/openapi_openai/models/chat_completion_request_developer_message.rb +226 -0
  639. data/lib/openapi_openai/models/chat_completion_request_developer_message_content.rb +105 -0
  640. data/lib/openapi_openai/models/{create_chat_completion_request_function_call_one_of.rb → chat_completion_request_function_message.rb} +89 -82
  641. data/lib/openapi_openai/models/chat_completion_request_message.rb +80 -257
  642. data/lib/openapi_openai/models/chat_completion_request_message_content_part_audio.rb +216 -0
  643. data/lib/openapi_openai/models/chat_completion_request_message_content_part_audio_input_audio.rb +216 -0
  644. data/lib/openapi_openai/models/chat_completion_request_message_content_part_image.rb +216 -0
  645. data/lib/openapi_openai/models/chat_completion_request_message_content_part_image_image_url.rb +211 -0
  646. data/lib/openapi_openai/models/chat_completion_request_message_content_part_refusal.rb +216 -0
  647. data/lib/openapi_openai/models/{create_translation_response.rb → chat_completion_request_message_content_part_text.rb} +78 -82
  648. data/lib/openapi_openai/models/chat_completion_request_system_message.rb +226 -0
  649. data/lib/openapi_openai/models/chat_completion_request_system_message_content.rb +105 -0
  650. data/lib/openapi_openai/models/chat_completion_request_tool_message.rb +242 -0
  651. data/lib/openapi_openai/models/chat_completion_request_tool_message_content.rb +105 -0
  652. data/lib/openapi_openai/models/chat_completion_request_user_message.rb +226 -0
  653. data/lib/openapi_openai/models/chat_completion_request_user_message_content.rb +105 -0
  654. data/lib/openapi_openai/models/chat_completion_request_user_message_content_part.rb +105 -0
  655. data/lib/openapi_openai/models/chat_completion_response_message.rb +67 -96
  656. data/lib/openapi_openai/models/chat_completion_response_message_audio.rb +247 -0
  657. data/lib/openapi_openai/models/chat_completion_response_message_function_call.rb +193 -0
  658. data/lib/openapi_openai/models/chat_completion_role.rb +43 -0
  659. data/lib/openapi_openai/models/chat_completion_stream_options.rb +149 -0
  660. data/lib/openapi_openai/models/chat_completion_stream_response_delta.rb +52 -96
  661. data/lib/openapi_openai/models/chat_completion_stream_response_delta_function_call.rb +159 -0
  662. data/lib/openapi_openai/models/chat_completion_token_logprob.rb +236 -0
  663. data/lib/openapi_openai/models/chat_completion_token_logprob_top_logprobs_inner.rb +207 -0
  664. data/lib/openapi_openai/models/chat_completion_tool.rb +215 -0
  665. data/lib/openapi_openai/models/chat_completion_tool_choice_option.rb +105 -0
  666. data/lib/openapi_openai/models/chunking_strategy_request_param.rb +105 -0
  667. data/lib/openapi_openai/models/complete_upload_request.rb +177 -0
  668. data/lib/openapi_openai/models/completion_usage.rb +238 -0
  669. data/lib/openapi_openai/models/completion_usage_completion_tokens_details.rb +179 -0
  670. data/lib/openapi_openai/models/completion_usage_prompt_tokens_details.rb +159 -0
  671. data/lib/openapi_openai/models/costs_result.rb +220 -0
  672. data/lib/openapi_openai/models/costs_result_amount.rb +159 -0
  673. data/lib/openapi_openai/models/create_assistant_request.rb +377 -0
  674. data/lib/openapi_openai/models/create_assistant_request_model.rb +103 -0
  675. data/lib/openapi_openai/models/create_assistant_request_tool_resources.rb +158 -0
  676. data/lib/openapi_openai/models/create_assistant_request_tool_resources_code_interpreter.rb +169 -0
  677. data/lib/openapi_openai/models/create_assistant_request_tool_resources_file_search.rb +200 -0
  678. data/lib/openapi_openai/models/create_assistant_request_tool_resources_file_search_vector_stores_inner.rb +188 -0
  679. data/lib/openapi_openai/models/create_assistant_request_tool_resources_file_search_vector_stores_inner_chunking_strategy.rb +105 -0
  680. data/lib/openapi_openai/models/create_batch_request.rb +258 -0
  681. data/lib/openapi_openai/models/{create_edit_response.rb → create_chat_completion_function_response.rb} +158 -110
  682. data/lib/openapi_openai/models/{create_edit_response_choices_inner.rb → create_chat_completion_function_response_choices_inner.rb} +72 -106
  683. data/lib/openapi_openai/models/create_chat_completion_request.rb +456 -225
  684. data/lib/openapi_openai/models/create_chat_completion_request_audio.rb +219 -0
  685. data/lib/openapi_openai/models/create_chat_completion_request_function_call.rb +7 -8
  686. data/lib/openapi_openai/models/create_chat_completion_request_model.rb +13 -15
  687. data/lib/openapi_openai/models/create_chat_completion_request_response_format.rb +106 -0
  688. data/lib/openapi_openai/models/create_chat_completion_request_stop.rb +5 -6
  689. data/lib/openapi_openai/models/create_chat_completion_response.rb +150 -104
  690. data/lib/openapi_openai/models/create_chat_completion_response_choices_inner.rb +77 -89
  691. data/lib/openapi_openai/models/create_chat_completion_response_choices_inner_logprobs.rb +169 -0
  692. data/lib/openapi_openai/models/create_chat_completion_stream_response.rb +159 -103
  693. data/lib/openapi_openai/models/create_chat_completion_stream_response_choices_inner.rb +77 -95
  694. data/lib/openapi_openai/models/{create_completion_response_usage.rb → create_chat_completion_stream_response_usage.rb} +65 -98
  695. data/lib/openapi_openai/models/create_completion_request.rb +252 -262
  696. data/lib/openapi_openai/models/create_completion_request_model.rb +13 -15
  697. data/lib/openapi_openai/models/create_completion_request_prompt.rb +5 -6
  698. data/lib/openapi_openai/models/create_completion_request_stop.rb +5 -6
  699. data/lib/openapi_openai/models/create_completion_response.rb +127 -104
  700. data/lib/openapi_openai/models/create_completion_response_choices_inner.rb +57 -103
  701. data/lib/openapi_openai/models/create_completion_response_choices_inner_logprobs.rb +35 -102
  702. data/lib/openapi_openai/models/create_embedding_request.rb +120 -92
  703. data/lib/openapi_openai/models/create_embedding_request_input.rb +6 -7
  704. data/lib/openapi_openai/models/create_embedding_request_model.rb +13 -15
  705. data/lib/openapi_openai/models/create_embedding_response.rb +103 -103
  706. data/lib/openapi_openai/models/create_embedding_response_usage.rb +36 -80
  707. data/lib/openapi_openai/models/create_fine_tuning_job_request.rb +303 -0
  708. data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters.rb +166 -0
  709. data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters_batch_size.rb +105 -0
  710. data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters_learning_rate_multiplier.rb +105 -0
  711. data/lib/openapi_openai/models/{create_fine_tune_request_model.rb → create_fine_tuning_job_request_hyperparameters_n_epochs.rb} +8 -8
  712. data/lib/openapi_openai/models/create_fine_tuning_job_request_integrations_inner.rb +214 -0
  713. data/lib/openapi_openai/models/create_fine_tuning_job_request_integrations_inner_wandb.rb +200 -0
  714. data/lib/openapi_openai/models/create_fine_tuning_job_request_model.rb +103 -0
  715. data/lib/openapi_openai/models/create_image_edit_request_model.rb +103 -0
  716. data/lib/openapi_openai/models/create_image_request.rb +104 -102
  717. data/lib/openapi_openai/models/create_image_request_model.rb +103 -0
  718. data/lib/openapi_openai/models/create_message_request.rb +239 -0
  719. data/lib/openapi_openai/models/create_message_request_attachments_inner.rb +160 -0
  720. data/lib/openapi_openai/models/create_message_request_attachments_inner_tools_inner.rb +104 -0
  721. data/lib/openapi_openai/models/create_message_request_content.rb +104 -0
  722. data/lib/openapi_openai/models/create_moderation_request.rb +23 -80
  723. data/lib/openapi_openai/models/create_moderation_request_input.rb +7 -7
  724. data/lib/openapi_openai/models/create_moderation_request_input_one_of_inner.rb +104 -0
  725. data/lib/openapi_openai/models/create_moderation_request_input_one_of_inner_one_of.rb +216 -0
  726. data/lib/openapi_openai/models/{create_transcription_response.rb → create_moderation_request_input_one_of_inner_one_of1.rb} +78 -82
  727. data/lib/openapi_openai/models/create_moderation_request_input_one_of_inner_one_of_image_url.rb +166 -0
  728. data/lib/openapi_openai/models/create_moderation_request_model.rb +13 -15
  729. data/lib/openapi_openai/models/create_moderation_response.rb +47 -80
  730. data/lib/openapi_openai/models/create_moderation_response_results_inner.rb +74 -84
  731. data/lib/openapi_openai/models/create_moderation_response_results_inner_categories.rb +254 -81
  732. data/lib/openapi_openai/models/create_moderation_response_results_inner_category_applied_input_types.rb +408 -0
  733. data/lib/openapi_openai/models/create_moderation_response_results_inner_category_scores.rb +254 -81
  734. data/lib/openapi_openai/models/create_run_request.rb +425 -0
  735. data/lib/openapi_openai/models/create_run_request_model.rb +103 -0
  736. data/lib/openapi_openai/models/create_speech_request.rb +315 -0
  737. data/lib/openapi_openai/models/create_speech_request_model.rb +103 -0
  738. data/lib/openapi_openai/models/create_thread_and_run_request.rb +420 -0
  739. data/lib/openapi_openai/models/create_thread_and_run_request_tool_resources.rb +157 -0
  740. data/lib/openapi_openai/models/create_thread_and_run_request_tools_inner.rb +105 -0
  741. data/lib/openapi_openai/models/create_thread_request.rb +171 -0
  742. data/lib/openapi_openai/models/create_thread_request_tool_resources.rb +158 -0
  743. data/lib/openapi_openai/models/create_thread_request_tool_resources_file_search.rb +200 -0
  744. data/lib/openapi_openai/models/create_thread_request_tool_resources_file_search_vector_stores_inner.rb +188 -0
  745. data/lib/openapi_openai/models/create_transcription200_response.rb +104 -0
  746. data/lib/openapi_openai/models/create_transcription_request_model.rb +13 -15
  747. data/lib/openapi_openai/models/create_transcription_response_json.rb +166 -0
  748. data/lib/openapi_openai/models/create_transcription_response_verbose_json.rb +244 -0
  749. data/lib/openapi_openai/models/create_translation200_response.rb +104 -0
  750. data/lib/openapi_openai/models/create_translation_response_json.rb +164 -0
  751. data/lib/openapi_openai/models/create_translation_response_verbose_json.rb +231 -0
  752. data/lib/openapi_openai/models/create_upload_request.rb +270 -0
  753. data/lib/openapi_openai/models/create_vector_store_file_batch_request.rb +194 -0
  754. data/lib/openapi_openai/models/create_vector_store_file_request.rb +174 -0
  755. data/lib/openapi_openai/models/create_vector_store_request.rb +208 -0
  756. data/lib/openapi_openai/models/create_vector_store_request_chunking_strategy.rb +105 -0
  757. data/lib/openapi_openai/models/default_project_error_response.rb +190 -0
  758. data/lib/openapi_openai/models/delete_assistant_response.rb +240 -0
  759. data/lib/openapi_openai/models/delete_file_response.rb +67 -80
  760. data/lib/openapi_openai/models/delete_message_response.rb +240 -0
  761. data/lib/openapi_openai/models/delete_model_response.rb +63 -100
  762. data/lib/openapi_openai/models/delete_thread_response.rb +240 -0
  763. data/lib/openapi_openai/models/delete_vector_store_file_response.rb +240 -0
  764. data/lib/openapi_openai/models/delete_vector_store_response.rb +240 -0
  765. data/lib/openapi_openai/models/done_event.rb +217 -0
  766. data/lib/openapi_openai/models/{create_embedding_response_data_inner.rb → embedding.rb} +91 -100
  767. data/lib/openapi_openai/models/error.rb +54 -101
  768. data/lib/openapi_openai/models/error_event.rb +215 -0
  769. data/lib/openapi_openai/models/error_response.rb +23 -80
  770. data/lib/openapi_openai/models/file_search_ranking_options.rb +228 -0
  771. data/lib/openapi_openai/models/fine_tune_chat_completion_request_assistant_message.rb +281 -0
  772. data/lib/openapi_openai/models/fine_tune_chat_request_input.rb +233 -0
  773. data/lib/openapi_openai/models/fine_tune_chat_request_input_messages_inner.rb +107 -0
  774. data/lib/openapi_openai/models/fine_tune_completion_request_input.rb +159 -0
  775. data/lib/openapi_openai/models/fine_tune_dpo_method.rb +148 -0
  776. data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters.rb +175 -0
  777. data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters_batch_size.rb +105 -0
  778. data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters_beta.rb +105 -0
  779. data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters_learning_rate_multiplier.rb +105 -0
  780. data/lib/openapi_openai/models/{create_edit_request_model.rb → fine_tune_dpo_method_hyperparameters_n_epochs.rb} +8 -8
  781. data/lib/openapi_openai/models/fine_tune_method.rb +201 -0
  782. data/lib/openapi_openai/models/fine_tune_preference_request_input.rb +210 -0
  783. data/lib/openapi_openai/models/fine_tune_preference_request_input_input.rb +192 -0
  784. data/lib/openapi_openai/models/fine_tune_preference_request_input_preferred_completion_inner.rb +103 -0
  785. data/lib/openapi_openai/models/fine_tune_supervised_method.rb +148 -0
  786. data/lib/openapi_openai/models/fine_tune_supervised_method_hyperparameters.rb +166 -0
  787. data/lib/openapi_openai/models/fine_tuning_integration.rb +215 -0
  788. data/lib/openapi_openai/models/fine_tuning_job.rb +548 -0
  789. data/lib/openapi_openai/models/fine_tuning_job_checkpoint.rb +351 -0
  790. data/lib/openapi_openai/models/fine_tuning_job_checkpoint_metrics.rb +202 -0
  791. data/lib/openapi_openai/models/fine_tuning_job_error.rb +206 -0
  792. data/lib/openapi_openai/models/fine_tuning_job_event.rb +332 -0
  793. data/lib/openapi_openai/models/fine_tuning_job_hyperparameters.rb +166 -0
  794. data/lib/openapi_openai/models/fine_tuning_job_integrations_inner.rb +103 -0
  795. data/lib/openapi_openai/models/function_object.rb +200 -0
  796. data/lib/openapi_openai/models/{images_response_data_inner.rb → image.rb} +34 -88
  797. data/lib/openapi_openai/models/images_response.rb +34 -81
  798. data/lib/openapi_openai/models/invite.rb +378 -0
  799. data/lib/openapi_openai/models/invite_delete_response.rb +241 -0
  800. data/lib/openapi_openai/models/invite_list_response.rb +247 -0
  801. data/lib/openapi_openai/models/invite_projects_inner.rb +192 -0
  802. data/lib/openapi_openai/models/invite_request.rb +228 -0
  803. data/lib/openapi_openai/models/invite_request_projects_inner.rb +216 -0
  804. data/lib/openapi_openai/models/list_assistants_response.rb +270 -0
  805. data/lib/openapi_openai/models/list_audit_logs_effective_at_parameter.rb +178 -0
  806. data/lib/openapi_openai/models/list_audit_logs_response.rb +294 -0
  807. data/lib/openapi_openai/models/list_batches_response.rb +260 -0
  808. data/lib/openapi_openai/models/list_files_response.rb +115 -84
  809. data/lib/openapi_openai/models/list_fine_tuning_job_checkpoints_response.rb +262 -0
  810. data/lib/openapi_openai/models/{list_fine_tunes_response.rb → list_fine_tuning_job_events_response.rb} +77 -100
  811. data/lib/openapi_openai/models/list_messages_response.rb +270 -0
  812. data/lib/openapi_openai/models/list_models_response.rb +57 -80
  813. data/lib/openapi_openai/models/{list_fine_tune_events_response.rb → list_paginated_fine_tuning_jobs_response.rb} +103 -100
  814. data/lib/openapi_openai/models/list_run_steps_response.rb +270 -0
  815. data/lib/openapi_openai/models/list_runs_response.rb +270 -0
  816. data/lib/openapi_openai/models/list_threads_response.rb +270 -0
  817. data/lib/openapi_openai/models/list_vector_store_files_response.rb +270 -0
  818. data/lib/openapi_openai/models/list_vector_stores_response.rb +270 -0
  819. data/lib/openapi_openai/models/message_content_image_file_object.rb +216 -0
  820. data/lib/openapi_openai/models/message_content_image_file_object_image_file.rb +211 -0
  821. data/lib/openapi_openai/models/message_content_image_url_object.rb +216 -0
  822. data/lib/openapi_openai/models/message_content_image_url_object_image_url.rb +211 -0
  823. data/lib/openapi_openai/models/message_content_refusal_object.rb +216 -0
  824. data/lib/openapi_openai/models/message_content_text_annotations_file_citation_object.rb +313 -0
  825. data/lib/openapi_openai/models/message_content_text_annotations_file_citation_object_file_citation.rb +165 -0
  826. data/lib/openapi_openai/models/message_content_text_annotations_file_path_object.rb +313 -0
  827. data/lib/openapi_openai/models/message_content_text_annotations_file_path_object_file_path.rb +165 -0
  828. data/lib/openapi_openai/models/message_content_text_object.rb +216 -0
  829. data/lib/openapi_openai/models/message_content_text_object_text.rb +193 -0
  830. data/lib/openapi_openai/models/message_content_text_object_text_annotations_inner.rb +104 -0
  831. data/lib/openapi_openai/models/message_delta_content_image_file_object.rb +226 -0
  832. data/lib/openapi_openai/models/message_delta_content_image_file_object_image_file.rb +194 -0
  833. data/lib/openapi_openai/models/message_delta_content_image_url_object.rb +226 -0
  834. data/lib/openapi_openai/models/message_delta_content_image_url_object_image_url.rb +194 -0
  835. data/lib/openapi_openai/models/message_delta_content_refusal_object.rb +226 -0
  836. data/lib/openapi_openai/models/message_delta_content_text_annotations_file_citation_object.rb +292 -0
  837. data/lib/openapi_openai/models/message_delta_content_text_annotations_file_citation_object_file_citation.rb +158 -0
  838. data/lib/openapi_openai/models/message_delta_content_text_annotations_file_path_object.rb +292 -0
  839. data/lib/openapi_openai/models/message_delta_content_text_annotations_file_path_object_file_path.rb +148 -0
  840. data/lib/openapi_openai/models/message_delta_content_text_object.rb +226 -0
  841. data/lib/openapi_openai/models/message_delta_content_text_object_text.rb +159 -0
  842. data/lib/openapi_openai/models/message_delta_content_text_object_text_annotations_inner.rb +104 -0
  843. data/lib/openapi_openai/models/message_delta_object.rb +243 -0
  844. data/lib/openapi_openai/models/message_delta_object_delta.rb +195 -0
  845. data/lib/openapi_openai/models/message_delta_object_delta_content_inner.rb +106 -0
  846. data/lib/openapi_openai/models/message_object.rb +450 -0
  847. data/lib/openapi_openai/models/message_object_content_inner.rb +106 -0
  848. data/lib/openapi_openai/models/message_object_incomplete_details.rb +190 -0
  849. data/lib/openapi_openai/models/message_request_content_text_object.rb +217 -0
  850. data/lib/openapi_openai/models/message_stream_event.rb +107 -0
  851. data/lib/openapi_openai/models/message_stream_event_one_of.rb +215 -0
  852. data/lib/openapi_openai/models/message_stream_event_one_of1.rb +215 -0
  853. data/lib/openapi_openai/models/message_stream_event_one_of2.rb +215 -0
  854. data/lib/openapi_openai/models/message_stream_event_one_of3.rb +215 -0
  855. data/lib/openapi_openai/models/message_stream_event_one_of4.rb +215 -0
  856. data/lib/openapi_openai/models/model.rb +99 -97
  857. data/lib/openapi_openai/models/{create_edit_request.rb → modify_assistant_request.rb} +137 -139
  858. data/lib/openapi_openai/models/modify_assistant_request_tool_resources.rb +157 -0
  859. data/lib/openapi_openai/models/modify_assistant_request_tool_resources_code_interpreter.rb +169 -0
  860. data/lib/openapi_openai/models/modify_assistant_request_tool_resources_file_search.rb +169 -0
  861. data/lib/openapi_openai/models/modify_message_request.rb +149 -0
  862. data/lib/openapi_openai/models/modify_run_request.rb +149 -0
  863. data/lib/openapi_openai/models/modify_thread_request.rb +159 -0
  864. data/lib/openapi_openai/models/modify_thread_request_tool_resources.rb +157 -0
  865. data/lib/openapi_openai/models/modify_thread_request_tool_resources_file_search.rb +169 -0
  866. data/lib/openapi_openai/models/open_ai_file.rb +145 -99
  867. data/lib/openapi_openai/models/other_chunking_strategy_response_param.rb +190 -0
  868. data/lib/openapi_openai/models/prediction_content.rb +216 -0
  869. data/lib/openapi_openai/models/prediction_content_content.rb +105 -0
  870. data/lib/openapi_openai/models/project.rb +311 -0
  871. data/lib/openapi_openai/models/project_api_key.rb +324 -0
  872. data/lib/openapi_openai/models/project_api_key_delete_response.rb +240 -0
  873. data/lib/openapi_openai/models/project_api_key_list_response.rb +294 -0
  874. data/lib/openapi_openai/models/project_api_key_owner.rb +200 -0
  875. data/lib/openapi_openai/models/project_create_request.rb +165 -0
  876. data/lib/openapi_openai/models/project_list_response.rb +294 -0
  877. data/lib/openapi_openai/models/project_rate_limit.rb +338 -0
  878. data/lib/openapi_openai/models/project_rate_limit_list_response.rb +294 -0
  879. data/lib/openapi_openai/models/project_rate_limit_update_request.rb +198 -0
  880. data/lib/openapi_openai/models/project_service_account.rb +300 -0
  881. data/lib/openapi_openai/models/project_service_account_api_key.rb +293 -0
  882. data/lib/openapi_openai/models/project_service_account_create_request.rb +165 -0
  883. data/lib/openapi_openai/models/project_service_account_create_response.rb +321 -0
  884. data/lib/openapi_openai/models/project_service_account_delete_response.rb +240 -0
  885. data/lib/openapi_openai/models/project_service_account_list_response.rb +294 -0
  886. data/lib/openapi_openai/models/project_update_request.rb +165 -0
  887. data/lib/openapi_openai/models/project_user.rb +327 -0
  888. data/lib/openapi_openai/models/project_user_create_request.rb +216 -0
  889. data/lib/openapi_openai/models/project_user_delete_response.rb +240 -0
  890. data/lib/openapi_openai/models/project_user_list_response.rb +270 -0
  891. data/lib/openapi_openai/models/project_user_update_request.rb +189 -0
  892. data/lib/openapi_openai/models/realtime_client_event_conversation_item_create.rb +236 -0
  893. data/lib/openapi_openai/models/realtime_client_event_conversation_item_delete.rb +227 -0
  894. data/lib/openapi_openai/models/realtime_client_event_conversation_item_truncate.rb +281 -0
  895. data/lib/openapi_openai/models/realtime_client_event_input_audio_buffer_append.rb +227 -0
  896. data/lib/openapi_openai/models/realtime_client_event_input_audio_buffer_clear.rb +200 -0
  897. data/lib/openapi_openai/models/realtime_client_event_input_audio_buffer_commit.rb +200 -0
  898. data/lib/openapi_openai/models/realtime_client_event_response_cancel.rb +210 -0
  899. data/lib/openapi_openai/models/realtime_client_event_response_create.rb +209 -0
  900. data/lib/openapi_openai/models/realtime_client_event_session_update.rb +226 -0
  901. data/lib/openapi_openai/models/realtime_conversation_item.rb +311 -0
  902. data/lib/openapi_openai/models/realtime_conversation_item_content_inner.rb +222 -0
  903. data/lib/openapi_openai/models/realtime_response.rb +256 -0
  904. data/lib/openapi_openai/models/realtime_response_create_params.rb +300 -0
  905. data/lib/openapi_openai/models/realtime_response_create_params_conversation.rb +104 -0
  906. data/lib/openapi_openai/models/realtime_response_create_params_max_response_output_tokens.rb +105 -0
  907. data/lib/openapi_openai/models/realtime_response_create_params_tools_inner.rb +212 -0
  908. data/lib/openapi_openai/models/realtime_response_status_details.rb +214 -0
  909. data/lib/openapi_openai/models/realtime_response_status_details_error.rb +159 -0
  910. data/lib/openapi_openai/models/realtime_response_usage.rb +187 -0
  911. data/lib/openapi_openai/models/realtime_response_usage_input_token_details.rb +169 -0
  912. data/lib/openapi_openai/models/realtime_response_usage_output_token_details.rb +159 -0
  913. data/lib/openapi_openai/models/realtime_server_event_conversation_created.rb +243 -0
  914. data/lib/openapi_openai/models/realtime_server_event_conversation_created_conversation.rb +159 -0
  915. data/lib/openapi_openai/models/realtime_server_event_conversation_item_created.rb +270 -0
  916. data/lib/openapi_openai/models/realtime_server_event_conversation_item_deleted.rb +244 -0
  917. data/lib/openapi_openai/models/realtime_server_event_conversation_item_input_audio_transcription_completed.rb +298 -0
  918. data/lib/openapi_openai/models/realtime_server_event_conversation_item_input_audio_transcription_failed.rb +297 -0
  919. data/lib/openapi_openai/models/realtime_server_event_conversation_item_input_audio_transcription_failed_error.rb +179 -0
  920. data/lib/openapi_openai/models/realtime_server_event_conversation_item_truncated.rb +298 -0
  921. data/lib/openapi_openai/models/realtime_server_event_error.rb +243 -0
  922. data/lib/openapi_openai/models/realtime_server_event_error_error.rb +226 -0
  923. data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_cleared.rb +217 -0
  924. data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_committed.rb +271 -0
  925. data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_speech_started.rb +271 -0
  926. data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_speech_stopped.rb +271 -0
  927. data/lib/openapi_openai/models/realtime_server_event_rate_limits_updated.rb +246 -0
  928. data/lib/openapi_openai/models/realtime_server_event_rate_limits_updated_rate_limits_inner.rb +212 -0
  929. data/lib/openapi_openai/models/realtime_server_event_response_audio_delta.rb +352 -0
  930. data/lib/openapi_openai/models/realtime_server_event_response_audio_done.rb +325 -0
  931. data/lib/openapi_openai/models/realtime_server_event_response_audio_transcript_delta.rb +352 -0
  932. data/lib/openapi_openai/models/realtime_server_event_response_audio_transcript_done.rb +352 -0
  933. data/lib/openapi_openai/models/realtime_server_event_response_content_part_added.rb +351 -0
  934. data/lib/openapi_openai/models/realtime_server_event_response_content_part_added_part.rb +213 -0
  935. data/lib/openapi_openai/models/realtime_server_event_response_content_part_done.rb +351 -0
  936. data/lib/openapi_openai/models/realtime_server_event_response_content_part_done_part.rb +213 -0
  937. data/lib/openapi_openai/models/realtime_server_event_response_created.rb +243 -0
  938. data/lib/openapi_openai/models/realtime_server_event_response_done.rb +243 -0
  939. data/lib/openapi_openai/models/realtime_server_event_response_function_call_arguments_delta.rb +352 -0
  940. data/lib/openapi_openai/models/realtime_server_event_response_function_call_arguments_done.rb +352 -0
  941. data/lib/openapi_openai/models/realtime_server_event_response_output_item_added.rb +297 -0
  942. data/lib/openapi_openai/models/realtime_server_event_response_output_item_done.rb +297 -0
  943. data/lib/openapi_openai/models/realtime_server_event_response_text_delta.rb +352 -0
  944. data/lib/openapi_openai/models/realtime_server_event_response_text_done.rb +352 -0
  945. data/lib/openapi_openai/models/realtime_server_event_session_created.rb +243 -0
  946. data/lib/openapi_openai/models/realtime_server_event_session_updated.rb +243 -0
  947. data/lib/openapi_openai/models/realtime_session.rb +328 -0
  948. data/lib/openapi_openai/models/realtime_session_create_request.rb +337 -0
  949. data/lib/openapi_openai/models/realtime_session_create_request_turn_detection.rb +191 -0
  950. data/lib/openapi_openai/models/realtime_session_create_response.rb +293 -0
  951. data/lib/openapi_openai/models/realtime_session_create_response_client_secret.rb +159 -0
  952. data/lib/openapi_openai/models/realtime_session_create_response_turn_detection.rb +179 -0
  953. data/lib/openapi_openai/models/realtime_session_input_audio_transcription.rb +149 -0
  954. data/lib/openapi_openai/models/realtime_session_model.rb +103 -0
  955. data/lib/openapi_openai/models/realtime_session_turn_detection.rb +213 -0
  956. data/lib/openapi_openai/models/response_format_json_object.rb +189 -0
  957. data/lib/openapi_openai/models/response_format_json_schema.rb +215 -0
  958. data/lib/openapi_openai/models/response_format_json_schema_json_schema.rb +200 -0
  959. data/lib/openapi_openai/models/response_format_text.rb +189 -0
  960. data/lib/openapi_openai/models/run_completion_usage.rb +220 -0
  961. data/lib/openapi_openai/models/run_object.rb +728 -0
  962. data/lib/openapi_openai/models/run_object_incomplete_details.rb +183 -0
  963. data/lib/openapi_openai/models/run_object_last_error.rb +217 -0
  964. data/lib/openapi_openai/models/run_object_required_action.rb +216 -0
  965. data/lib/openapi_openai/models/run_object_required_action_submit_tool_outputs.rb +168 -0
  966. data/lib/openapi_openai/models/run_step_completion_usage.rb +220 -0
  967. data/lib/openapi_openai/models/run_step_delta_object.rb +243 -0
  968. data/lib/openapi_openai/models/run_step_delta_object_delta.rb +148 -0
  969. data/lib/openapi_openai/models/run_step_delta_object_delta_step_details.rb +105 -0
  970. data/lib/openapi_openai/models/run_step_delta_step_details_message_creation_object.rb +199 -0
  971. data/lib/openapi_openai/models/run_step_delta_step_details_message_creation_object_message_creation.rb +148 -0
  972. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object.rb +236 -0
  973. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter.rb +161 -0
  974. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_outputs_inner.rb +104 -0
  975. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_image_object.rb +225 -0
  976. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_image_object_image.rb +148 -0
  977. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_logs_object.rb +227 -0
  978. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_file_search_object.rb +253 -0
  979. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_function_object.rb +235 -0
  980. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_function_object_function.rb +170 -0
  981. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_object.rb +202 -0
  982. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_object_tool_calls_inner.rb +105 -0
  983. data/lib/openapi_openai/models/run_step_details_message_creation_object.rb +216 -0
  984. data/lib/openapi_openai/models/run_step_details_message_creation_object_message_creation.rb +165 -0
  985. data/lib/openapi_openai/models/run_step_details_tool_calls_code_object.rb +243 -0
  986. data/lib/openapi_openai/models/run_step_details_tool_calls_code_object_code_interpreter.rb +195 -0
  987. data/lib/openapi_openai/models/run_step_details_tool_calls_code_object_code_interpreter_outputs_inner.rb +104 -0
  988. data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_image_object.rb +215 -0
  989. data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_image_object_image.rb +165 -0
  990. data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_logs_object.rb +217 -0
  991. data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_object.rb +242 -0
  992. data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_object_file_search.rb +160 -0
  993. data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_ranking_options_object.rb +235 -0
  994. data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_result_object.rb +250 -0
  995. data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_result_object_content_inner.rb +192 -0
  996. data/lib/openapi_openai/models/run_step_details_tool_calls_function_object.rb +242 -0
  997. data/lib/openapi_openai/models/run_step_details_tool_calls_function_object_function.rb +206 -0
  998. data/lib/openapi_openai/models/run_step_details_tool_calls_object.rb +219 -0
  999. data/lib/openapi_openai/models/run_step_details_tool_calls_object_tool_calls_inner.rb +105 -0
  1000. data/lib/openapi_openai/models/run_step_object.rb +498 -0
  1001. data/lib/openapi_openai/models/run_step_object_last_error.rb +217 -0
  1002. data/lib/openapi_openai/models/run_step_object_step_details.rb +105 -0
  1003. data/lib/openapi_openai/models/run_step_stream_event.rb +109 -0
  1004. data/lib/openapi_openai/models/run_step_stream_event_one_of.rb +215 -0
  1005. data/lib/openapi_openai/models/run_step_stream_event_one_of1.rb +215 -0
  1006. data/lib/openapi_openai/models/run_step_stream_event_one_of2.rb +215 -0
  1007. data/lib/openapi_openai/models/run_step_stream_event_one_of3.rb +215 -0
  1008. data/lib/openapi_openai/models/run_step_stream_event_one_of4.rb +215 -0
  1009. data/lib/openapi_openai/models/run_step_stream_event_one_of5.rb +215 -0
  1010. data/lib/openapi_openai/models/run_step_stream_event_one_of6.rb +215 -0
  1011. data/lib/openapi_openai/models/run_stream_event.rb +112 -0
  1012. data/lib/openapi_openai/models/run_stream_event_one_of.rb +215 -0
  1013. data/lib/openapi_openai/models/run_stream_event_one_of1.rb +215 -0
  1014. data/lib/openapi_openai/models/run_stream_event_one_of2.rb +215 -0
  1015. data/lib/openapi_openai/models/run_stream_event_one_of3.rb +215 -0
  1016. data/lib/openapi_openai/models/run_stream_event_one_of4.rb +215 -0
  1017. data/lib/openapi_openai/models/run_stream_event_one_of5.rb +215 -0
  1018. data/lib/openapi_openai/models/run_stream_event_one_of6.rb +215 -0
  1019. data/lib/openapi_openai/models/run_stream_event_one_of7.rb +215 -0
  1020. data/lib/openapi_openai/models/run_stream_event_one_of8.rb +215 -0
  1021. data/lib/openapi_openai/models/run_stream_event_one_of9.rb +215 -0
  1022. data/lib/openapi_openai/models/run_tool_call_object.rb +243 -0
  1023. data/lib/openapi_openai/models/run_tool_call_object_function.rb +193 -0
  1024. data/lib/openapi_openai/models/static_chunking_strategy.rb +215 -0
  1025. data/lib/openapi_openai/models/static_chunking_strategy_request_param.rb +215 -0
  1026. data/lib/openapi_openai/models/static_chunking_strategy_response_param.rb +215 -0
  1027. data/lib/openapi_openai/models/static_chunking_strategy_static.rb +210 -0
  1028. data/lib/openapi_openai/models/submit_tool_outputs_run_request.rb +178 -0
  1029. data/lib/openapi_openai/models/submit_tool_outputs_run_request_tool_outputs_inner.rb +158 -0
  1030. data/lib/openapi_openai/models/{fine_tune_event.rb → thread_object.rb} +106 -106
  1031. data/lib/openapi_openai/models/thread_stream_event.rb +225 -0
  1032. data/lib/openapi_openai/models/transcription_segment.rb +410 -0
  1033. data/lib/openapi_openai/models/transcription_word.rb +219 -0
  1034. data/lib/openapi_openai/models/truncation_object.rb +216 -0
  1035. data/lib/openapi_openai/models/update_vector_store_request.rb +169 -0
  1036. data/lib/openapi_openai/models/upload.rb +383 -0
  1037. data/lib/openapi_openai/models/upload_part.rb +271 -0
  1038. data/lib/openapi_openai/models/usage_audio_speeches_result.rb +287 -0
  1039. data/lib/openapi_openai/models/usage_audio_transcriptions_result.rb +287 -0
  1040. data/lib/openapi_openai/models/usage_code_interpreter_sessions_result.rb +227 -0
  1041. data/lib/openapi_openai/models/usage_completions_result.rb +355 -0
  1042. data/lib/openapi_openai/models/usage_embeddings_result.rb +287 -0
  1043. data/lib/openapi_openai/models/usage_images_result.rb +309 -0
  1044. data/lib/openapi_openai/models/usage_moderations_result.rb +287 -0
  1045. data/lib/openapi_openai/models/usage_response.rb +268 -0
  1046. data/lib/openapi_openai/models/usage_time_bucket.rb +268 -0
  1047. data/lib/openapi_openai/models/usage_time_bucket_result_inner.rb +111 -0
  1048. data/lib/openapi_openai/models/usage_vector_stores_result.rb +227 -0
  1049. data/lib/openapi_openai/models/user.rb +327 -0
  1050. data/lib/openapi_openai/models/user_delete_response.rb +240 -0
  1051. data/lib/openapi_openai/models/user_list_response.rb +294 -0
  1052. data/lib/openapi_openai/models/user_role_update_request.rb +189 -0
  1053. data/lib/openapi_openai/models/vector_store_expiration_after.rb +235 -0
  1054. data/lib/openapi_openai/models/vector_store_file_batch_object.rb +326 -0
  1055. data/lib/openapi_openai/models/vector_store_file_batch_object_file_counts.rb +273 -0
  1056. data/lib/openapi_openai/models/vector_store_file_object.rb +348 -0
  1057. data/lib/openapi_openai/models/vector_store_file_object_chunking_strategy.rb +105 -0
  1058. data/lib/openapi_openai/models/vector_store_file_object_last_error.rb +217 -0
  1059. data/lib/openapi_openai/models/vector_store_object.rb +399 -0
  1060. data/lib/openapi_openai/models/vector_store_object_file_counts.rb +273 -0
  1061. data/lib/openapi_openai/version.rb +4 -4
  1062. data/lib/openapi_openai.rb +487 -21
  1063. data/openapi_openai.gemspec +4 -4
  1064. data/spec/api/assistants_api_spec.rb +324 -0
  1065. data/spec/api/audio_api_spec.rb +78 -0
  1066. data/spec/api/audit_logs_api_spec.rb +54 -0
  1067. data/spec/api/batch_api_spec.rb +80 -0
  1068. data/spec/api/chat_api_spec.rb +46 -0
  1069. data/spec/api/completions_api_spec.rb +46 -0
  1070. data/spec/api/default_api_spec.rb +85 -0
  1071. data/spec/api/embeddings_api_spec.rb +46 -0
  1072. data/spec/api/files_api_spec.rb +94 -0
  1073. data/spec/api/fine_tuning_api_spec.rb +106 -0
  1074. data/spec/api/images_api_spec.rb +80 -0
  1075. data/spec/api/invites_api_spec.rb +80 -0
  1076. data/spec/api/models_api_spec.rb +67 -0
  1077. data/spec/api/moderations_api_spec.rb +46 -0
  1078. data/spec/api/projects_api_spec.rb +268 -0
  1079. data/spec/api/realtime_api_spec.rb +46 -0
  1080. data/spec/api/uploads_api_spec.rb +81 -0
  1081. data/spec/api/usage_api_spec.rb +209 -0
  1082. data/spec/api/users_api_spec.rb +81 -0
  1083. data/spec/api/vector_stores_api_spec.rb +199 -0
  1084. data/spec/models/admin_api_key_owner_spec.rb +60 -0
  1085. data/spec/models/admin_api_key_spec.rb +72 -0
  1086. data/spec/models/admin_api_keys_create_request_spec.rb +36 -0
  1087. data/spec/models/admin_api_keys_delete200_response_spec.rb +48 -0
  1088. data/spec/models/api_key_list_spec.rb +60 -0
  1089. data/spec/models/array_of_content_parts_inner_spec.rb +32 -0
  1090. data/spec/models/{fine_tune_spec.rb → assistant_object_spec.rb} +23 -19
  1091. data/spec/models/assistant_object_tool_resources_code_interpreter_spec.rb +36 -0
  1092. data/spec/models/assistant_object_tool_resources_file_search_spec.rb +36 -0
  1093. data/spec/models/assistant_object_tool_resources_spec.rb +42 -0
  1094. data/spec/models/assistant_object_tools_inner_spec.rb +32 -0
  1095. data/spec/models/assistant_stream_event_spec.rb +32 -0
  1096. data/spec/models/assistant_tools_code_spec.rb +40 -0
  1097. data/spec/models/assistant_tools_file_search_file_search_spec.rb +42 -0
  1098. data/spec/models/assistant_tools_file_search_spec.rb +46 -0
  1099. data/spec/models/assistant_tools_file_search_type_only_spec.rb +40 -0
  1100. data/spec/models/assistant_tools_function_spec.rb +46 -0
  1101. data/spec/models/assistants_api_response_format_option_spec.rb +32 -0
  1102. data/spec/models/assistants_api_tool_choice_option_spec.rb +32 -0
  1103. data/spec/models/assistants_named_tool_choice_function_spec.rb +36 -0
  1104. data/spec/models/assistants_named_tool_choice_spec.rb +46 -0
  1105. data/spec/models/audio_response_format_spec.rb +30 -0
  1106. data/spec/models/audit_log_actor_api_key_spec.rb +58 -0
  1107. data/spec/models/audit_log_actor_service_account_spec.rb +36 -0
  1108. data/spec/models/audit_log_actor_session_spec.rb +42 -0
  1109. data/spec/models/audit_log_actor_spec.rb +52 -0
  1110. data/spec/models/audit_log_actor_user_spec.rb +42 -0
  1111. data/spec/models/audit_log_api_key_created_data_spec.rb +36 -0
  1112. data/spec/models/audit_log_api_key_created_spec.rb +42 -0
  1113. data/spec/models/audit_log_api_key_deleted_spec.rb +36 -0
  1114. data/spec/models/audit_log_api_key_updated_changes_requested_spec.rb +36 -0
  1115. data/spec/models/audit_log_api_key_updated_spec.rb +42 -0
  1116. data/spec/models/audit_log_event_type_spec.rb +30 -0
  1117. data/spec/models/audit_log_invite_accepted_spec.rb +36 -0
  1118. data/spec/models/audit_log_invite_sent_data_spec.rb +42 -0
  1119. data/spec/models/audit_log_invite_sent_spec.rb +42 -0
  1120. data/spec/models/audit_log_login_failed_spec.rb +42 -0
  1121. data/spec/models/audit_log_organization_updated_changes_requested_settings_spec.rb +42 -0
  1122. data/spec/models/audit_log_organization_updated_changes_requested_spec.rb +54 -0
  1123. data/spec/models/audit_log_organization_updated_spec.rb +42 -0
  1124. data/spec/models/audit_log_project_archived_spec.rb +36 -0
  1125. data/spec/models/audit_log_project_created_data_spec.rb +42 -0
  1126. data/spec/models/audit_log_project_created_spec.rb +42 -0
  1127. data/spec/models/audit_log_project_spec.rb +42 -0
  1128. data/spec/models/audit_log_project_updated_changes_requested_spec.rb +36 -0
  1129. data/spec/models/audit_log_project_updated_spec.rb +42 -0
  1130. data/spec/models/audit_log_rate_limit_deleted_spec.rb +36 -0
  1131. data/spec/models/audit_log_rate_limit_updated_changes_requested_spec.rb +66 -0
  1132. data/spec/models/audit_log_rate_limit_updated_spec.rb +42 -0
  1133. data/spec/models/audit_log_service_account_created_data_spec.rb +36 -0
  1134. data/spec/models/audit_log_service_account_created_spec.rb +42 -0
  1135. data/spec/models/audit_log_service_account_deleted_spec.rb +36 -0
  1136. data/spec/models/audit_log_service_account_updated_changes_requested_spec.rb +36 -0
  1137. data/spec/models/audit_log_service_account_updated_spec.rb +42 -0
  1138. data/spec/models/audit_log_spec.rb +180 -0
  1139. data/spec/models/audit_log_user_added_data_spec.rb +36 -0
  1140. data/spec/models/{list_fine_tune_events_response_spec.rb → audit_log_user_added_spec.rb} +10 -10
  1141. data/spec/models/audit_log_user_deleted_spec.rb +36 -0
  1142. data/spec/models/audit_log_user_updated_changes_requested_spec.rb +36 -0
  1143. data/spec/models/audit_log_user_updated_spec.rb +42 -0
  1144. data/spec/models/auto_chunking_strategy_request_param_spec.rb +40 -0
  1145. data/spec/models/auto_chunking_strategy_spec.rb +40 -0
  1146. data/spec/models/batch_errors_data_inner_spec.rb +54 -0
  1147. data/spec/models/{list_fine_tunes_response_spec.rb → batch_errors_spec.rb} +9 -9
  1148. data/spec/models/batch_request_counts_spec.rb +48 -0
  1149. data/spec/models/batch_request_input_spec.rb +52 -0
  1150. data/spec/models/batch_request_output_error_spec.rb +42 -0
  1151. data/spec/models/batch_request_output_response_spec.rb +48 -0
  1152. data/spec/models/batch_request_output_spec.rb +54 -0
  1153. data/spec/models/batch_spec.rb +158 -0
  1154. data/spec/models/{create_chat_completion_request_function_call_one_of_spec.rb → chat_completion_function_call_option_spec.rb} +9 -9
  1155. data/spec/models/chat_completion_functions_spec.rb +6 -6
  1156. data/spec/models/chat_completion_message_tool_call_chunk_function_spec.rb +42 -0
  1157. data/spec/models/{create_edit_response_choices_inner_spec.rb → chat_completion_message_tool_call_chunk_spec.rb} +17 -17
  1158. data/spec/models/{chat_completion_request_message_function_call_spec.rb → chat_completion_message_tool_call_function_spec.rb} +9 -9
  1159. data/spec/models/chat_completion_message_tool_call_spec.rb +52 -0
  1160. data/spec/models/chat_completion_named_tool_choice_spec.rb +46 -0
  1161. data/spec/models/chat_completion_request_assistant_message_audio_spec.rb +36 -0
  1162. data/spec/models/chat_completion_request_assistant_message_content_part_spec.rb +32 -0
  1163. data/spec/models/chat_completion_request_assistant_message_content_spec.rb +32 -0
  1164. data/spec/models/chat_completion_request_assistant_message_function_call_spec.rb +42 -0
  1165. data/spec/models/chat_completion_request_assistant_message_spec.rb +76 -0
  1166. data/spec/models/chat_completion_request_developer_message_content_spec.rb +32 -0
  1167. data/spec/models/chat_completion_request_developer_message_spec.rb +52 -0
  1168. data/spec/models/chat_completion_request_function_message_spec.rb +52 -0
  1169. data/spec/models/chat_completion_request_message_content_part_audio_input_audio_spec.rb +46 -0
  1170. data/spec/models/chat_completion_request_message_content_part_audio_spec.rb +46 -0
  1171. data/spec/models/chat_completion_request_message_content_part_image_image_url_spec.rb +46 -0
  1172. data/spec/models/chat_completion_request_message_content_part_image_spec.rb +46 -0
  1173. data/spec/models/chat_completion_request_message_content_part_refusal_spec.rb +46 -0
  1174. data/spec/models/chat_completion_request_message_content_part_text_spec.rb +46 -0
  1175. data/spec/models/chat_completion_request_message_spec.rb +8 -34
  1176. data/spec/models/chat_completion_request_system_message_content_spec.rb +32 -0
  1177. data/spec/models/chat_completion_request_system_message_spec.rb +52 -0
  1178. data/spec/models/chat_completion_request_tool_message_content_spec.rb +32 -0
  1179. data/spec/models/chat_completion_request_tool_message_spec.rb +52 -0
  1180. data/spec/models/chat_completion_request_user_message_content_part_spec.rb +32 -0
  1181. data/spec/models/chat_completion_request_user_message_content_spec.rb +32 -0
  1182. data/spec/models/chat_completion_request_user_message_spec.rb +52 -0
  1183. data/spec/models/chat_completion_response_message_audio_spec.rb +54 -0
  1184. data/spec/models/chat_completion_response_message_function_call_spec.rb +42 -0
  1185. data/spec/models/chat_completion_response_message_spec.rb +25 -7
  1186. data/spec/models/chat_completion_role_spec.rb +30 -0
  1187. data/spec/models/chat_completion_stream_options_spec.rb +36 -0
  1188. data/spec/models/chat_completion_stream_response_delta_function_call_spec.rb +42 -0
  1189. data/spec/models/chat_completion_stream_response_delta_spec.rb +23 -11
  1190. data/spec/models/{create_edit_response_spec.rb → chat_completion_token_logprob_spec.rb} +13 -13
  1191. data/spec/models/chat_completion_token_logprob_top_logprobs_inner_spec.rb +48 -0
  1192. data/spec/models/chat_completion_tool_choice_option_spec.rb +32 -0
  1193. data/spec/models/chat_completion_tool_spec.rb +46 -0
  1194. data/spec/models/chunking_strategy_request_param_spec.rb +32 -0
  1195. data/spec/models/complete_upload_request_spec.rb +42 -0
  1196. data/spec/models/completion_usage_completion_tokens_details_spec.rb +54 -0
  1197. data/spec/models/completion_usage_prompt_tokens_details_spec.rb +42 -0
  1198. data/spec/models/{create_edit_request_spec.rb → completion_usage_spec.rb} +14 -20
  1199. data/spec/models/costs_result_amount_spec.rb +42 -0
  1200. data/spec/models/costs_result_spec.rb +58 -0
  1201. data/spec/models/create_assistant_request_model_spec.rb +21 -0
  1202. data/spec/models/create_assistant_request_spec.rb +90 -0
  1203. data/spec/models/create_assistant_request_tool_resources_code_interpreter_spec.rb +36 -0
  1204. data/spec/models/create_assistant_request_tool_resources_file_search_spec.rb +42 -0
  1205. data/spec/models/create_assistant_request_tool_resources_file_search_vector_stores_inner_chunking_strategy_spec.rb +32 -0
  1206. data/spec/models/create_assistant_request_tool_resources_file_search_vector_stores_inner_spec.rb +48 -0
  1207. data/spec/models/create_assistant_request_tool_resources_spec.rb +42 -0
  1208. data/spec/models/create_batch_request_spec.rb +62 -0
  1209. data/spec/models/create_chat_completion_function_response_choices_inner_spec.rb +52 -0
  1210. data/spec/models/create_chat_completion_function_response_spec.rb +76 -0
  1211. data/spec/models/create_chat_completion_request_audio_spec.rb +50 -0
  1212. data/spec/models/create_chat_completion_request_function_call_spec.rb +3 -3
  1213. data/spec/models/create_chat_completion_request_model_spec.rb +3 -14
  1214. data/spec/models/create_chat_completion_request_response_format_spec.rb +32 -0
  1215. data/spec/models/create_chat_completion_request_spec.rb +122 -14
  1216. data/spec/models/create_chat_completion_request_stop_spec.rb +3 -3
  1217. data/spec/models/create_chat_completion_response_choices_inner_logprobs_spec.rb +42 -0
  1218. data/spec/models/create_chat_completion_response_choices_inner_spec.rb +15 -9
  1219. data/spec/models/create_chat_completion_response_spec.rb +26 -6
  1220. data/spec/models/create_chat_completion_stream_response_choices_inner_spec.rb +13 -7
  1221. data/spec/models/create_chat_completion_stream_response_spec.rb +32 -6
  1222. data/spec/models/create_chat_completion_stream_response_usage_spec.rb +48 -0
  1223. data/spec/models/create_completion_request_model_spec.rb +3 -14
  1224. data/spec/models/create_completion_request_prompt_spec.rb +3 -3
  1225. data/spec/models/create_completion_request_spec.rb +28 -16
  1226. data/spec/models/create_completion_request_stop_spec.rb +3 -3
  1227. data/spec/models/create_completion_response_choices_inner_logprobs_spec.rb +7 -7
  1228. data/spec/models/create_completion_response_choices_inner_spec.rb +10 -10
  1229. data/spec/models/create_completion_response_spec.rb +16 -6
  1230. data/spec/models/create_embedding_request_input_spec.rb +3 -3
  1231. data/spec/models/create_embedding_request_model_spec.rb +3 -14
  1232. data/spec/models/create_embedding_request_spec.rb +21 -5
  1233. data/spec/models/create_embedding_response_spec.rb +10 -6
  1234. data/spec/models/create_embedding_response_usage_spec.rb +4 -4
  1235. data/spec/models/create_fine_tuning_job_request_hyperparameters_batch_size_spec.rb +32 -0
  1236. data/spec/models/create_fine_tuning_job_request_hyperparameters_learning_rate_multiplier_spec.rb +32 -0
  1237. data/spec/models/create_fine_tuning_job_request_hyperparameters_n_epochs_spec.rb +32 -0
  1238. data/spec/models/create_fine_tuning_job_request_hyperparameters_spec.rb +48 -0
  1239. data/spec/models/create_fine_tuning_job_request_integrations_inner_spec.rb +46 -0
  1240. data/spec/models/create_fine_tuning_job_request_integrations_inner_wandb_spec.rb +54 -0
  1241. data/spec/models/create_fine_tuning_job_request_model_spec.rb +21 -0
  1242. data/spec/models/create_fine_tuning_job_request_spec.rb +78 -0
  1243. data/spec/models/create_image_edit_request_model_spec.rb +21 -0
  1244. data/spec/models/create_image_request_model_spec.rb +21 -0
  1245. data/spec/models/create_image_request_spec.rb +33 -7
  1246. data/spec/models/create_message_request_attachments_inner_spec.rb +42 -0
  1247. data/spec/models/create_message_request_attachments_inner_tools_inner_spec.rb +32 -0
  1248. data/spec/models/create_message_request_content_spec.rb +32 -0
  1249. data/spec/models/create_message_request_spec.rb +58 -0
  1250. data/spec/models/create_moderation_request_input_one_of_inner_one_of1_spec.rb +46 -0
  1251. data/spec/models/create_moderation_request_input_one_of_inner_one_of_image_url_spec.rb +36 -0
  1252. data/spec/models/create_moderation_request_input_one_of_inner_one_of_spec.rb +46 -0
  1253. data/spec/models/create_moderation_request_input_one_of_inner_spec.rb +32 -0
  1254. data/spec/models/create_moderation_request_input_spec.rb +3 -3
  1255. data/spec/models/create_moderation_request_model_spec.rb +3 -14
  1256. data/spec/models/create_moderation_request_spec.rb +4 -4
  1257. data/spec/models/create_moderation_response_results_inner_categories_spec.rb +40 -4
  1258. data/spec/models/create_moderation_response_results_inner_category_applied_input_types_spec.rb +160 -0
  1259. data/spec/models/create_moderation_response_results_inner_category_scores_spec.rb +40 -4
  1260. data/spec/models/create_moderation_response_results_inner_spec.rb +10 -4
  1261. data/spec/models/create_moderation_response_spec.rb +4 -4
  1262. data/spec/models/create_run_request_model_spec.rb +21 -0
  1263. data/spec/models/create_run_request_spec.rb +126 -0
  1264. data/spec/models/create_speech_request_model_spec.rb +21 -0
  1265. data/spec/models/create_speech_request_spec.rb +68 -0
  1266. data/spec/models/create_thread_and_run_request_spec.rb +126 -0
  1267. data/spec/models/create_thread_and_run_request_tool_resources_spec.rb +42 -0
  1268. data/spec/models/create_thread_and_run_request_tools_inner_spec.rb +32 -0
  1269. data/spec/models/{create_embedding_response_data_inner_spec.rb → create_thread_request_spec.rb} +12 -12
  1270. data/spec/models/create_thread_request_tool_resources_file_search_spec.rb +42 -0
  1271. data/spec/models/create_thread_request_tool_resources_file_search_vector_stores_inner_spec.rb +48 -0
  1272. data/spec/models/create_thread_request_tool_resources_spec.rb +42 -0
  1273. data/spec/models/create_transcription200_response_spec.rb +32 -0
  1274. data/spec/models/create_transcription_request_model_spec.rb +3 -14
  1275. data/spec/models/{create_transcription_response_spec.rb → create_transcription_response_json_spec.rb} +9 -9
  1276. data/spec/models/create_transcription_response_verbose_json_spec.rb +60 -0
  1277. data/spec/models/create_translation200_response_spec.rb +32 -0
  1278. data/spec/models/{create_translation_response_spec.rb → create_translation_response_json_spec.rb} +9 -9
  1279. data/spec/models/create_translation_response_verbose_json_spec.rb +54 -0
  1280. data/spec/models/create_upload_request_spec.rb +58 -0
  1281. data/spec/models/create_vector_store_file_batch_request_spec.rb +42 -0
  1282. data/spec/models/create_vector_store_file_request_spec.rb +42 -0
  1283. data/spec/models/create_vector_store_request_chunking_strategy_spec.rb +32 -0
  1284. data/spec/models/create_vector_store_request_spec.rb +60 -0
  1285. data/spec/models/default_project_error_response_spec.rb +42 -0
  1286. data/spec/models/delete_assistant_response_spec.rb +52 -0
  1287. data/spec/models/delete_file_response_spec.rb +8 -4
  1288. data/spec/models/delete_message_response_spec.rb +52 -0
  1289. data/spec/models/delete_model_response_spec.rb +6 -6
  1290. data/spec/models/delete_thread_response_spec.rb +52 -0
  1291. data/spec/models/delete_vector_store_file_response_spec.rb +52 -0
  1292. data/spec/models/delete_vector_store_response_spec.rb +52 -0
  1293. data/spec/models/done_event_spec.rb +50 -0
  1294. data/spec/models/embedding_spec.rb +52 -0
  1295. data/spec/models/error_event_spec.rb +46 -0
  1296. data/spec/models/error_response_spec.rb +4 -4
  1297. data/spec/models/error_spec.rb +6 -6
  1298. data/spec/models/file_search_ranking_options_spec.rb +46 -0
  1299. data/spec/models/fine_tune_chat_completion_request_assistant_message_spec.rb +86 -0
  1300. data/spec/models/fine_tune_chat_request_input_messages_inner_spec.rb +32 -0
  1301. data/spec/models/fine_tune_chat_request_input_spec.rb +54 -0
  1302. data/spec/models/fine_tune_completion_request_input_spec.rb +42 -0
  1303. data/spec/models/fine_tune_dpo_method_hyperparameters_batch_size_spec.rb +32 -0
  1304. data/spec/models/fine_tune_dpo_method_hyperparameters_beta_spec.rb +32 -0
  1305. data/spec/models/fine_tune_dpo_method_hyperparameters_learning_rate_multiplier_spec.rb +32 -0
  1306. data/spec/models/fine_tune_dpo_method_hyperparameters_n_epochs_spec.rb +32 -0
  1307. data/spec/models/fine_tune_dpo_method_hyperparameters_spec.rb +54 -0
  1308. data/spec/models/fine_tune_dpo_method_spec.rb +36 -0
  1309. data/spec/models/fine_tune_method_spec.rb +52 -0
  1310. data/spec/models/fine_tune_preference_request_input_input_spec.rb +48 -0
  1311. data/spec/models/fine_tune_preference_request_input_preferred_completion_inner_spec.rb +32 -0
  1312. data/spec/models/fine_tune_preference_request_input_spec.rb +48 -0
  1313. data/spec/models/fine_tune_supervised_method_hyperparameters_spec.rb +48 -0
  1314. data/spec/models/fine_tune_supervised_method_spec.rb +36 -0
  1315. data/spec/models/fine_tuning_integration_spec.rb +46 -0
  1316. data/spec/models/fine_tuning_job_checkpoint_metrics_spec.rb +72 -0
  1317. data/spec/models/fine_tuning_job_checkpoint_spec.rb +76 -0
  1318. data/spec/models/fine_tuning_job_error_spec.rb +48 -0
  1319. data/spec/models/fine_tuning_job_event_spec.rb +84 -0
  1320. data/spec/models/fine_tuning_job_hyperparameters_spec.rb +48 -0
  1321. data/spec/models/fine_tuning_job_integrations_inner_spec.rb +32 -0
  1322. data/spec/models/fine_tuning_job_spec.rb +146 -0
  1323. data/spec/models/{fine_tune_event_spec.rb → function_object_spec.rb} +13 -13
  1324. data/spec/models/{images_response_data_inner_spec.rb → image_spec.rb} +16 -10
  1325. data/spec/models/images_response_spec.rb +4 -4
  1326. data/spec/models/invite_delete_response_spec.rb +52 -0
  1327. data/spec/models/invite_list_response_spec.rb +64 -0
  1328. data/spec/models/invite_projects_inner_spec.rb +46 -0
  1329. data/spec/models/invite_request_projects_inner_spec.rb +46 -0
  1330. data/spec/models/invite_request_spec.rb +52 -0
  1331. data/spec/models/invite_spec.rb +96 -0
  1332. data/spec/models/list_assistants_response_spec.rb +60 -0
  1333. data/spec/models/list_audit_logs_effective_at_parameter_spec.rb +54 -0
  1334. data/spec/models/list_audit_logs_response_spec.rb +64 -0
  1335. data/spec/models/list_batches_response_spec.rb +64 -0
  1336. data/spec/models/list_files_response_spec.rb +22 -4
  1337. data/spec/models/list_fine_tuning_job_checkpoints_response_spec.rb +64 -0
  1338. data/spec/models/list_fine_tuning_job_events_response_spec.rb +46 -0
  1339. data/spec/models/list_messages_response_spec.rb +60 -0
  1340. data/spec/models/list_models_response_spec.rb +8 -4
  1341. data/spec/models/list_paginated_fine_tuning_jobs_response_spec.rb +52 -0
  1342. data/spec/models/list_run_steps_response_spec.rb +60 -0
  1343. data/spec/models/list_runs_response_spec.rb +60 -0
  1344. data/spec/models/list_threads_response_spec.rb +60 -0
  1345. data/spec/models/list_vector_store_files_response_spec.rb +60 -0
  1346. data/spec/models/list_vector_stores_response_spec.rb +60 -0
  1347. data/spec/models/message_content_image_file_object_image_file_spec.rb +46 -0
  1348. data/spec/models/message_content_image_file_object_spec.rb +46 -0
  1349. data/spec/models/message_content_image_url_object_image_url_spec.rb +46 -0
  1350. data/spec/models/message_content_image_url_object_spec.rb +46 -0
  1351. data/spec/models/message_content_refusal_object_spec.rb +46 -0
  1352. data/spec/models/message_content_text_annotations_file_citation_object_file_citation_spec.rb +36 -0
  1353. data/spec/models/message_content_text_annotations_file_citation_object_spec.rb +64 -0
  1354. data/spec/models/message_content_text_annotations_file_path_object_file_path_spec.rb +36 -0
  1355. data/spec/models/message_content_text_annotations_file_path_object_spec.rb +64 -0
  1356. data/spec/models/message_content_text_object_spec.rb +46 -0
  1357. data/spec/models/message_content_text_object_text_annotations_inner_spec.rb +32 -0
  1358. data/spec/models/message_content_text_object_text_spec.rb +42 -0
  1359. data/spec/models/message_delta_content_image_file_object_image_file_spec.rb +46 -0
  1360. data/spec/models/message_delta_content_image_file_object_spec.rb +52 -0
  1361. data/spec/models/message_delta_content_image_url_object_image_url_spec.rb +46 -0
  1362. data/spec/models/message_delta_content_image_url_object_spec.rb +52 -0
  1363. data/spec/models/message_delta_content_refusal_object_spec.rb +52 -0
  1364. data/spec/models/message_delta_content_text_annotations_file_citation_object_file_citation_spec.rb +42 -0
  1365. data/spec/models/message_delta_content_text_annotations_file_citation_object_spec.rb +70 -0
  1366. data/spec/models/message_delta_content_text_annotations_file_path_object_file_path_spec.rb +36 -0
  1367. data/spec/models/message_delta_content_text_annotations_file_path_object_spec.rb +70 -0
  1368. data/spec/models/message_delta_content_text_object_spec.rb +52 -0
  1369. data/spec/models/message_delta_content_text_object_text_annotations_inner_spec.rb +32 -0
  1370. data/spec/models/message_delta_content_text_object_text_spec.rb +42 -0
  1371. data/spec/models/message_delta_object_delta_content_inner_spec.rb +32 -0
  1372. data/spec/models/message_delta_object_delta_spec.rb +46 -0
  1373. data/spec/models/message_delta_object_spec.rb +52 -0
  1374. data/spec/models/message_object_content_inner_spec.rb +32 -0
  1375. data/spec/models/message_object_incomplete_details_spec.rb +40 -0
  1376. data/spec/models/message_object_spec.rb +126 -0
  1377. data/spec/models/message_request_content_text_object_spec.rb +46 -0
  1378. data/spec/models/message_stream_event_one_of1_spec.rb +46 -0
  1379. data/spec/models/message_stream_event_one_of2_spec.rb +46 -0
  1380. data/spec/models/message_stream_event_one_of3_spec.rb +46 -0
  1381. data/spec/models/message_stream_event_one_of4_spec.rb +46 -0
  1382. data/spec/models/message_stream_event_one_of_spec.rb +46 -0
  1383. data/spec/models/{create_fine_tune_request_model_spec.rb → message_stream_event_spec.rb} +5 -5
  1384. data/spec/models/model_spec.rb +10 -6
  1385. data/spec/models/modify_assistant_request_spec.rb +90 -0
  1386. data/spec/models/modify_assistant_request_tool_resources_code_interpreter_spec.rb +36 -0
  1387. data/spec/models/modify_assistant_request_tool_resources_file_search_spec.rb +36 -0
  1388. data/spec/models/modify_assistant_request_tool_resources_spec.rb +42 -0
  1389. data/spec/models/modify_message_request_spec.rb +36 -0
  1390. data/spec/models/modify_run_request_spec.rb +36 -0
  1391. data/spec/models/modify_thread_request_spec.rb +42 -0
  1392. data/spec/models/modify_thread_request_tool_resources_file_search_spec.rb +36 -0
  1393. data/spec/models/modify_thread_request_tool_resources_spec.rb +42 -0
  1394. data/spec/models/open_ai_file_spec.rb +20 -8
  1395. data/spec/models/other_chunking_strategy_response_param_spec.rb +40 -0
  1396. data/spec/models/prediction_content_content_spec.rb +32 -0
  1397. data/spec/models/prediction_content_spec.rb +46 -0
  1398. data/spec/models/project_api_key_delete_response_spec.rb +52 -0
  1399. data/spec/models/project_api_key_list_response_spec.rb +64 -0
  1400. data/spec/models/project_api_key_owner_spec.rb +52 -0
  1401. data/spec/models/project_api_key_spec.rb +70 -0
  1402. data/spec/models/project_create_request_spec.rb +36 -0
  1403. data/spec/models/project_list_response_spec.rb +64 -0
  1404. data/spec/models/project_rate_limit_list_response_spec.rb +64 -0
  1405. data/spec/models/project_rate_limit_spec.rb +88 -0
  1406. data/spec/models/project_rate_limit_update_request_spec.rb +66 -0
  1407. data/spec/models/project_service_account_api_key_spec.rb +64 -0
  1408. data/spec/models/project_service_account_create_request_spec.rb +36 -0
  1409. data/spec/models/project_service_account_create_response_spec.rb +74 -0
  1410. data/spec/models/project_service_account_delete_response_spec.rb +52 -0
  1411. data/spec/models/project_service_account_list_response_spec.rb +64 -0
  1412. data/spec/models/project_service_account_spec.rb +68 -0
  1413. data/spec/models/project_spec.rb +74 -0
  1414. data/spec/models/project_update_request_spec.rb +36 -0
  1415. data/spec/models/project_user_create_request_spec.rb +46 -0
  1416. data/spec/models/project_user_delete_response_spec.rb +52 -0
  1417. data/spec/models/project_user_list_response_spec.rb +60 -0
  1418. data/spec/models/project_user_spec.rb +74 -0
  1419. data/spec/models/project_user_update_request_spec.rb +40 -0
  1420. data/spec/models/realtime_client_event_conversation_item_create_spec.rb +58 -0
  1421. data/spec/models/realtime_client_event_conversation_item_delete_spec.rb +52 -0
  1422. data/spec/models/realtime_client_event_conversation_item_truncate_spec.rb +64 -0
  1423. data/spec/models/realtime_client_event_input_audio_buffer_append_spec.rb +52 -0
  1424. data/spec/models/realtime_client_event_input_audio_buffer_clear_spec.rb +46 -0
  1425. data/spec/models/realtime_client_event_input_audio_buffer_commit_spec.rb +46 -0
  1426. data/spec/models/realtime_client_event_response_cancel_spec.rb +52 -0
  1427. data/spec/models/realtime_client_event_response_create_spec.rb +52 -0
  1428. data/spec/models/realtime_client_event_session_update_spec.rb +52 -0
  1429. data/spec/models/realtime_conversation_item_content_inner_spec.rb +64 -0
  1430. data/spec/models/realtime_conversation_item_spec.rb +106 -0
  1431. data/spec/models/realtime_response_create_params_conversation_spec.rb +32 -0
  1432. data/spec/models/realtime_response_create_params_max_response_output_tokens_spec.rb +32 -0
  1433. data/spec/models/realtime_response_create_params_spec.rb +108 -0
  1434. data/spec/models/realtime_response_create_params_tools_inner_spec.rb +58 -0
  1435. data/spec/models/realtime_response_spec.rb +80 -0
  1436. data/spec/models/realtime_response_status_details_error_spec.rb +42 -0
  1437. data/spec/models/realtime_response_status_details_spec.rb +56 -0
  1438. data/spec/models/realtime_response_usage_input_token_details_spec.rb +48 -0
  1439. data/spec/models/realtime_response_usage_output_token_details_spec.rb +42 -0
  1440. data/spec/models/realtime_response_usage_spec.rb +60 -0
  1441. data/spec/models/realtime_server_event_conversation_created_conversation_spec.rb +42 -0
  1442. data/spec/models/realtime_server_event_conversation_created_spec.rb +52 -0
  1443. data/spec/models/realtime_server_event_conversation_item_created_spec.rb +58 -0
  1444. data/spec/models/realtime_server_event_conversation_item_deleted_spec.rb +52 -0
  1445. data/spec/models/realtime_server_event_conversation_item_input_audio_transcription_completed_spec.rb +64 -0
  1446. data/spec/models/realtime_server_event_conversation_item_input_audio_transcription_failed_error_spec.rb +54 -0
  1447. data/spec/models/realtime_server_event_conversation_item_input_audio_transcription_failed_spec.rb +64 -0
  1448. data/spec/models/realtime_server_event_conversation_item_truncated_spec.rb +64 -0
  1449. data/spec/models/realtime_server_event_error_error_spec.rb +60 -0
  1450. data/spec/models/realtime_server_event_error_spec.rb +52 -0
  1451. data/spec/models/realtime_server_event_input_audio_buffer_cleared_spec.rb +46 -0
  1452. data/spec/models/realtime_server_event_input_audio_buffer_committed_spec.rb +58 -0
  1453. data/spec/models/realtime_server_event_input_audio_buffer_speech_started_spec.rb +58 -0
  1454. data/spec/models/realtime_server_event_input_audio_buffer_speech_stopped_spec.rb +58 -0
  1455. data/spec/models/realtime_server_event_rate_limits_updated_rate_limits_inner_spec.rb +58 -0
  1456. data/spec/models/realtime_server_event_rate_limits_updated_spec.rb +52 -0
  1457. data/spec/models/realtime_server_event_response_audio_delta_spec.rb +76 -0
  1458. data/spec/models/realtime_server_event_response_audio_done_spec.rb +70 -0
  1459. data/spec/models/realtime_server_event_response_audio_transcript_delta_spec.rb +76 -0
  1460. data/spec/models/realtime_server_event_response_audio_transcript_done_spec.rb +76 -0
  1461. data/spec/models/realtime_server_event_response_content_part_added_part_spec.rb +58 -0
  1462. data/spec/models/realtime_server_event_response_content_part_added_spec.rb +76 -0
  1463. data/spec/models/realtime_server_event_response_content_part_done_part_spec.rb +58 -0
  1464. data/spec/models/realtime_server_event_response_content_part_done_spec.rb +76 -0
  1465. data/spec/models/realtime_server_event_response_created_spec.rb +52 -0
  1466. data/spec/models/realtime_server_event_response_done_spec.rb +52 -0
  1467. data/spec/models/realtime_server_event_response_function_call_arguments_delta_spec.rb +76 -0
  1468. data/spec/models/realtime_server_event_response_function_call_arguments_done_spec.rb +76 -0
  1469. data/spec/models/realtime_server_event_response_output_item_added_spec.rb +64 -0
  1470. data/spec/models/realtime_server_event_response_output_item_done_spec.rb +64 -0
  1471. data/spec/models/realtime_server_event_response_text_delta_spec.rb +76 -0
  1472. data/spec/models/realtime_server_event_response_text_done_spec.rb +76 -0
  1473. data/spec/models/realtime_server_event_session_created_spec.rb +52 -0
  1474. data/spec/models/realtime_server_event_session_updated_spec.rb +52 -0
  1475. data/spec/models/realtime_session_create_request_spec.rb +122 -0
  1476. data/spec/models/realtime_session_create_request_turn_detection_spec.rb +60 -0
  1477. data/spec/models/realtime_session_create_response_client_secret_spec.rb +42 -0
  1478. data/spec/models/realtime_session_create_response_spec.rb +110 -0
  1479. data/spec/models/realtime_session_create_response_turn_detection_spec.rb +54 -0
  1480. data/spec/models/realtime_session_input_audio_transcription_spec.rb +36 -0
  1481. data/spec/models/realtime_session_model_spec.rb +21 -0
  1482. data/spec/models/realtime_session_spec.rb +124 -0
  1483. data/spec/models/realtime_session_turn_detection_spec.rb +58 -0
  1484. data/spec/models/response_format_json_object_spec.rb +40 -0
  1485. data/spec/models/response_format_json_schema_json_schema_spec.rb +54 -0
  1486. data/spec/models/response_format_json_schema_spec.rb +46 -0
  1487. data/spec/models/response_format_text_spec.rb +40 -0
  1488. data/spec/models/{create_completion_response_usage_spec.rb → run_completion_usage_spec.rb} +11 -11
  1489. data/spec/models/run_object_incomplete_details_spec.rb +40 -0
  1490. data/spec/models/run_object_last_error_spec.rb +46 -0
  1491. data/spec/models/run_object_required_action_spec.rb +46 -0
  1492. data/spec/models/run_object_required_action_submit_tool_outputs_spec.rb +36 -0
  1493. data/spec/models/run_object_spec.rb +200 -0
  1494. data/spec/models/run_step_completion_usage_spec.rb +48 -0
  1495. data/spec/models/run_step_delta_object_delta_spec.rb +36 -0
  1496. data/spec/models/run_step_delta_object_delta_step_details_spec.rb +32 -0
  1497. data/spec/models/run_step_delta_object_spec.rb +52 -0
  1498. data/spec/models/run_step_delta_step_details_message_creation_object_message_creation_spec.rb +36 -0
  1499. data/spec/models/run_step_delta_step_details_message_creation_object_spec.rb +46 -0
  1500. data/spec/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_outputs_inner_spec.rb +32 -0
  1501. data/spec/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_spec.rb +42 -0
  1502. data/spec/models/run_step_delta_step_details_tool_calls_code_object_spec.rb +58 -0
  1503. data/spec/models/run_step_delta_step_details_tool_calls_code_output_image_object_image_spec.rb +36 -0
  1504. data/spec/models/run_step_delta_step_details_tool_calls_code_output_image_object_spec.rb +52 -0
  1505. data/spec/models/run_step_delta_step_details_tool_calls_code_output_logs_object_spec.rb +52 -0
  1506. data/spec/models/run_step_delta_step_details_tool_calls_file_search_object_spec.rb +58 -0
  1507. data/spec/models/run_step_delta_step_details_tool_calls_function_object_function_spec.rb +48 -0
  1508. data/spec/models/run_step_delta_step_details_tool_calls_function_object_spec.rb +58 -0
  1509. data/spec/models/run_step_delta_step_details_tool_calls_object_spec.rb +46 -0
  1510. data/spec/models/run_step_delta_step_details_tool_calls_object_tool_calls_inner_spec.rb +32 -0
  1511. data/spec/models/run_step_details_message_creation_object_message_creation_spec.rb +36 -0
  1512. data/spec/models/run_step_details_message_creation_object_spec.rb +46 -0
  1513. data/spec/models/run_step_details_tool_calls_code_object_code_interpreter_outputs_inner_spec.rb +32 -0
  1514. data/spec/models/run_step_details_tool_calls_code_object_code_interpreter_spec.rb +42 -0
  1515. data/spec/models/run_step_details_tool_calls_code_object_spec.rb +52 -0
  1516. data/spec/models/run_step_details_tool_calls_code_output_image_object_image_spec.rb +36 -0
  1517. data/spec/models/run_step_details_tool_calls_code_output_image_object_spec.rb +46 -0
  1518. data/spec/models/run_step_details_tool_calls_code_output_logs_object_spec.rb +46 -0
  1519. data/spec/models/run_step_details_tool_calls_file_search_object_file_search_spec.rb +42 -0
  1520. data/spec/models/run_step_details_tool_calls_file_search_object_spec.rb +52 -0
  1521. data/spec/models/run_step_details_tool_calls_file_search_ranking_options_object_spec.rb +46 -0
  1522. data/spec/models/run_step_details_tool_calls_file_search_result_object_content_inner_spec.rb +46 -0
  1523. data/spec/models/run_step_details_tool_calls_file_search_result_object_spec.rb +54 -0
  1524. data/spec/models/run_step_details_tool_calls_function_object_function_spec.rb +48 -0
  1525. data/spec/models/run_step_details_tool_calls_function_object_spec.rb +52 -0
  1526. data/spec/models/run_step_details_tool_calls_object_spec.rb +46 -0
  1527. data/spec/models/run_step_details_tool_calls_object_tool_calls_inner_spec.rb +32 -0
  1528. data/spec/models/run_step_object_last_error_spec.rb +46 -0
  1529. data/spec/models/run_step_object_spec.rb +138 -0
  1530. data/spec/models/run_step_object_step_details_spec.rb +32 -0
  1531. data/spec/models/run_step_stream_event_one_of1_spec.rb +46 -0
  1532. data/spec/models/run_step_stream_event_one_of2_spec.rb +46 -0
  1533. data/spec/models/run_step_stream_event_one_of3_spec.rb +46 -0
  1534. data/spec/models/run_step_stream_event_one_of4_spec.rb +46 -0
  1535. data/spec/models/run_step_stream_event_one_of5_spec.rb +46 -0
  1536. data/spec/models/run_step_stream_event_one_of6_spec.rb +46 -0
  1537. data/spec/models/run_step_stream_event_one_of_spec.rb +46 -0
  1538. data/spec/models/run_step_stream_event_spec.rb +32 -0
  1539. data/spec/models/run_stream_event_one_of1_spec.rb +46 -0
  1540. data/spec/models/run_stream_event_one_of2_spec.rb +46 -0
  1541. data/spec/models/run_stream_event_one_of3_spec.rb +46 -0
  1542. data/spec/models/run_stream_event_one_of4_spec.rb +46 -0
  1543. data/spec/models/run_stream_event_one_of5_spec.rb +46 -0
  1544. data/spec/models/run_stream_event_one_of6_spec.rb +46 -0
  1545. data/spec/models/run_stream_event_one_of7_spec.rb +46 -0
  1546. data/spec/models/run_stream_event_one_of8_spec.rb +46 -0
  1547. data/spec/models/run_stream_event_one_of9_spec.rb +46 -0
  1548. data/spec/models/run_stream_event_one_of_spec.rb +46 -0
  1549. data/spec/models/{create_edit_request_model_spec.rb → run_stream_event_spec.rb} +5 -5
  1550. data/spec/models/run_tool_call_object_function_spec.rb +42 -0
  1551. data/spec/models/run_tool_call_object_spec.rb +52 -0
  1552. data/spec/models/static_chunking_strategy_request_param_spec.rb +46 -0
  1553. data/spec/models/static_chunking_strategy_response_param_spec.rb +46 -0
  1554. data/spec/models/static_chunking_strategy_spec.rb +46 -0
  1555. data/spec/models/static_chunking_strategy_static_spec.rb +42 -0
  1556. data/spec/models/submit_tool_outputs_run_request_spec.rb +42 -0
  1557. data/spec/models/submit_tool_outputs_run_request_tool_outputs_inner_spec.rb +42 -0
  1558. data/spec/models/thread_object_spec.rb +64 -0
  1559. data/spec/models/thread_stream_event_spec.rb +52 -0
  1560. data/spec/models/transcription_segment_spec.rb +90 -0
  1561. data/spec/models/transcription_word_spec.rb +48 -0
  1562. data/spec/models/truncation_object_spec.rb +46 -0
  1563. data/spec/models/update_vector_store_request_spec.rb +48 -0
  1564. data/spec/models/upload_part_spec.rb +58 -0
  1565. data/spec/models/upload_spec.rb +92 -0
  1566. data/spec/models/usage_audio_speeches_result_spec.rb +76 -0
  1567. data/spec/models/usage_audio_transcriptions_result_spec.rb +76 -0
  1568. data/spec/models/usage_code_interpreter_sessions_result_spec.rb +52 -0
  1569. data/spec/models/{create_fine_tune_request_spec.rb → usage_completions_result_spec.rb} +25 -21
  1570. data/spec/models/usage_embeddings_result_spec.rb +76 -0
  1571. data/spec/models/usage_images_result_spec.rb +88 -0
  1572. data/spec/models/usage_moderations_result_spec.rb +76 -0
  1573. data/spec/models/usage_response_spec.rb +58 -0
  1574. data/spec/models/usage_time_bucket_result_inner_spec.rb +32 -0
  1575. data/spec/models/usage_time_bucket_spec.rb +58 -0
  1576. data/spec/models/usage_vector_stores_result_spec.rb +52 -0
  1577. data/spec/models/user_delete_response_spec.rb +52 -0
  1578. data/spec/models/user_list_response_spec.rb +64 -0
  1579. data/spec/models/user_role_update_request_spec.rb +40 -0
  1580. data/spec/models/user_spec.rb +74 -0
  1581. data/spec/models/vector_store_expiration_after_spec.rb +46 -0
  1582. data/spec/models/vector_store_file_batch_object_file_counts_spec.rb +60 -0
  1583. data/spec/models/vector_store_file_batch_object_spec.rb +74 -0
  1584. data/spec/models/vector_store_file_object_chunking_strategy_spec.rb +32 -0
  1585. data/spec/models/vector_store_file_object_last_error_spec.rb +46 -0
  1586. data/spec/models/vector_store_file_object_spec.rb +86 -0
  1587. data/spec/models/vector_store_object_file_counts_spec.rb +60 -0
  1588. data/spec/models/vector_store_object_spec.rb +104 -0
  1589. data/spec/spec_helper.rb +3 -3
  1590. metadata +1973 -112
  1591. data/bin/bundle +0 -109
  1592. data/docs/CreateCompletionResponseUsage.md +0 -22
  1593. data/docs/CreateEditRequest.md +0 -28
  1594. data/docs/CreateEditResponse.md +0 -24
  1595. data/docs/CreateEditResponseChoicesInner.md +0 -24
  1596. data/docs/CreateEmbeddingResponseDataInner.md +0 -22
  1597. data/docs/CreateFineTuneRequest.md +0 -40
  1598. data/docs/CreateTranslationResponse.md +0 -18
  1599. data/docs/FineTune.md +0 -42
  1600. data/docs/FineTuneEvent.md +0 -24
  1601. data/docs/ImagesResponseDataInner.md +0 -20
  1602. data/docs/ListFineTuneEventsResponse.md +0 -20
  1603. data/docs/OpenAIApi.md +0 -1499
  1604. data/lib/openapi_openai/api/open_ai_api.rb +0 -1583
  1605. data/lib/openapi_openai/models/create_fine_tune_request.rb +0 -374
  1606. data/lib/openapi_openai/models/fine_tune.rb +0 -410
  1607. data/spec/api/open_ai_api_spec.rb +0 -306
@@ -0,0 +1,1655 @@
1
+ =begin
2
+ #OpenAI API
3
+
4
+ #The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
5
+
6
+ The version of the OpenAPI document: 2.3.0
7
+ Contact: blah+oapicf@cliffano.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.18.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module OpenApiOpenAIClient
16
+ class AssistantsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Cancels a run that is `in_progress`.
23
+ # @param thread_id [String] The ID of the thread to which this run belongs.
24
+ # @param run_id [String] The ID of the run to cancel.
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [RunObject]
27
+ def cancel_run(thread_id, run_id, opts = {})
28
+ data, _status_code, _headers = cancel_run_with_http_info(thread_id, run_id, opts)
29
+ data
30
+ end
31
+
32
+ # Cancels a run that is `in_progress`.
33
+ # @param thread_id [String] The ID of the thread to which this run belongs.
34
+ # @param run_id [String] The ID of the run to cancel.
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(RunObject, Integer, Hash)>] RunObject data, response status code and response headers
37
+ def cancel_run_with_http_info(thread_id, run_id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.cancel_run ...'
40
+ end
41
+ # verify the required parameter 'thread_id' is set
42
+ if @api_client.config.client_side_validation && thread_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.cancel_run"
44
+ end
45
+ # verify the required parameter 'run_id' is set
46
+ if @api_client.config.client_side_validation && run_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'run_id' when calling AssistantsApi.cancel_run"
48
+ end
49
+ # resource path
50
+ local_var_path = '/threads/{thread_id}/runs/{run_id}/cancel'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'run_id' + '}', CGI.escape(run_id.to_s))
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
59
+
60
+ # form parameters
61
+ form_params = opts[:form_params] || {}
62
+
63
+ # http body (model)
64
+ post_body = opts[:debug_body]
65
+
66
+ # return_type
67
+ return_type = opts[:debug_return_type] || 'RunObject'
68
+
69
+ # auth_names
70
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
71
+
72
+ new_options = opts.merge(
73
+ :operation => :"AssistantsApi.cancel_run",
74
+ :header_params => header_params,
75
+ :query_params => query_params,
76
+ :form_params => form_params,
77
+ :body => post_body,
78
+ :auth_names => auth_names,
79
+ :return_type => return_type
80
+ )
81
+
82
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
83
+ if @api_client.config.debugging
84
+ @api_client.config.logger.debug "API called: AssistantsApi#cancel_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ end
86
+ return data, status_code, headers
87
+ end
88
+
89
+ # Create an assistant with a model and instructions.
90
+ # @param create_assistant_request [CreateAssistantRequest]
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [AssistantObject]
93
+ def create_assistant(create_assistant_request, opts = {})
94
+ data, _status_code, _headers = create_assistant_with_http_info(create_assistant_request, opts)
95
+ data
96
+ end
97
+
98
+ # Create an assistant with a model and instructions.
99
+ # @param create_assistant_request [CreateAssistantRequest]
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [Array<(AssistantObject, Integer, Hash)>] AssistantObject data, response status code and response headers
102
+ def create_assistant_with_http_info(create_assistant_request, opts = {})
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.create_assistant ...'
105
+ end
106
+ # verify the required parameter 'create_assistant_request' is set
107
+ if @api_client.config.client_side_validation && create_assistant_request.nil?
108
+ fail ArgumentError, "Missing the required parameter 'create_assistant_request' when calling AssistantsApi.create_assistant"
109
+ end
110
+ # resource path
111
+ local_var_path = '/assistants'
112
+
113
+ # query parameters
114
+ query_params = opts[:query_params] || {}
115
+
116
+ # header parameters
117
+ header_params = opts[:header_params] || {}
118
+ # HTTP header 'Accept' (if needed)
119
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
120
+ # HTTP header 'Content-Type'
121
+ content_type = @api_client.select_header_content_type(['application/json'])
122
+ if !content_type.nil?
123
+ header_params['Content-Type'] = content_type
124
+ end
125
+
126
+ # form parameters
127
+ form_params = opts[:form_params] || {}
128
+
129
+ # http body (model)
130
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_assistant_request)
131
+
132
+ # return_type
133
+ return_type = opts[:debug_return_type] || 'AssistantObject'
134
+
135
+ # auth_names
136
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
137
+
138
+ new_options = opts.merge(
139
+ :operation => :"AssistantsApi.create_assistant",
140
+ :header_params => header_params,
141
+ :query_params => query_params,
142
+ :form_params => form_params,
143
+ :body => post_body,
144
+ :auth_names => auth_names,
145
+ :return_type => return_type
146
+ )
147
+
148
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
149
+ if @api_client.config.debugging
150
+ @api_client.config.logger.debug "API called: AssistantsApi#create_assistant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
+ end
152
+ return data, status_code, headers
153
+ end
154
+
155
+ # Create a message.
156
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) to create a message for.
157
+ # @param create_message_request [CreateMessageRequest]
158
+ # @param [Hash] opts the optional parameters
159
+ # @return [MessageObject]
160
+ def create_message(thread_id, create_message_request, opts = {})
161
+ data, _status_code, _headers = create_message_with_http_info(thread_id, create_message_request, opts)
162
+ data
163
+ end
164
+
165
+ # Create a message.
166
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) to create a message for.
167
+ # @param create_message_request [CreateMessageRequest]
168
+ # @param [Hash] opts the optional parameters
169
+ # @return [Array<(MessageObject, Integer, Hash)>] MessageObject data, response status code and response headers
170
+ def create_message_with_http_info(thread_id, create_message_request, opts = {})
171
+ if @api_client.config.debugging
172
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.create_message ...'
173
+ end
174
+ # verify the required parameter 'thread_id' is set
175
+ if @api_client.config.client_side_validation && thread_id.nil?
176
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.create_message"
177
+ end
178
+ # verify the required parameter 'create_message_request' is set
179
+ if @api_client.config.client_side_validation && create_message_request.nil?
180
+ fail ArgumentError, "Missing the required parameter 'create_message_request' when calling AssistantsApi.create_message"
181
+ end
182
+ # resource path
183
+ local_var_path = '/threads/{thread_id}/messages'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s))
184
+
185
+ # query parameters
186
+ query_params = opts[:query_params] || {}
187
+
188
+ # header parameters
189
+ header_params = opts[:header_params] || {}
190
+ # HTTP header 'Accept' (if needed)
191
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
192
+ # HTTP header 'Content-Type'
193
+ content_type = @api_client.select_header_content_type(['application/json'])
194
+ if !content_type.nil?
195
+ header_params['Content-Type'] = content_type
196
+ end
197
+
198
+ # form parameters
199
+ form_params = opts[:form_params] || {}
200
+
201
+ # http body (model)
202
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_message_request)
203
+
204
+ # return_type
205
+ return_type = opts[:debug_return_type] || 'MessageObject'
206
+
207
+ # auth_names
208
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
209
+
210
+ new_options = opts.merge(
211
+ :operation => :"AssistantsApi.create_message",
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names,
217
+ :return_type => return_type
218
+ )
219
+
220
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: AssistantsApi#create_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
226
+
227
+ # Create a run.
228
+ # @param thread_id [String] The ID of the thread to run.
229
+ # @param create_run_request [CreateRunRequest]
230
+ # @param [Hash] opts the optional parameters
231
+ # @option opts [Array<String>] :include A list of additional fields to include in the response. Currently the only supported value is &#x60;step_details.tool_calls[*].file_search.results[*].content&#x60; to fetch the file search result content. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.
232
+ # @return [RunObject]
233
+ def create_run(thread_id, create_run_request, opts = {})
234
+ data, _status_code, _headers = create_run_with_http_info(thread_id, create_run_request, opts)
235
+ data
236
+ end
237
+
238
+ # Create a run.
239
+ # @param thread_id [String] The ID of the thread to run.
240
+ # @param create_run_request [CreateRunRequest]
241
+ # @param [Hash] opts the optional parameters
242
+ # @option opts [Array<String>] :include A list of additional fields to include in the response. Currently the only supported value is &#x60;step_details.tool_calls[*].file_search.results[*].content&#x60; to fetch the file search result content. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.
243
+ # @return [Array<(RunObject, Integer, Hash)>] RunObject data, response status code and response headers
244
+ def create_run_with_http_info(thread_id, create_run_request, opts = {})
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.create_run ...'
247
+ end
248
+ # verify the required parameter 'thread_id' is set
249
+ if @api_client.config.client_side_validation && thread_id.nil?
250
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.create_run"
251
+ end
252
+ # verify the required parameter 'create_run_request' is set
253
+ if @api_client.config.client_side_validation && create_run_request.nil?
254
+ fail ArgumentError, "Missing the required parameter 'create_run_request' when calling AssistantsApi.create_run"
255
+ end
256
+ allowable_values = ["step_details.tool_calls[*].file_search.results[*].content"]
257
+ if @api_client.config.client_side_validation && opts[:'include'] && !opts[:'include'].all? { |item| allowable_values.include?(item) }
258
+ fail ArgumentError, "invalid value for \"include\", must include one of #{allowable_values}"
259
+ end
260
+ # resource path
261
+ local_var_path = '/threads/{thread_id}/runs'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s))
262
+
263
+ # query parameters
264
+ query_params = opts[:query_params] || {}
265
+ query_params[:'include[]'] = @api_client.build_collection_param(opts[:'include'], :multi) if !opts[:'include'].nil?
266
+
267
+ # header parameters
268
+ header_params = opts[:header_params] || {}
269
+ # HTTP header 'Accept' (if needed)
270
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
271
+ # HTTP header 'Content-Type'
272
+ content_type = @api_client.select_header_content_type(['application/json'])
273
+ if !content_type.nil?
274
+ header_params['Content-Type'] = content_type
275
+ end
276
+
277
+ # form parameters
278
+ form_params = opts[:form_params] || {}
279
+
280
+ # http body (model)
281
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_run_request)
282
+
283
+ # return_type
284
+ return_type = opts[:debug_return_type] || 'RunObject'
285
+
286
+ # auth_names
287
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
288
+
289
+ new_options = opts.merge(
290
+ :operation => :"AssistantsApi.create_run",
291
+ :header_params => header_params,
292
+ :query_params => query_params,
293
+ :form_params => form_params,
294
+ :body => post_body,
295
+ :auth_names => auth_names,
296
+ :return_type => return_type
297
+ )
298
+
299
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
300
+ if @api_client.config.debugging
301
+ @api_client.config.logger.debug "API called: AssistantsApi#create_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
302
+ end
303
+ return data, status_code, headers
304
+ end
305
+
306
+ # Create a thread.
307
+ # @param [Hash] opts the optional parameters
308
+ # @option opts [CreateThreadRequest] :create_thread_request
309
+ # @return [ThreadObject]
310
+ def create_thread(opts = {})
311
+ data, _status_code, _headers = create_thread_with_http_info(opts)
312
+ data
313
+ end
314
+
315
+ # Create a thread.
316
+ # @param [Hash] opts the optional parameters
317
+ # @option opts [CreateThreadRequest] :create_thread_request
318
+ # @return [Array<(ThreadObject, Integer, Hash)>] ThreadObject data, response status code and response headers
319
+ def create_thread_with_http_info(opts = {})
320
+ if @api_client.config.debugging
321
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.create_thread ...'
322
+ end
323
+ # resource path
324
+ local_var_path = '/threads'
325
+
326
+ # query parameters
327
+ query_params = opts[:query_params] || {}
328
+
329
+ # header parameters
330
+ header_params = opts[:header_params] || {}
331
+ # HTTP header 'Accept' (if needed)
332
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
333
+ # HTTP header 'Content-Type'
334
+ content_type = @api_client.select_header_content_type(['application/json'])
335
+ if !content_type.nil?
336
+ header_params['Content-Type'] = content_type
337
+ end
338
+
339
+ # form parameters
340
+ form_params = opts[:form_params] || {}
341
+
342
+ # http body (model)
343
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_thread_request'])
344
+
345
+ # return_type
346
+ return_type = opts[:debug_return_type] || 'ThreadObject'
347
+
348
+ # auth_names
349
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
350
+
351
+ new_options = opts.merge(
352
+ :operation => :"AssistantsApi.create_thread",
353
+ :header_params => header_params,
354
+ :query_params => query_params,
355
+ :form_params => form_params,
356
+ :body => post_body,
357
+ :auth_names => auth_names,
358
+ :return_type => return_type
359
+ )
360
+
361
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
362
+ if @api_client.config.debugging
363
+ @api_client.config.logger.debug "API called: AssistantsApi#create_thread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
364
+ end
365
+ return data, status_code, headers
366
+ end
367
+
368
+ # Create a thread and run it in one request.
369
+ # @param create_thread_and_run_request [CreateThreadAndRunRequest]
370
+ # @param [Hash] opts the optional parameters
371
+ # @return [RunObject]
372
+ def create_thread_and_run(create_thread_and_run_request, opts = {})
373
+ data, _status_code, _headers = create_thread_and_run_with_http_info(create_thread_and_run_request, opts)
374
+ data
375
+ end
376
+
377
+ # Create a thread and run it in one request.
378
+ # @param create_thread_and_run_request [CreateThreadAndRunRequest]
379
+ # @param [Hash] opts the optional parameters
380
+ # @return [Array<(RunObject, Integer, Hash)>] RunObject data, response status code and response headers
381
+ def create_thread_and_run_with_http_info(create_thread_and_run_request, opts = {})
382
+ if @api_client.config.debugging
383
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.create_thread_and_run ...'
384
+ end
385
+ # verify the required parameter 'create_thread_and_run_request' is set
386
+ if @api_client.config.client_side_validation && create_thread_and_run_request.nil?
387
+ fail ArgumentError, "Missing the required parameter 'create_thread_and_run_request' when calling AssistantsApi.create_thread_and_run"
388
+ end
389
+ # resource path
390
+ local_var_path = '/threads/runs'
391
+
392
+ # query parameters
393
+ query_params = opts[:query_params] || {}
394
+
395
+ # header parameters
396
+ header_params = opts[:header_params] || {}
397
+ # HTTP header 'Accept' (if needed)
398
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
399
+ # HTTP header 'Content-Type'
400
+ content_type = @api_client.select_header_content_type(['application/json'])
401
+ if !content_type.nil?
402
+ header_params['Content-Type'] = content_type
403
+ end
404
+
405
+ # form parameters
406
+ form_params = opts[:form_params] || {}
407
+
408
+ # http body (model)
409
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_thread_and_run_request)
410
+
411
+ # return_type
412
+ return_type = opts[:debug_return_type] || 'RunObject'
413
+
414
+ # auth_names
415
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
416
+
417
+ new_options = opts.merge(
418
+ :operation => :"AssistantsApi.create_thread_and_run",
419
+ :header_params => header_params,
420
+ :query_params => query_params,
421
+ :form_params => form_params,
422
+ :body => post_body,
423
+ :auth_names => auth_names,
424
+ :return_type => return_type
425
+ )
426
+
427
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
428
+ if @api_client.config.debugging
429
+ @api_client.config.logger.debug "API called: AssistantsApi#create_thread_and_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
430
+ end
431
+ return data, status_code, headers
432
+ end
433
+
434
+ # Delete an assistant.
435
+ # @param assistant_id [String] The ID of the assistant to delete.
436
+ # @param [Hash] opts the optional parameters
437
+ # @return [DeleteAssistantResponse]
438
+ def delete_assistant(assistant_id, opts = {})
439
+ data, _status_code, _headers = delete_assistant_with_http_info(assistant_id, opts)
440
+ data
441
+ end
442
+
443
+ # Delete an assistant.
444
+ # @param assistant_id [String] The ID of the assistant to delete.
445
+ # @param [Hash] opts the optional parameters
446
+ # @return [Array<(DeleteAssistantResponse, Integer, Hash)>] DeleteAssistantResponse data, response status code and response headers
447
+ def delete_assistant_with_http_info(assistant_id, opts = {})
448
+ if @api_client.config.debugging
449
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.delete_assistant ...'
450
+ end
451
+ # verify the required parameter 'assistant_id' is set
452
+ if @api_client.config.client_side_validation && assistant_id.nil?
453
+ fail ArgumentError, "Missing the required parameter 'assistant_id' when calling AssistantsApi.delete_assistant"
454
+ end
455
+ # resource path
456
+ local_var_path = '/assistants/{assistant_id}'.sub('{' + 'assistant_id' + '}', CGI.escape(assistant_id.to_s))
457
+
458
+ # query parameters
459
+ query_params = opts[:query_params] || {}
460
+
461
+ # header parameters
462
+ header_params = opts[:header_params] || {}
463
+ # HTTP header 'Accept' (if needed)
464
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
465
+
466
+ # form parameters
467
+ form_params = opts[:form_params] || {}
468
+
469
+ # http body (model)
470
+ post_body = opts[:debug_body]
471
+
472
+ # return_type
473
+ return_type = opts[:debug_return_type] || 'DeleteAssistantResponse'
474
+
475
+ # auth_names
476
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
477
+
478
+ new_options = opts.merge(
479
+ :operation => :"AssistantsApi.delete_assistant",
480
+ :header_params => header_params,
481
+ :query_params => query_params,
482
+ :form_params => form_params,
483
+ :body => post_body,
484
+ :auth_names => auth_names,
485
+ :return_type => return_type
486
+ )
487
+
488
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
489
+ if @api_client.config.debugging
490
+ @api_client.config.logger.debug "API called: AssistantsApi#delete_assistant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
491
+ end
492
+ return data, status_code, headers
493
+ end
494
+
495
+ # Deletes a message.
496
+ # @param thread_id [String] The ID of the thread to which this message belongs.
497
+ # @param message_id [String] The ID of the message to delete.
498
+ # @param [Hash] opts the optional parameters
499
+ # @return [DeleteMessageResponse]
500
+ def delete_message(thread_id, message_id, opts = {})
501
+ data, _status_code, _headers = delete_message_with_http_info(thread_id, message_id, opts)
502
+ data
503
+ end
504
+
505
+ # Deletes a message.
506
+ # @param thread_id [String] The ID of the thread to which this message belongs.
507
+ # @param message_id [String] The ID of the message to delete.
508
+ # @param [Hash] opts the optional parameters
509
+ # @return [Array<(DeleteMessageResponse, Integer, Hash)>] DeleteMessageResponse data, response status code and response headers
510
+ def delete_message_with_http_info(thread_id, message_id, opts = {})
511
+ if @api_client.config.debugging
512
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.delete_message ...'
513
+ end
514
+ # verify the required parameter 'thread_id' is set
515
+ if @api_client.config.client_side_validation && thread_id.nil?
516
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.delete_message"
517
+ end
518
+ # verify the required parameter 'message_id' is set
519
+ if @api_client.config.client_side_validation && message_id.nil?
520
+ fail ArgumentError, "Missing the required parameter 'message_id' when calling AssistantsApi.delete_message"
521
+ end
522
+ # resource path
523
+ local_var_path = '/threads/{thread_id}/messages/{message_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'message_id' + '}', CGI.escape(message_id.to_s))
524
+
525
+ # query parameters
526
+ query_params = opts[:query_params] || {}
527
+
528
+ # header parameters
529
+ header_params = opts[:header_params] || {}
530
+ # HTTP header 'Accept' (if needed)
531
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
532
+
533
+ # form parameters
534
+ form_params = opts[:form_params] || {}
535
+
536
+ # http body (model)
537
+ post_body = opts[:debug_body]
538
+
539
+ # return_type
540
+ return_type = opts[:debug_return_type] || 'DeleteMessageResponse'
541
+
542
+ # auth_names
543
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
544
+
545
+ new_options = opts.merge(
546
+ :operation => :"AssistantsApi.delete_message",
547
+ :header_params => header_params,
548
+ :query_params => query_params,
549
+ :form_params => form_params,
550
+ :body => post_body,
551
+ :auth_names => auth_names,
552
+ :return_type => return_type
553
+ )
554
+
555
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
556
+ if @api_client.config.debugging
557
+ @api_client.config.logger.debug "API called: AssistantsApi#delete_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
558
+ end
559
+ return data, status_code, headers
560
+ end
561
+
562
+ # Delete a thread.
563
+ # @param thread_id [String] The ID of the thread to delete.
564
+ # @param [Hash] opts the optional parameters
565
+ # @return [DeleteThreadResponse]
566
+ def delete_thread(thread_id, opts = {})
567
+ data, _status_code, _headers = delete_thread_with_http_info(thread_id, opts)
568
+ data
569
+ end
570
+
571
+ # Delete a thread.
572
+ # @param thread_id [String] The ID of the thread to delete.
573
+ # @param [Hash] opts the optional parameters
574
+ # @return [Array<(DeleteThreadResponse, Integer, Hash)>] DeleteThreadResponse data, response status code and response headers
575
+ def delete_thread_with_http_info(thread_id, opts = {})
576
+ if @api_client.config.debugging
577
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.delete_thread ...'
578
+ end
579
+ # verify the required parameter 'thread_id' is set
580
+ if @api_client.config.client_side_validation && thread_id.nil?
581
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.delete_thread"
582
+ end
583
+ # resource path
584
+ local_var_path = '/threads/{thread_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s))
585
+
586
+ # query parameters
587
+ query_params = opts[:query_params] || {}
588
+
589
+ # header parameters
590
+ header_params = opts[:header_params] || {}
591
+ # HTTP header 'Accept' (if needed)
592
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
593
+
594
+ # form parameters
595
+ form_params = opts[:form_params] || {}
596
+
597
+ # http body (model)
598
+ post_body = opts[:debug_body]
599
+
600
+ # return_type
601
+ return_type = opts[:debug_return_type] || 'DeleteThreadResponse'
602
+
603
+ # auth_names
604
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
605
+
606
+ new_options = opts.merge(
607
+ :operation => :"AssistantsApi.delete_thread",
608
+ :header_params => header_params,
609
+ :query_params => query_params,
610
+ :form_params => form_params,
611
+ :body => post_body,
612
+ :auth_names => auth_names,
613
+ :return_type => return_type
614
+ )
615
+
616
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
617
+ if @api_client.config.debugging
618
+ @api_client.config.logger.debug "API called: AssistantsApi#delete_thread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
619
+ end
620
+ return data, status_code, headers
621
+ end
622
+
623
+ # Retrieves an assistant.
624
+ # @param assistant_id [String] The ID of the assistant to retrieve.
625
+ # @param [Hash] opts the optional parameters
626
+ # @return [AssistantObject]
627
+ def get_assistant(assistant_id, opts = {})
628
+ data, _status_code, _headers = get_assistant_with_http_info(assistant_id, opts)
629
+ data
630
+ end
631
+
632
+ # Retrieves an assistant.
633
+ # @param assistant_id [String] The ID of the assistant to retrieve.
634
+ # @param [Hash] opts the optional parameters
635
+ # @return [Array<(AssistantObject, Integer, Hash)>] AssistantObject data, response status code and response headers
636
+ def get_assistant_with_http_info(assistant_id, opts = {})
637
+ if @api_client.config.debugging
638
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.get_assistant ...'
639
+ end
640
+ # verify the required parameter 'assistant_id' is set
641
+ if @api_client.config.client_side_validation && assistant_id.nil?
642
+ fail ArgumentError, "Missing the required parameter 'assistant_id' when calling AssistantsApi.get_assistant"
643
+ end
644
+ # resource path
645
+ local_var_path = '/assistants/{assistant_id}'.sub('{' + 'assistant_id' + '}', CGI.escape(assistant_id.to_s))
646
+
647
+ # query parameters
648
+ query_params = opts[:query_params] || {}
649
+
650
+ # header parameters
651
+ header_params = opts[:header_params] || {}
652
+ # HTTP header 'Accept' (if needed)
653
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
654
+
655
+ # form parameters
656
+ form_params = opts[:form_params] || {}
657
+
658
+ # http body (model)
659
+ post_body = opts[:debug_body]
660
+
661
+ # return_type
662
+ return_type = opts[:debug_return_type] || 'AssistantObject'
663
+
664
+ # auth_names
665
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
666
+
667
+ new_options = opts.merge(
668
+ :operation => :"AssistantsApi.get_assistant",
669
+ :header_params => header_params,
670
+ :query_params => query_params,
671
+ :form_params => form_params,
672
+ :body => post_body,
673
+ :auth_names => auth_names,
674
+ :return_type => return_type
675
+ )
676
+
677
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
678
+ if @api_client.config.debugging
679
+ @api_client.config.logger.debug "API called: AssistantsApi#get_assistant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
680
+ end
681
+ return data, status_code, headers
682
+ end
683
+
684
+ # Retrieve a message.
685
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) to which this message belongs.
686
+ # @param message_id [String] The ID of the message to retrieve.
687
+ # @param [Hash] opts the optional parameters
688
+ # @return [MessageObject]
689
+ def get_message(thread_id, message_id, opts = {})
690
+ data, _status_code, _headers = get_message_with_http_info(thread_id, message_id, opts)
691
+ data
692
+ end
693
+
694
+ # Retrieve a message.
695
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) to which this message belongs.
696
+ # @param message_id [String] The ID of the message to retrieve.
697
+ # @param [Hash] opts the optional parameters
698
+ # @return [Array<(MessageObject, Integer, Hash)>] MessageObject data, response status code and response headers
699
+ def get_message_with_http_info(thread_id, message_id, opts = {})
700
+ if @api_client.config.debugging
701
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.get_message ...'
702
+ end
703
+ # verify the required parameter 'thread_id' is set
704
+ if @api_client.config.client_side_validation && thread_id.nil?
705
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.get_message"
706
+ end
707
+ # verify the required parameter 'message_id' is set
708
+ if @api_client.config.client_side_validation && message_id.nil?
709
+ fail ArgumentError, "Missing the required parameter 'message_id' when calling AssistantsApi.get_message"
710
+ end
711
+ # resource path
712
+ local_var_path = '/threads/{thread_id}/messages/{message_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'message_id' + '}', CGI.escape(message_id.to_s))
713
+
714
+ # query parameters
715
+ query_params = opts[:query_params] || {}
716
+
717
+ # header parameters
718
+ header_params = opts[:header_params] || {}
719
+ # HTTP header 'Accept' (if needed)
720
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
721
+
722
+ # form parameters
723
+ form_params = opts[:form_params] || {}
724
+
725
+ # http body (model)
726
+ post_body = opts[:debug_body]
727
+
728
+ # return_type
729
+ return_type = opts[:debug_return_type] || 'MessageObject'
730
+
731
+ # auth_names
732
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
733
+
734
+ new_options = opts.merge(
735
+ :operation => :"AssistantsApi.get_message",
736
+ :header_params => header_params,
737
+ :query_params => query_params,
738
+ :form_params => form_params,
739
+ :body => post_body,
740
+ :auth_names => auth_names,
741
+ :return_type => return_type
742
+ )
743
+
744
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
745
+ if @api_client.config.debugging
746
+ @api_client.config.logger.debug "API called: AssistantsApi#get_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
747
+ end
748
+ return data, status_code, headers
749
+ end
750
+
751
+ # Retrieves a run.
752
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) that was run.
753
+ # @param run_id [String] The ID of the run to retrieve.
754
+ # @param [Hash] opts the optional parameters
755
+ # @return [RunObject]
756
+ def get_run(thread_id, run_id, opts = {})
757
+ data, _status_code, _headers = get_run_with_http_info(thread_id, run_id, opts)
758
+ data
759
+ end
760
+
761
+ # Retrieves a run.
762
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) that was run.
763
+ # @param run_id [String] The ID of the run to retrieve.
764
+ # @param [Hash] opts the optional parameters
765
+ # @return [Array<(RunObject, Integer, Hash)>] RunObject data, response status code and response headers
766
+ def get_run_with_http_info(thread_id, run_id, opts = {})
767
+ if @api_client.config.debugging
768
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.get_run ...'
769
+ end
770
+ # verify the required parameter 'thread_id' is set
771
+ if @api_client.config.client_side_validation && thread_id.nil?
772
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.get_run"
773
+ end
774
+ # verify the required parameter 'run_id' is set
775
+ if @api_client.config.client_side_validation && run_id.nil?
776
+ fail ArgumentError, "Missing the required parameter 'run_id' when calling AssistantsApi.get_run"
777
+ end
778
+ # resource path
779
+ local_var_path = '/threads/{thread_id}/runs/{run_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'run_id' + '}', CGI.escape(run_id.to_s))
780
+
781
+ # query parameters
782
+ query_params = opts[:query_params] || {}
783
+
784
+ # header parameters
785
+ header_params = opts[:header_params] || {}
786
+ # HTTP header 'Accept' (if needed)
787
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
788
+
789
+ # form parameters
790
+ form_params = opts[:form_params] || {}
791
+
792
+ # http body (model)
793
+ post_body = opts[:debug_body]
794
+
795
+ # return_type
796
+ return_type = opts[:debug_return_type] || 'RunObject'
797
+
798
+ # auth_names
799
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
800
+
801
+ new_options = opts.merge(
802
+ :operation => :"AssistantsApi.get_run",
803
+ :header_params => header_params,
804
+ :query_params => query_params,
805
+ :form_params => form_params,
806
+ :body => post_body,
807
+ :auth_names => auth_names,
808
+ :return_type => return_type
809
+ )
810
+
811
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
812
+ if @api_client.config.debugging
813
+ @api_client.config.logger.debug "API called: AssistantsApi#get_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
814
+ end
815
+ return data, status_code, headers
816
+ end
817
+
818
+ # Retrieves a run step.
819
+ # @param thread_id [String] The ID of the thread to which the run and run step belongs.
820
+ # @param run_id [String] The ID of the run to which the run step belongs.
821
+ # @param step_id [String] The ID of the run step to retrieve.
822
+ # @param [Hash] opts the optional parameters
823
+ # @option opts [Array<String>] :include A list of additional fields to include in the response. Currently the only supported value is &#x60;step_details.tool_calls[*].file_search.results[*].content&#x60; to fetch the file search result content. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.
824
+ # @return [RunStepObject]
825
+ def get_run_step(thread_id, run_id, step_id, opts = {})
826
+ data, _status_code, _headers = get_run_step_with_http_info(thread_id, run_id, step_id, opts)
827
+ data
828
+ end
829
+
830
+ # Retrieves a run step.
831
+ # @param thread_id [String] The ID of the thread to which the run and run step belongs.
832
+ # @param run_id [String] The ID of the run to which the run step belongs.
833
+ # @param step_id [String] The ID of the run step to retrieve.
834
+ # @param [Hash] opts the optional parameters
835
+ # @option opts [Array<String>] :include A list of additional fields to include in the response. Currently the only supported value is &#x60;step_details.tool_calls[*].file_search.results[*].content&#x60; to fetch the file search result content. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.
836
+ # @return [Array<(RunStepObject, Integer, Hash)>] RunStepObject data, response status code and response headers
837
+ def get_run_step_with_http_info(thread_id, run_id, step_id, opts = {})
838
+ if @api_client.config.debugging
839
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.get_run_step ...'
840
+ end
841
+ # verify the required parameter 'thread_id' is set
842
+ if @api_client.config.client_side_validation && thread_id.nil?
843
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.get_run_step"
844
+ end
845
+ # verify the required parameter 'run_id' is set
846
+ if @api_client.config.client_side_validation && run_id.nil?
847
+ fail ArgumentError, "Missing the required parameter 'run_id' when calling AssistantsApi.get_run_step"
848
+ end
849
+ # verify the required parameter 'step_id' is set
850
+ if @api_client.config.client_side_validation && step_id.nil?
851
+ fail ArgumentError, "Missing the required parameter 'step_id' when calling AssistantsApi.get_run_step"
852
+ end
853
+ allowable_values = ["step_details.tool_calls[*].file_search.results[*].content"]
854
+ if @api_client.config.client_side_validation && opts[:'include'] && !opts[:'include'].all? { |item| allowable_values.include?(item) }
855
+ fail ArgumentError, "invalid value for \"include\", must include one of #{allowable_values}"
856
+ end
857
+ # resource path
858
+ local_var_path = '/threads/{thread_id}/runs/{run_id}/steps/{step_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'run_id' + '}', CGI.escape(run_id.to_s)).sub('{' + 'step_id' + '}', CGI.escape(step_id.to_s))
859
+
860
+ # query parameters
861
+ query_params = opts[:query_params] || {}
862
+ query_params[:'include[]'] = @api_client.build_collection_param(opts[:'include'], :multi) if !opts[:'include'].nil?
863
+
864
+ # header parameters
865
+ header_params = opts[:header_params] || {}
866
+ # HTTP header 'Accept' (if needed)
867
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
868
+
869
+ # form parameters
870
+ form_params = opts[:form_params] || {}
871
+
872
+ # http body (model)
873
+ post_body = opts[:debug_body]
874
+
875
+ # return_type
876
+ return_type = opts[:debug_return_type] || 'RunStepObject'
877
+
878
+ # auth_names
879
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
880
+
881
+ new_options = opts.merge(
882
+ :operation => :"AssistantsApi.get_run_step",
883
+ :header_params => header_params,
884
+ :query_params => query_params,
885
+ :form_params => form_params,
886
+ :body => post_body,
887
+ :auth_names => auth_names,
888
+ :return_type => return_type
889
+ )
890
+
891
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
892
+ if @api_client.config.debugging
893
+ @api_client.config.logger.debug "API called: AssistantsApi#get_run_step\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
894
+ end
895
+ return data, status_code, headers
896
+ end
897
+
898
+ # Retrieves a thread.
899
+ # @param thread_id [String] The ID of the thread to retrieve.
900
+ # @param [Hash] opts the optional parameters
901
+ # @return [ThreadObject]
902
+ def get_thread(thread_id, opts = {})
903
+ data, _status_code, _headers = get_thread_with_http_info(thread_id, opts)
904
+ data
905
+ end
906
+
907
+ # Retrieves a thread.
908
+ # @param thread_id [String] The ID of the thread to retrieve.
909
+ # @param [Hash] opts the optional parameters
910
+ # @return [Array<(ThreadObject, Integer, Hash)>] ThreadObject data, response status code and response headers
911
+ def get_thread_with_http_info(thread_id, opts = {})
912
+ if @api_client.config.debugging
913
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.get_thread ...'
914
+ end
915
+ # verify the required parameter 'thread_id' is set
916
+ if @api_client.config.client_side_validation && thread_id.nil?
917
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.get_thread"
918
+ end
919
+ # resource path
920
+ local_var_path = '/threads/{thread_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s))
921
+
922
+ # query parameters
923
+ query_params = opts[:query_params] || {}
924
+
925
+ # header parameters
926
+ header_params = opts[:header_params] || {}
927
+ # HTTP header 'Accept' (if needed)
928
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
929
+
930
+ # form parameters
931
+ form_params = opts[:form_params] || {}
932
+
933
+ # http body (model)
934
+ post_body = opts[:debug_body]
935
+
936
+ # return_type
937
+ return_type = opts[:debug_return_type] || 'ThreadObject'
938
+
939
+ # auth_names
940
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
941
+
942
+ new_options = opts.merge(
943
+ :operation => :"AssistantsApi.get_thread",
944
+ :header_params => header_params,
945
+ :query_params => query_params,
946
+ :form_params => form_params,
947
+ :body => post_body,
948
+ :auth_names => auth_names,
949
+ :return_type => return_type
950
+ )
951
+
952
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
953
+ if @api_client.config.debugging
954
+ @api_client.config.logger.debug "API called: AssistantsApi#get_thread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
955
+ end
956
+ return data, status_code, headers
957
+ end
958
+
959
+ # Returns a list of assistants.
960
+ # @param [Hash] opts the optional parameters
961
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
962
+ # @option opts [String] :order Sort order by the &#x60;created_at&#x60; timestamp of the objects. &#x60;asc&#x60; for ascending order and &#x60;desc&#x60; for descending order. (default to 'desc')
963
+ # @option opts [String] :after A cursor for use in pagination. &#x60;after&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after&#x3D;obj_foo in order to fetch the next page of the list.
964
+ # @option opts [String] :before A cursor for use in pagination. &#x60;before&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before&#x3D;obj_foo in order to fetch the previous page of the list.
965
+ # @return [ListAssistantsResponse]
966
+ def list_assistants(opts = {})
967
+ data, _status_code, _headers = list_assistants_with_http_info(opts)
968
+ data
969
+ end
970
+
971
+ # Returns a list of assistants.
972
+ # @param [Hash] opts the optional parameters
973
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
974
+ # @option opts [String] :order Sort order by the &#x60;created_at&#x60; timestamp of the objects. &#x60;asc&#x60; for ascending order and &#x60;desc&#x60; for descending order. (default to 'desc')
975
+ # @option opts [String] :after A cursor for use in pagination. &#x60;after&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after&#x3D;obj_foo in order to fetch the next page of the list.
976
+ # @option opts [String] :before A cursor for use in pagination. &#x60;before&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before&#x3D;obj_foo in order to fetch the previous page of the list.
977
+ # @return [Array<(ListAssistantsResponse, Integer, Hash)>] ListAssistantsResponse data, response status code and response headers
978
+ def list_assistants_with_http_info(opts = {})
979
+ if @api_client.config.debugging
980
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.list_assistants ...'
981
+ end
982
+ allowable_values = ["asc", "desc"]
983
+ if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
984
+ fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
985
+ end
986
+ # resource path
987
+ local_var_path = '/assistants'
988
+
989
+ # query parameters
990
+ query_params = opts[:query_params] || {}
991
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
992
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
993
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
994
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
995
+
996
+ # header parameters
997
+ header_params = opts[:header_params] || {}
998
+ # HTTP header 'Accept' (if needed)
999
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1000
+
1001
+ # form parameters
1002
+ form_params = opts[:form_params] || {}
1003
+
1004
+ # http body (model)
1005
+ post_body = opts[:debug_body]
1006
+
1007
+ # return_type
1008
+ return_type = opts[:debug_return_type] || 'ListAssistantsResponse'
1009
+
1010
+ # auth_names
1011
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
1012
+
1013
+ new_options = opts.merge(
1014
+ :operation => :"AssistantsApi.list_assistants",
1015
+ :header_params => header_params,
1016
+ :query_params => query_params,
1017
+ :form_params => form_params,
1018
+ :body => post_body,
1019
+ :auth_names => auth_names,
1020
+ :return_type => return_type
1021
+ )
1022
+
1023
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1024
+ if @api_client.config.debugging
1025
+ @api_client.config.logger.debug "API called: AssistantsApi#list_assistants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1026
+ end
1027
+ return data, status_code, headers
1028
+ end
1029
+
1030
+ # Returns a list of messages for a given thread.
1031
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) the messages belong to.
1032
+ # @param [Hash] opts the optional parameters
1033
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
1034
+ # @option opts [String] :order Sort order by the &#x60;created_at&#x60; timestamp of the objects. &#x60;asc&#x60; for ascending order and &#x60;desc&#x60; for descending order. (default to 'desc')
1035
+ # @option opts [String] :after A cursor for use in pagination. &#x60;after&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after&#x3D;obj_foo in order to fetch the next page of the list.
1036
+ # @option opts [String] :before A cursor for use in pagination. &#x60;before&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before&#x3D;obj_foo in order to fetch the previous page of the list.
1037
+ # @option opts [String] :run_id Filter messages by the run ID that generated them.
1038
+ # @return [ListMessagesResponse]
1039
+ def list_messages(thread_id, opts = {})
1040
+ data, _status_code, _headers = list_messages_with_http_info(thread_id, opts)
1041
+ data
1042
+ end
1043
+
1044
+ # Returns a list of messages for a given thread.
1045
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) the messages belong to.
1046
+ # @param [Hash] opts the optional parameters
1047
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
1048
+ # @option opts [String] :order Sort order by the &#x60;created_at&#x60; timestamp of the objects. &#x60;asc&#x60; for ascending order and &#x60;desc&#x60; for descending order. (default to 'desc')
1049
+ # @option opts [String] :after A cursor for use in pagination. &#x60;after&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after&#x3D;obj_foo in order to fetch the next page of the list.
1050
+ # @option opts [String] :before A cursor for use in pagination. &#x60;before&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before&#x3D;obj_foo in order to fetch the previous page of the list.
1051
+ # @option opts [String] :run_id Filter messages by the run ID that generated them.
1052
+ # @return [Array<(ListMessagesResponse, Integer, Hash)>] ListMessagesResponse data, response status code and response headers
1053
+ def list_messages_with_http_info(thread_id, opts = {})
1054
+ if @api_client.config.debugging
1055
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.list_messages ...'
1056
+ end
1057
+ # verify the required parameter 'thread_id' is set
1058
+ if @api_client.config.client_side_validation && thread_id.nil?
1059
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.list_messages"
1060
+ end
1061
+ allowable_values = ["asc", "desc"]
1062
+ if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
1063
+ fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
1064
+ end
1065
+ # resource path
1066
+ local_var_path = '/threads/{thread_id}/messages'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s))
1067
+
1068
+ # query parameters
1069
+ query_params = opts[:query_params] || {}
1070
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1071
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
1072
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1073
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1074
+ query_params[:'run_id'] = opts[:'run_id'] if !opts[:'run_id'].nil?
1075
+
1076
+ # header parameters
1077
+ header_params = opts[:header_params] || {}
1078
+ # HTTP header 'Accept' (if needed)
1079
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1080
+
1081
+ # form parameters
1082
+ form_params = opts[:form_params] || {}
1083
+
1084
+ # http body (model)
1085
+ post_body = opts[:debug_body]
1086
+
1087
+ # return_type
1088
+ return_type = opts[:debug_return_type] || 'ListMessagesResponse'
1089
+
1090
+ # auth_names
1091
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
1092
+
1093
+ new_options = opts.merge(
1094
+ :operation => :"AssistantsApi.list_messages",
1095
+ :header_params => header_params,
1096
+ :query_params => query_params,
1097
+ :form_params => form_params,
1098
+ :body => post_body,
1099
+ :auth_names => auth_names,
1100
+ :return_type => return_type
1101
+ )
1102
+
1103
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1104
+ if @api_client.config.debugging
1105
+ @api_client.config.logger.debug "API called: AssistantsApi#list_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1106
+ end
1107
+ return data, status_code, headers
1108
+ end
1109
+
1110
+ # Returns a list of run steps belonging to a run.
1111
+ # @param thread_id [String] The ID of the thread the run and run steps belong to.
1112
+ # @param run_id [String] The ID of the run the run steps belong to.
1113
+ # @param [Hash] opts the optional parameters
1114
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
1115
+ # @option opts [String] :order Sort order by the &#x60;created_at&#x60; timestamp of the objects. &#x60;asc&#x60; for ascending order and &#x60;desc&#x60; for descending order. (default to 'desc')
1116
+ # @option opts [String] :after A cursor for use in pagination. &#x60;after&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after&#x3D;obj_foo in order to fetch the next page of the list.
1117
+ # @option opts [String] :before A cursor for use in pagination. &#x60;before&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before&#x3D;obj_foo in order to fetch the previous page of the list.
1118
+ # @option opts [Array<String>] :include A list of additional fields to include in the response. Currently the only supported value is &#x60;step_details.tool_calls[*].file_search.results[*].content&#x60; to fetch the file search result content. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.
1119
+ # @return [ListRunStepsResponse]
1120
+ def list_run_steps(thread_id, run_id, opts = {})
1121
+ data, _status_code, _headers = list_run_steps_with_http_info(thread_id, run_id, opts)
1122
+ data
1123
+ end
1124
+
1125
+ # Returns a list of run steps belonging to a run.
1126
+ # @param thread_id [String] The ID of the thread the run and run steps belong to.
1127
+ # @param run_id [String] The ID of the run the run steps belong to.
1128
+ # @param [Hash] opts the optional parameters
1129
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
1130
+ # @option opts [String] :order Sort order by the &#x60;created_at&#x60; timestamp of the objects. &#x60;asc&#x60; for ascending order and &#x60;desc&#x60; for descending order. (default to 'desc')
1131
+ # @option opts [String] :after A cursor for use in pagination. &#x60;after&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after&#x3D;obj_foo in order to fetch the next page of the list.
1132
+ # @option opts [String] :before A cursor for use in pagination. &#x60;before&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before&#x3D;obj_foo in order to fetch the previous page of the list.
1133
+ # @option opts [Array<String>] :include A list of additional fields to include in the response. Currently the only supported value is &#x60;step_details.tool_calls[*].file_search.results[*].content&#x60; to fetch the file search result content. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.
1134
+ # @return [Array<(ListRunStepsResponse, Integer, Hash)>] ListRunStepsResponse data, response status code and response headers
1135
+ def list_run_steps_with_http_info(thread_id, run_id, opts = {})
1136
+ if @api_client.config.debugging
1137
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.list_run_steps ...'
1138
+ end
1139
+ # verify the required parameter 'thread_id' is set
1140
+ if @api_client.config.client_side_validation && thread_id.nil?
1141
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.list_run_steps"
1142
+ end
1143
+ # verify the required parameter 'run_id' is set
1144
+ if @api_client.config.client_side_validation && run_id.nil?
1145
+ fail ArgumentError, "Missing the required parameter 'run_id' when calling AssistantsApi.list_run_steps"
1146
+ end
1147
+ allowable_values = ["asc", "desc"]
1148
+ if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
1149
+ fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
1150
+ end
1151
+ allowable_values = ["step_details.tool_calls[*].file_search.results[*].content"]
1152
+ if @api_client.config.client_side_validation && opts[:'include'] && !opts[:'include'].all? { |item| allowable_values.include?(item) }
1153
+ fail ArgumentError, "invalid value for \"include\", must include one of #{allowable_values}"
1154
+ end
1155
+ # resource path
1156
+ local_var_path = '/threads/{thread_id}/runs/{run_id}/steps'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'run_id' + '}', CGI.escape(run_id.to_s))
1157
+
1158
+ # query parameters
1159
+ query_params = opts[:query_params] || {}
1160
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1161
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
1162
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1163
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1164
+ query_params[:'include[]'] = @api_client.build_collection_param(opts[:'include'], :multi) if !opts[:'include'].nil?
1165
+
1166
+ # header parameters
1167
+ header_params = opts[:header_params] || {}
1168
+ # HTTP header 'Accept' (if needed)
1169
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1170
+
1171
+ # form parameters
1172
+ form_params = opts[:form_params] || {}
1173
+
1174
+ # http body (model)
1175
+ post_body = opts[:debug_body]
1176
+
1177
+ # return_type
1178
+ return_type = opts[:debug_return_type] || 'ListRunStepsResponse'
1179
+
1180
+ # auth_names
1181
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
1182
+
1183
+ new_options = opts.merge(
1184
+ :operation => :"AssistantsApi.list_run_steps",
1185
+ :header_params => header_params,
1186
+ :query_params => query_params,
1187
+ :form_params => form_params,
1188
+ :body => post_body,
1189
+ :auth_names => auth_names,
1190
+ :return_type => return_type
1191
+ )
1192
+
1193
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1194
+ if @api_client.config.debugging
1195
+ @api_client.config.logger.debug "API called: AssistantsApi#list_run_steps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1196
+ end
1197
+ return data, status_code, headers
1198
+ end
1199
+
1200
+ # Returns a list of runs belonging to a thread.
1201
+ # @param thread_id [String] The ID of the thread the run belongs to.
1202
+ # @param [Hash] opts the optional parameters
1203
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
1204
+ # @option opts [String] :order Sort order by the &#x60;created_at&#x60; timestamp of the objects. &#x60;asc&#x60; for ascending order and &#x60;desc&#x60; for descending order. (default to 'desc')
1205
+ # @option opts [String] :after A cursor for use in pagination. &#x60;after&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after&#x3D;obj_foo in order to fetch the next page of the list.
1206
+ # @option opts [String] :before A cursor for use in pagination. &#x60;before&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before&#x3D;obj_foo in order to fetch the previous page of the list.
1207
+ # @return [ListRunsResponse]
1208
+ def list_runs(thread_id, opts = {})
1209
+ data, _status_code, _headers = list_runs_with_http_info(thread_id, opts)
1210
+ data
1211
+ end
1212
+
1213
+ # Returns a list of runs belonging to a thread.
1214
+ # @param thread_id [String] The ID of the thread the run belongs to.
1215
+ # @param [Hash] opts the optional parameters
1216
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
1217
+ # @option opts [String] :order Sort order by the &#x60;created_at&#x60; timestamp of the objects. &#x60;asc&#x60; for ascending order and &#x60;desc&#x60; for descending order. (default to 'desc')
1218
+ # @option opts [String] :after A cursor for use in pagination. &#x60;after&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after&#x3D;obj_foo in order to fetch the next page of the list.
1219
+ # @option opts [String] :before A cursor for use in pagination. &#x60;before&#x60; is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before&#x3D;obj_foo in order to fetch the previous page of the list.
1220
+ # @return [Array<(ListRunsResponse, Integer, Hash)>] ListRunsResponse data, response status code and response headers
1221
+ def list_runs_with_http_info(thread_id, opts = {})
1222
+ if @api_client.config.debugging
1223
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.list_runs ...'
1224
+ end
1225
+ # verify the required parameter 'thread_id' is set
1226
+ if @api_client.config.client_side_validation && thread_id.nil?
1227
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.list_runs"
1228
+ end
1229
+ allowable_values = ["asc", "desc"]
1230
+ if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
1231
+ fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
1232
+ end
1233
+ # resource path
1234
+ local_var_path = '/threads/{thread_id}/runs'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s))
1235
+
1236
+ # query parameters
1237
+ query_params = opts[:query_params] || {}
1238
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1239
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
1240
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1241
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1242
+
1243
+ # header parameters
1244
+ header_params = opts[:header_params] || {}
1245
+ # HTTP header 'Accept' (if needed)
1246
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1247
+
1248
+ # form parameters
1249
+ form_params = opts[:form_params] || {}
1250
+
1251
+ # http body (model)
1252
+ post_body = opts[:debug_body]
1253
+
1254
+ # return_type
1255
+ return_type = opts[:debug_return_type] || 'ListRunsResponse'
1256
+
1257
+ # auth_names
1258
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
1259
+
1260
+ new_options = opts.merge(
1261
+ :operation => :"AssistantsApi.list_runs",
1262
+ :header_params => header_params,
1263
+ :query_params => query_params,
1264
+ :form_params => form_params,
1265
+ :body => post_body,
1266
+ :auth_names => auth_names,
1267
+ :return_type => return_type
1268
+ )
1269
+
1270
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1271
+ if @api_client.config.debugging
1272
+ @api_client.config.logger.debug "API called: AssistantsApi#list_runs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1273
+ end
1274
+ return data, status_code, headers
1275
+ end
1276
+
1277
+ # Modifies an assistant.
1278
+ # @param assistant_id [String] The ID of the assistant to modify.
1279
+ # @param modify_assistant_request [ModifyAssistantRequest]
1280
+ # @param [Hash] opts the optional parameters
1281
+ # @return [AssistantObject]
1282
+ def modify_assistant(assistant_id, modify_assistant_request, opts = {})
1283
+ data, _status_code, _headers = modify_assistant_with_http_info(assistant_id, modify_assistant_request, opts)
1284
+ data
1285
+ end
1286
+
1287
+ # Modifies an assistant.
1288
+ # @param assistant_id [String] The ID of the assistant to modify.
1289
+ # @param modify_assistant_request [ModifyAssistantRequest]
1290
+ # @param [Hash] opts the optional parameters
1291
+ # @return [Array<(AssistantObject, Integer, Hash)>] AssistantObject data, response status code and response headers
1292
+ def modify_assistant_with_http_info(assistant_id, modify_assistant_request, opts = {})
1293
+ if @api_client.config.debugging
1294
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.modify_assistant ...'
1295
+ end
1296
+ # verify the required parameter 'assistant_id' is set
1297
+ if @api_client.config.client_side_validation && assistant_id.nil?
1298
+ fail ArgumentError, "Missing the required parameter 'assistant_id' when calling AssistantsApi.modify_assistant"
1299
+ end
1300
+ # verify the required parameter 'modify_assistant_request' is set
1301
+ if @api_client.config.client_side_validation && modify_assistant_request.nil?
1302
+ fail ArgumentError, "Missing the required parameter 'modify_assistant_request' when calling AssistantsApi.modify_assistant"
1303
+ end
1304
+ # resource path
1305
+ local_var_path = '/assistants/{assistant_id}'.sub('{' + 'assistant_id' + '}', CGI.escape(assistant_id.to_s))
1306
+
1307
+ # query parameters
1308
+ query_params = opts[:query_params] || {}
1309
+
1310
+ # header parameters
1311
+ header_params = opts[:header_params] || {}
1312
+ # HTTP header 'Accept' (if needed)
1313
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1314
+ # HTTP header 'Content-Type'
1315
+ content_type = @api_client.select_header_content_type(['application/json'])
1316
+ if !content_type.nil?
1317
+ header_params['Content-Type'] = content_type
1318
+ end
1319
+
1320
+ # form parameters
1321
+ form_params = opts[:form_params] || {}
1322
+
1323
+ # http body (model)
1324
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(modify_assistant_request)
1325
+
1326
+ # return_type
1327
+ return_type = opts[:debug_return_type] || 'AssistantObject'
1328
+
1329
+ # auth_names
1330
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
1331
+
1332
+ new_options = opts.merge(
1333
+ :operation => :"AssistantsApi.modify_assistant",
1334
+ :header_params => header_params,
1335
+ :query_params => query_params,
1336
+ :form_params => form_params,
1337
+ :body => post_body,
1338
+ :auth_names => auth_names,
1339
+ :return_type => return_type
1340
+ )
1341
+
1342
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1343
+ if @api_client.config.debugging
1344
+ @api_client.config.logger.debug "API called: AssistantsApi#modify_assistant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1345
+ end
1346
+ return data, status_code, headers
1347
+ end
1348
+
1349
+ # Modifies a message.
1350
+ # @param thread_id [String] The ID of the thread to which this message belongs.
1351
+ # @param message_id [String] The ID of the message to modify.
1352
+ # @param modify_message_request [ModifyMessageRequest]
1353
+ # @param [Hash] opts the optional parameters
1354
+ # @return [MessageObject]
1355
+ def modify_message(thread_id, message_id, modify_message_request, opts = {})
1356
+ data, _status_code, _headers = modify_message_with_http_info(thread_id, message_id, modify_message_request, opts)
1357
+ data
1358
+ end
1359
+
1360
+ # Modifies a message.
1361
+ # @param thread_id [String] The ID of the thread to which this message belongs.
1362
+ # @param message_id [String] The ID of the message to modify.
1363
+ # @param modify_message_request [ModifyMessageRequest]
1364
+ # @param [Hash] opts the optional parameters
1365
+ # @return [Array<(MessageObject, Integer, Hash)>] MessageObject data, response status code and response headers
1366
+ def modify_message_with_http_info(thread_id, message_id, modify_message_request, opts = {})
1367
+ if @api_client.config.debugging
1368
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.modify_message ...'
1369
+ end
1370
+ # verify the required parameter 'thread_id' is set
1371
+ if @api_client.config.client_side_validation && thread_id.nil?
1372
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.modify_message"
1373
+ end
1374
+ # verify the required parameter 'message_id' is set
1375
+ if @api_client.config.client_side_validation && message_id.nil?
1376
+ fail ArgumentError, "Missing the required parameter 'message_id' when calling AssistantsApi.modify_message"
1377
+ end
1378
+ # verify the required parameter 'modify_message_request' is set
1379
+ if @api_client.config.client_side_validation && modify_message_request.nil?
1380
+ fail ArgumentError, "Missing the required parameter 'modify_message_request' when calling AssistantsApi.modify_message"
1381
+ end
1382
+ # resource path
1383
+ local_var_path = '/threads/{thread_id}/messages/{message_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'message_id' + '}', CGI.escape(message_id.to_s))
1384
+
1385
+ # query parameters
1386
+ query_params = opts[:query_params] || {}
1387
+
1388
+ # header parameters
1389
+ header_params = opts[:header_params] || {}
1390
+ # HTTP header 'Accept' (if needed)
1391
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1392
+ # HTTP header 'Content-Type'
1393
+ content_type = @api_client.select_header_content_type(['application/json'])
1394
+ if !content_type.nil?
1395
+ header_params['Content-Type'] = content_type
1396
+ end
1397
+
1398
+ # form parameters
1399
+ form_params = opts[:form_params] || {}
1400
+
1401
+ # http body (model)
1402
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(modify_message_request)
1403
+
1404
+ # return_type
1405
+ return_type = opts[:debug_return_type] || 'MessageObject'
1406
+
1407
+ # auth_names
1408
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
1409
+
1410
+ new_options = opts.merge(
1411
+ :operation => :"AssistantsApi.modify_message",
1412
+ :header_params => header_params,
1413
+ :query_params => query_params,
1414
+ :form_params => form_params,
1415
+ :body => post_body,
1416
+ :auth_names => auth_names,
1417
+ :return_type => return_type
1418
+ )
1419
+
1420
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1421
+ if @api_client.config.debugging
1422
+ @api_client.config.logger.debug "API called: AssistantsApi#modify_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1423
+ end
1424
+ return data, status_code, headers
1425
+ end
1426
+
1427
+ # Modifies a run.
1428
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) that was run.
1429
+ # @param run_id [String] The ID of the run to modify.
1430
+ # @param modify_run_request [ModifyRunRequest]
1431
+ # @param [Hash] opts the optional parameters
1432
+ # @return [RunObject]
1433
+ def modify_run(thread_id, run_id, modify_run_request, opts = {})
1434
+ data, _status_code, _headers = modify_run_with_http_info(thread_id, run_id, modify_run_request, opts)
1435
+ data
1436
+ end
1437
+
1438
+ # Modifies a run.
1439
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) that was run.
1440
+ # @param run_id [String] The ID of the run to modify.
1441
+ # @param modify_run_request [ModifyRunRequest]
1442
+ # @param [Hash] opts the optional parameters
1443
+ # @return [Array<(RunObject, Integer, Hash)>] RunObject data, response status code and response headers
1444
+ def modify_run_with_http_info(thread_id, run_id, modify_run_request, opts = {})
1445
+ if @api_client.config.debugging
1446
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.modify_run ...'
1447
+ end
1448
+ # verify the required parameter 'thread_id' is set
1449
+ if @api_client.config.client_side_validation && thread_id.nil?
1450
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.modify_run"
1451
+ end
1452
+ # verify the required parameter 'run_id' is set
1453
+ if @api_client.config.client_side_validation && run_id.nil?
1454
+ fail ArgumentError, "Missing the required parameter 'run_id' when calling AssistantsApi.modify_run"
1455
+ end
1456
+ # verify the required parameter 'modify_run_request' is set
1457
+ if @api_client.config.client_side_validation && modify_run_request.nil?
1458
+ fail ArgumentError, "Missing the required parameter 'modify_run_request' when calling AssistantsApi.modify_run"
1459
+ end
1460
+ # resource path
1461
+ local_var_path = '/threads/{thread_id}/runs/{run_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'run_id' + '}', CGI.escape(run_id.to_s))
1462
+
1463
+ # query parameters
1464
+ query_params = opts[:query_params] || {}
1465
+
1466
+ # header parameters
1467
+ header_params = opts[:header_params] || {}
1468
+ # HTTP header 'Accept' (if needed)
1469
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1470
+ # HTTP header 'Content-Type'
1471
+ content_type = @api_client.select_header_content_type(['application/json'])
1472
+ if !content_type.nil?
1473
+ header_params['Content-Type'] = content_type
1474
+ end
1475
+
1476
+ # form parameters
1477
+ form_params = opts[:form_params] || {}
1478
+
1479
+ # http body (model)
1480
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(modify_run_request)
1481
+
1482
+ # return_type
1483
+ return_type = opts[:debug_return_type] || 'RunObject'
1484
+
1485
+ # auth_names
1486
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
1487
+
1488
+ new_options = opts.merge(
1489
+ :operation => :"AssistantsApi.modify_run",
1490
+ :header_params => header_params,
1491
+ :query_params => query_params,
1492
+ :form_params => form_params,
1493
+ :body => post_body,
1494
+ :auth_names => auth_names,
1495
+ :return_type => return_type
1496
+ )
1497
+
1498
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1499
+ if @api_client.config.debugging
1500
+ @api_client.config.logger.debug "API called: AssistantsApi#modify_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1501
+ end
1502
+ return data, status_code, headers
1503
+ end
1504
+
1505
+ # Modifies a thread.
1506
+ # @param thread_id [String] The ID of the thread to modify. Only the &#x60;metadata&#x60; can be modified.
1507
+ # @param modify_thread_request [ModifyThreadRequest]
1508
+ # @param [Hash] opts the optional parameters
1509
+ # @return [ThreadObject]
1510
+ def modify_thread(thread_id, modify_thread_request, opts = {})
1511
+ data, _status_code, _headers = modify_thread_with_http_info(thread_id, modify_thread_request, opts)
1512
+ data
1513
+ end
1514
+
1515
+ # Modifies a thread.
1516
+ # @param thread_id [String] The ID of the thread to modify. Only the &#x60;metadata&#x60; can be modified.
1517
+ # @param modify_thread_request [ModifyThreadRequest]
1518
+ # @param [Hash] opts the optional parameters
1519
+ # @return [Array<(ThreadObject, Integer, Hash)>] ThreadObject data, response status code and response headers
1520
+ def modify_thread_with_http_info(thread_id, modify_thread_request, opts = {})
1521
+ if @api_client.config.debugging
1522
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.modify_thread ...'
1523
+ end
1524
+ # verify the required parameter 'thread_id' is set
1525
+ if @api_client.config.client_side_validation && thread_id.nil?
1526
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.modify_thread"
1527
+ end
1528
+ # verify the required parameter 'modify_thread_request' is set
1529
+ if @api_client.config.client_side_validation && modify_thread_request.nil?
1530
+ fail ArgumentError, "Missing the required parameter 'modify_thread_request' when calling AssistantsApi.modify_thread"
1531
+ end
1532
+ # resource path
1533
+ local_var_path = '/threads/{thread_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s))
1534
+
1535
+ # query parameters
1536
+ query_params = opts[:query_params] || {}
1537
+
1538
+ # header parameters
1539
+ header_params = opts[:header_params] || {}
1540
+ # HTTP header 'Accept' (if needed)
1541
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1542
+ # HTTP header 'Content-Type'
1543
+ content_type = @api_client.select_header_content_type(['application/json'])
1544
+ if !content_type.nil?
1545
+ header_params['Content-Type'] = content_type
1546
+ end
1547
+
1548
+ # form parameters
1549
+ form_params = opts[:form_params] || {}
1550
+
1551
+ # http body (model)
1552
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(modify_thread_request)
1553
+
1554
+ # return_type
1555
+ return_type = opts[:debug_return_type] || 'ThreadObject'
1556
+
1557
+ # auth_names
1558
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
1559
+
1560
+ new_options = opts.merge(
1561
+ :operation => :"AssistantsApi.modify_thread",
1562
+ :header_params => header_params,
1563
+ :query_params => query_params,
1564
+ :form_params => form_params,
1565
+ :body => post_body,
1566
+ :auth_names => auth_names,
1567
+ :return_type => return_type
1568
+ )
1569
+
1570
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1571
+ if @api_client.config.debugging
1572
+ @api_client.config.logger.debug "API called: AssistantsApi#modify_thread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1573
+ end
1574
+ return data, status_code, headers
1575
+ end
1576
+
1577
+ # When a run has the `status: \"requires_action\"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.
1578
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) to which this run belongs.
1579
+ # @param run_id [String] The ID of the run that requires the tool output submission.
1580
+ # @param submit_tool_outputs_run_request [SubmitToolOutputsRunRequest]
1581
+ # @param [Hash] opts the optional parameters
1582
+ # @return [RunObject]
1583
+ def submit_tool_ouputs_to_run(thread_id, run_id, submit_tool_outputs_run_request, opts = {})
1584
+ data, _status_code, _headers = submit_tool_ouputs_to_run_with_http_info(thread_id, run_id, submit_tool_outputs_run_request, opts)
1585
+ data
1586
+ end
1587
+
1588
+ # When a run has the &#x60;status: \&quot;requires_action\&quot;&#x60; and &#x60;required_action.type&#x60; is &#x60;submit_tool_outputs&#x60;, this endpoint can be used to submit the outputs from the tool calls once they&#39;re all completed. All outputs must be submitted in a single request.
1589
+ # @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) to which this run belongs.
1590
+ # @param run_id [String] The ID of the run that requires the tool output submission.
1591
+ # @param submit_tool_outputs_run_request [SubmitToolOutputsRunRequest]
1592
+ # @param [Hash] opts the optional parameters
1593
+ # @return [Array<(RunObject, Integer, Hash)>] RunObject data, response status code and response headers
1594
+ def submit_tool_ouputs_to_run_with_http_info(thread_id, run_id, submit_tool_outputs_run_request, opts = {})
1595
+ if @api_client.config.debugging
1596
+ @api_client.config.logger.debug 'Calling API: AssistantsApi.submit_tool_ouputs_to_run ...'
1597
+ end
1598
+ # verify the required parameter 'thread_id' is set
1599
+ if @api_client.config.client_side_validation && thread_id.nil?
1600
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.submit_tool_ouputs_to_run"
1601
+ end
1602
+ # verify the required parameter 'run_id' is set
1603
+ if @api_client.config.client_side_validation && run_id.nil?
1604
+ fail ArgumentError, "Missing the required parameter 'run_id' when calling AssistantsApi.submit_tool_ouputs_to_run"
1605
+ end
1606
+ # verify the required parameter 'submit_tool_outputs_run_request' is set
1607
+ if @api_client.config.client_side_validation && submit_tool_outputs_run_request.nil?
1608
+ fail ArgumentError, "Missing the required parameter 'submit_tool_outputs_run_request' when calling AssistantsApi.submit_tool_ouputs_to_run"
1609
+ end
1610
+ # resource path
1611
+ local_var_path = '/threads/{thread_id}/runs/{run_id}/submit_tool_outputs'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'run_id' + '}', CGI.escape(run_id.to_s))
1612
+
1613
+ # query parameters
1614
+ query_params = opts[:query_params] || {}
1615
+
1616
+ # header parameters
1617
+ header_params = opts[:header_params] || {}
1618
+ # HTTP header 'Accept' (if needed)
1619
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1620
+ # HTTP header 'Content-Type'
1621
+ content_type = @api_client.select_header_content_type(['application/json'])
1622
+ if !content_type.nil?
1623
+ header_params['Content-Type'] = content_type
1624
+ end
1625
+
1626
+ # form parameters
1627
+ form_params = opts[:form_params] || {}
1628
+
1629
+ # http body (model)
1630
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(submit_tool_outputs_run_request)
1631
+
1632
+ # return_type
1633
+ return_type = opts[:debug_return_type] || 'RunObject'
1634
+
1635
+ # auth_names
1636
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
1637
+
1638
+ new_options = opts.merge(
1639
+ :operation => :"AssistantsApi.submit_tool_ouputs_to_run",
1640
+ :header_params => header_params,
1641
+ :query_params => query_params,
1642
+ :form_params => form_params,
1643
+ :body => post_body,
1644
+ :auth_names => auth_names,
1645
+ :return_type => return_type
1646
+ )
1647
+
1648
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1649
+ if @api_client.config.debugging
1650
+ @api_client.config.logger.debug "API called: AssistantsApi#submit_tool_ouputs_to_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1651
+ end
1652
+ return data, status_code, headers
1653
+ end
1654
+ end
1655
+ end