openapi_openai 1.1.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 (1440) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +93 -24
  3. data/README.md +355 -32
  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 +12 -6
  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 +3 -3
  26. data/docs/AssistantToolsFileSearch.md +20 -0
  27. data/docs/AssistantToolsFileSearchFileSearch.md +20 -0
  28. data/docs/{AssistantToolsRetrieval.md → AssistantToolsFileSearchTypeOnly.md} +3 -3
  29. data/docs/AssistantsApi.md +45 -405
  30. data/docs/AssistantsApiResponseFormatOption.md +7 -3
  31. data/docs/AssistantsApiToolChoiceOption.md +3 -3
  32. data/docs/{AssistantsApiNamedToolChoice.md → AssistantsNamedToolChoice.md} +3 -3
  33. data/docs/{ChatCompletionNamedToolChoiceFunction.md → AssistantsNamedToolChoiceFunction.md} +2 -2
  34. data/docs/AudioApi.md +8 -8
  35. data/docs/AudioResponseFormat.md +15 -0
  36. data/docs/AuditLog.md +66 -0
  37. data/docs/AuditLogActor.md +22 -0
  38. data/docs/AuditLogActorApiKey.md +24 -0
  39. data/docs/AuditLogActorServiceAccount.md +18 -0
  40. data/docs/AuditLogActorSession.md +20 -0
  41. data/docs/AuditLogActorUser.md +20 -0
  42. data/docs/AuditLogApiKeyCreated.md +20 -0
  43. data/docs/AuditLogApiKeyCreatedData.md +18 -0
  44. data/docs/AuditLogApiKeyDeleted.md +18 -0
  45. data/docs/AuditLogApiKeyUpdated.md +20 -0
  46. data/docs/AuditLogApiKeyUpdatedChangesRequested.md +18 -0
  47. data/docs/AuditLogEventType.md +15 -0
  48. data/docs/AuditLogInviteAccepted.md +18 -0
  49. data/docs/AuditLogInviteSent.md +20 -0
  50. data/docs/AuditLogInviteSentData.md +20 -0
  51. data/docs/AuditLogLoginFailed.md +20 -0
  52. data/docs/AuditLogOrganizationUpdated.md +20 -0
  53. data/docs/AuditLogOrganizationUpdatedChangesRequested.md +24 -0
  54. data/docs/AuditLogOrganizationUpdatedChangesRequestedSettings.md +20 -0
  55. data/docs/AuditLogProject.md +20 -0
  56. data/docs/AuditLogProjectArchived.md +18 -0
  57. data/docs/AuditLogProjectCreated.md +20 -0
  58. data/docs/AuditLogProjectCreatedData.md +20 -0
  59. data/docs/AuditLogProjectUpdated.md +20 -0
  60. data/docs/AuditLogProjectUpdatedChangesRequested.md +18 -0
  61. data/docs/AuditLogRateLimitDeleted.md +18 -0
  62. data/docs/AuditLogRateLimitUpdated.md +20 -0
  63. data/docs/AuditLogRateLimitUpdatedChangesRequested.md +28 -0
  64. data/docs/AuditLogServiceAccountCreated.md +20 -0
  65. data/docs/AuditLogServiceAccountCreatedData.md +18 -0
  66. data/docs/AuditLogServiceAccountDeleted.md +18 -0
  67. data/docs/AuditLogServiceAccountUpdated.md +20 -0
  68. data/docs/AuditLogServiceAccountUpdatedChangesRequested.md +18 -0
  69. data/docs/AuditLogUserAdded.md +20 -0
  70. data/docs/AuditLogUserAddedData.md +18 -0
  71. data/docs/AuditLogUserDeleted.md +18 -0
  72. data/docs/AuditLogUserUpdated.md +20 -0
  73. data/docs/AuditLogUserUpdatedChangesRequested.md +18 -0
  74. data/docs/AuditLogsApi.md +93 -0
  75. data/docs/AutoChunkingStrategy.md +18 -0
  76. data/docs/AutoChunkingStrategyRequestParam.md +18 -0
  77. data/docs/Batch.md +56 -0
  78. data/docs/BatchApi.md +283 -0
  79. data/docs/BatchErrors.md +20 -0
  80. data/docs/BatchErrorsDataInner.md +24 -0
  81. data/docs/BatchRequestCounts.md +22 -0
  82. data/docs/BatchRequestInput.md +22 -0
  83. data/docs/BatchRequestOutput.md +24 -0
  84. data/docs/BatchRequestOutputError.md +20 -0
  85. data/docs/BatchRequestOutputResponse.md +22 -0
  86. data/docs/ChatApi.md +4 -4
  87. data/docs/ChatCompletionFunctions.md +1 -1
  88. data/docs/ChatCompletionNamedToolChoice.md +1 -1
  89. data/docs/ChatCompletionRequestAssistantMessage.md +5 -1
  90. data/docs/ChatCompletionRequestAssistantMessageAudio.md +18 -0
  91. data/docs/ChatCompletionRequestAssistantMessageContent.md +49 -0
  92. data/docs/ChatCompletionRequestAssistantMessageContentPart.md +49 -0
  93. data/docs/ChatCompletionRequestDeveloperMessage.md +22 -0
  94. data/docs/ChatCompletionRequestDeveloperMessageContent.md +49 -0
  95. data/docs/ChatCompletionRequestMessage.md +2 -0
  96. data/docs/ChatCompletionRequestMessageContentPartAudio.md +20 -0
  97. data/docs/ChatCompletionRequestMessageContentPartAudioInputAudio.md +20 -0
  98. data/docs/ChatCompletionRequestMessageContentPartImageImageUrl.md +1 -1
  99. data/docs/ChatCompletionRequestMessageContentPartRefusal.md +20 -0
  100. data/docs/ChatCompletionRequestSystemMessage.md +1 -1
  101. data/docs/ChatCompletionRequestSystemMessageContent.md +49 -0
  102. data/docs/ChatCompletionRequestToolMessage.md +1 -1
  103. data/docs/ChatCompletionRequestToolMessageContent.md +49 -0
  104. data/docs/ChatCompletionRequestUserMessageContent.md +3 -3
  105. data/docs/{ChatCompletionRequestMessageContentPart.md → ChatCompletionRequestUserMessageContentPart.md} +7 -5
  106. data/docs/ChatCompletionResponseMessage.md +6 -2
  107. data/docs/ChatCompletionResponseMessageAudio.md +24 -0
  108. data/docs/ChatCompletionResponseMessageFunctionCall.md +20 -0
  109. data/docs/ChatCompletionStreamOptions.md +18 -0
  110. data/docs/ChatCompletionStreamResponseDelta.md +3 -1
  111. data/docs/ChunkingStrategyRequestParam.md +49 -0
  112. data/docs/CompleteUploadRequest.md +20 -0
  113. data/docs/CompletionUsage.md +5 -1
  114. data/docs/CompletionUsageCompletionTokensDetails.md +24 -0
  115. data/docs/CompletionUsagePromptTokensDetails.md +20 -0
  116. data/docs/CostsResult.md +24 -0
  117. data/docs/CostsResultAmount.md +20 -0
  118. data/docs/CreateAssistantRequest.md +11 -5
  119. data/docs/CreateAssistantRequestToolResources.md +20 -0
  120. data/docs/CreateAssistantRequestToolResourcesCodeInterpreter.md +18 -0
  121. data/docs/CreateAssistantRequestToolResourcesFileSearch.md +20 -0
  122. data/docs/CreateAssistantRequestToolResourcesFileSearchVectorStoresInner.md +22 -0
  123. data/docs/CreateAssistantRequestToolResourcesFileSearchVectorStoresInnerChunkingStrategy.md +49 -0
  124. data/docs/CreateBatchRequest.md +24 -0
  125. data/docs/CreateChatCompletionRequest.md +28 -8
  126. data/docs/CreateChatCompletionRequestAudio.md +20 -0
  127. data/docs/CreateChatCompletionRequestResponseFormat.md +41 -8
  128. data/docs/CreateChatCompletionResponse.md +2 -0
  129. data/docs/CreateChatCompletionResponseChoicesInnerLogprobs.md +3 -1
  130. data/docs/CreateChatCompletionStreamResponse.md +6 -2
  131. data/docs/CreateChatCompletionStreamResponseUsage.md +22 -0
  132. data/docs/CreateCompletionRequest.md +5 -3
  133. data/docs/CreateEmbeddingRequest.md +1 -1
  134. data/docs/CreateFineTuningJobRequest.md +5 -3
  135. data/docs/CreateFineTuningJobRequestIntegrationsInner.md +1 -1
  136. data/docs/CreateImageRequest.md +1 -1
  137. data/docs/CreateMessageRequest.md +4 -4
  138. data/docs/CreateMessageRequestAttachmentsInner.md +20 -0
  139. data/docs/CreateMessageRequestAttachmentsInnerToolsInner.md +49 -0
  140. data/docs/CreateMessageRequestContent.md +49 -0
  141. data/docs/CreateModerationRequestInput.md +3 -1
  142. data/docs/CreateModerationRequestInputOneOfInner.md +49 -0
  143. data/docs/CreateModerationRequestInputOneOfInnerOneOf.md +20 -0
  144. data/docs/CreateModerationRequestInputOneOfInnerOneOf1.md +20 -0
  145. data/docs/CreateModerationRequestInputOneOfInnerOneOfImageUrl.md +18 -0
  146. data/docs/CreateModerationResponseResultsInner.md +3 -1
  147. data/docs/CreateModerationResponseResultsInnerCategories.md +4 -0
  148. data/docs/CreateModerationResponseResultsInnerCategoryAppliedInputTypes.md +42 -0
  149. data/docs/CreateModerationResponseResultsInnerCategoryScores.md +4 -0
  150. data/docs/CreateRunRequest.md +7 -3
  151. data/docs/CreateSpeechRequest.md +2 -2
  152. data/docs/CreateThreadAndRunRequest.md +8 -2
  153. data/docs/CreateThreadAndRunRequestToolResources.md +20 -0
  154. data/docs/CreateThreadAndRunRequestToolsInner.md +3 -3
  155. data/docs/CreateThreadRequest.md +3 -1
  156. data/docs/CreateThreadRequestToolResources.md +20 -0
  157. data/docs/CreateThreadRequestToolResourcesFileSearch.md +20 -0
  158. data/docs/CreateThreadRequestToolResourcesFileSearchVectorStoresInner.md +22 -0
  159. data/docs/CreateUploadRequest.md +24 -0
  160. data/docs/CreateVectorStoreFileBatchRequest.md +20 -0
  161. data/docs/CreateVectorStoreFileRequest.md +20 -0
  162. data/docs/CreateVectorStoreRequest.md +26 -0
  163. data/docs/CreateVectorStoreRequestChunkingStrategy.md +49 -0
  164. data/docs/DefaultApi.md +293 -0
  165. data/docs/DefaultProjectErrorResponse.md +20 -0
  166. data/docs/DeleteVectorStoreFileResponse.md +22 -0
  167. data/docs/{DeleteAssistantFileResponse.md → DeleteVectorStoreResponse.md} +2 -2
  168. data/docs/FileSearchRankingOptions.md +20 -0
  169. data/docs/FilesApi.md +17 -11
  170. data/docs/FineTuneChatCompletionRequestAssistantMessage.md +32 -0
  171. data/docs/FineTuneChatRequestInput.md +24 -0
  172. data/docs/FineTuneChatRequestInputMessagesInner.md +55 -0
  173. data/docs/FineTuneCompletionRequestInput.md +20 -0
  174. data/docs/FineTuneDPOMethod.md +18 -0
  175. data/docs/FineTuneDPOMethodHyperparameters.md +24 -0
  176. data/docs/FineTuneDPOMethodHyperparametersBatchSize.md +49 -0
  177. data/docs/FineTuneDPOMethodHyperparametersBeta.md +49 -0
  178. data/docs/FineTuneDPOMethodHyperparametersLearningRateMultiplier.md +49 -0
  179. data/docs/{FineTuningJobHyperparametersNEpochs.md → FineTuneDPOMethodHyperparametersNEpochs.md} +4 -4
  180. data/docs/FineTuneMethod.md +22 -0
  181. data/docs/FineTunePreferenceRequestInput.md +22 -0
  182. data/docs/FineTunePreferenceRequestInputInput.md +22 -0
  183. data/docs/FineTunePreferenceRequestInputPreferredCompletionInner.md +47 -0
  184. data/docs/FineTuneSupervisedMethod.md +18 -0
  185. data/docs/FineTuneSupervisedMethodHyperparameters.md +22 -0
  186. data/docs/FineTuningJob.md +5 -1
  187. data/docs/FineTuningJobEvent.md +10 -6
  188. data/docs/FineTuningJobHyperparameters.md +5 -1
  189. data/docs/FunctionObject.md +4 -2
  190. data/docs/ImagesApi.md +4 -4
  191. data/docs/Invite.md +34 -0
  192. data/docs/InviteDeleteResponse.md +22 -0
  193. data/docs/InviteListResponse.md +26 -0
  194. data/docs/InviteProjectsInner.md +20 -0
  195. data/docs/InviteRequest.md +22 -0
  196. data/docs/InviteRequestProjectsInner.md +20 -0
  197. data/docs/InvitesApi.md +283 -0
  198. data/docs/ListAuditLogsEffectiveAtParameter.md +24 -0
  199. data/docs/ListAuditLogsResponse.md +26 -0
  200. data/docs/ListBatchesResponse.md +26 -0
  201. data/docs/ListFilesResponse.md +8 -2
  202. data/docs/{ListAssistantFilesResponse.md → ListVectorStoreFilesResponse.md} +3 -3
  203. data/docs/{ListMessageFilesResponse.md → ListVectorStoresResponse.md} +5 -5
  204. data/docs/MessageContentImageFileObjectImageFile.md +4 -2
  205. data/docs/MessageContentImageUrlObject.md +20 -0
  206. data/docs/MessageContentImageUrlObjectImageUrl.md +20 -0
  207. data/docs/MessageContentRefusalObject.md +20 -0
  208. data/docs/MessageContentTextAnnotationsFileCitationObjectFileCitation.md +1 -3
  209. data/docs/MessageDeltaContentImageFileObjectImageFile.md +4 -2
  210. data/docs/MessageDeltaContentImageUrlObject.md +22 -0
  211. data/docs/MessageDeltaContentImageUrlObjectImageUrl.md +20 -0
  212. data/docs/MessageDeltaContentRefusalObject.md +22 -0
  213. data/docs/MessageDeltaObjectDelta.md +1 -3
  214. data/docs/MessageDeltaObjectDeltaContentInner.md +4 -0
  215. data/docs/MessageObject.md +3 -3
  216. data/docs/MessageObjectContentInner.md +4 -0
  217. data/docs/MessageRequestContentTextObject.md +20 -0
  218. data/docs/ModelsApi.md +2 -2
  219. data/docs/ModerationsApi.md +4 -4
  220. data/docs/ModifyAssistantRequest.md +11 -5
  221. data/docs/ModifyAssistantRequestToolResources.md +20 -0
  222. data/docs/ModifyAssistantRequestToolResourcesCodeInterpreter.md +18 -0
  223. data/docs/ModifyAssistantRequestToolResourcesFileSearch.md +18 -0
  224. data/docs/ModifyMessageRequest.md +1 -1
  225. data/docs/ModifyRunRequest.md +1 -1
  226. data/docs/ModifyThreadRequest.md +3 -1
  227. data/docs/ModifyThreadRequestToolResources.md +20 -0
  228. data/docs/ModifyThreadRequestToolResourcesFileSearch.md +18 -0
  229. data/docs/OpenAIFile.md +1 -1
  230. data/docs/OtherChunkingStrategyResponseParam.md +18 -0
  231. data/docs/PredictionContent.md +20 -0
  232. data/docs/PredictionContentContent.md +49 -0
  233. data/docs/Project.md +28 -0
  234. data/docs/ProjectApiKey.md +28 -0
  235. data/docs/ProjectApiKeyDeleteResponse.md +22 -0
  236. data/docs/ProjectApiKeyListResponse.md +26 -0
  237. data/docs/ProjectApiKeyOwner.md +22 -0
  238. data/docs/ProjectCreateRequest.md +18 -0
  239. data/docs/ProjectListResponse.md +26 -0
  240. data/docs/ProjectRateLimit.md +34 -0
  241. data/docs/ProjectRateLimitListResponse.md +26 -0
  242. data/docs/ProjectRateLimitUpdateRequest.md +28 -0
  243. data/docs/ProjectServiceAccount.md +26 -0
  244. data/docs/ProjectServiceAccountApiKey.md +26 -0
  245. data/docs/ProjectServiceAccountCreateRequest.md +18 -0
  246. data/docs/ProjectServiceAccountCreateResponse.md +28 -0
  247. data/docs/ProjectServiceAccountDeleteResponse.md +22 -0
  248. data/docs/ProjectServiceAccountListResponse.md +26 -0
  249. data/docs/ProjectUpdateRequest.md +18 -0
  250. data/docs/ProjectUser.md +28 -0
  251. data/docs/ProjectUserCreateRequest.md +20 -0
  252. data/docs/ProjectUserDeleteResponse.md +22 -0
  253. data/docs/ProjectUserListResponse.md +26 -0
  254. data/docs/ProjectUserUpdateRequest.md +18 -0
  255. data/docs/ProjectsApi.md +1357 -0
  256. data/docs/RealtimeApi.md +75 -0
  257. data/docs/RealtimeClientEventConversationItemCreate.md +24 -0
  258. data/docs/RealtimeClientEventConversationItemDelete.md +22 -0
  259. data/docs/RealtimeClientEventConversationItemTruncate.md +26 -0
  260. data/docs/RealtimeClientEventInputAudioBufferAppend.md +22 -0
  261. data/docs/RealtimeClientEventInputAudioBufferClear.md +20 -0
  262. data/docs/RealtimeClientEventInputAudioBufferCommit.md +20 -0
  263. data/docs/RealtimeClientEventResponseCancel.md +22 -0
  264. data/docs/RealtimeClientEventResponseCreate.md +22 -0
  265. data/docs/RealtimeClientEventSessionUpdate.md +22 -0
  266. data/docs/RealtimeConversationItem.md +36 -0
  267. data/docs/RealtimeConversationItemContentInner.md +26 -0
  268. data/docs/RealtimeResponse.md +30 -0
  269. data/docs/RealtimeResponseCreateParams.md +38 -0
  270. data/docs/{CreateFineTuningJobRequestIntegrationsInnerType.md → RealtimeResponseCreateParamsConversation.md} +4 -4
  271. data/docs/RealtimeResponseCreateParamsMaxResponseOutputTokens.md +49 -0
  272. data/docs/RealtimeResponseCreateParamsToolsInner.md +24 -0
  273. data/docs/RealtimeResponseStatusDetails.md +22 -0
  274. data/docs/RealtimeResponseStatusDetailsError.md +20 -0
  275. data/docs/RealtimeResponseUsage.md +26 -0
  276. data/docs/RealtimeResponseUsageInputTokenDetails.md +22 -0
  277. data/docs/RealtimeResponseUsageOutputTokenDetails.md +20 -0
  278. data/docs/RealtimeServerEventConversationCreated.md +22 -0
  279. data/docs/RealtimeServerEventConversationCreatedConversation.md +20 -0
  280. data/docs/RealtimeServerEventConversationItemCreated.md +24 -0
  281. data/docs/RealtimeServerEventConversationItemDeleted.md +22 -0
  282. data/docs/RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.md +26 -0
  283. data/docs/RealtimeServerEventConversationItemInputAudioTranscriptionFailed.md +26 -0
  284. data/docs/RealtimeServerEventConversationItemInputAudioTranscriptionFailedError.md +24 -0
  285. data/docs/RealtimeServerEventConversationItemTruncated.md +26 -0
  286. data/docs/RealtimeServerEventError.md +22 -0
  287. data/docs/RealtimeServerEventErrorError.md +26 -0
  288. data/docs/RealtimeServerEventInputAudioBufferCleared.md +20 -0
  289. data/docs/RealtimeServerEventInputAudioBufferCommitted.md +24 -0
  290. data/docs/RealtimeServerEventInputAudioBufferSpeechStarted.md +24 -0
  291. data/docs/RealtimeServerEventInputAudioBufferSpeechStopped.md +24 -0
  292. data/docs/RealtimeServerEventRateLimitsUpdated.md +22 -0
  293. data/docs/RealtimeServerEventRateLimitsUpdatedRateLimitsInner.md +24 -0
  294. data/docs/RealtimeServerEventResponseAudioDelta.md +30 -0
  295. data/docs/RealtimeServerEventResponseAudioDone.md +28 -0
  296. data/docs/RealtimeServerEventResponseAudioTranscriptDelta.md +30 -0
  297. data/docs/RealtimeServerEventResponseAudioTranscriptDone.md +30 -0
  298. data/docs/RealtimeServerEventResponseContentPartAdded.md +30 -0
  299. data/docs/RealtimeServerEventResponseContentPartAddedPart.md +24 -0
  300. data/docs/RealtimeServerEventResponseContentPartDone.md +30 -0
  301. data/docs/RealtimeServerEventResponseContentPartDonePart.md +24 -0
  302. data/docs/RealtimeServerEventResponseCreated.md +22 -0
  303. data/docs/RealtimeServerEventResponseDone.md +22 -0
  304. data/docs/RealtimeServerEventResponseFunctionCallArgumentsDelta.md +30 -0
  305. data/docs/RealtimeServerEventResponseFunctionCallArgumentsDone.md +30 -0
  306. data/docs/RealtimeServerEventResponseOutputItemAdded.md +26 -0
  307. data/docs/RealtimeServerEventResponseOutputItemDone.md +26 -0
  308. data/docs/RealtimeServerEventResponseTextDelta.md +30 -0
  309. data/docs/RealtimeServerEventResponseTextDone.md +30 -0
  310. data/docs/RealtimeServerEventSessionCreated.md +22 -0
  311. data/docs/RealtimeServerEventSessionUpdated.md +22 -0
  312. data/docs/RealtimeSession.md +42 -0
  313. data/docs/RealtimeSessionCreateRequest.md +40 -0
  314. data/docs/RealtimeSessionCreateRequestTurnDetection.md +26 -0
  315. data/docs/RealtimeSessionCreateResponse.md +40 -0
  316. data/docs/RealtimeSessionCreateResponseClientSecret.md +20 -0
  317. data/docs/RealtimeSessionCreateResponseTurnDetection.md +24 -0
  318. data/docs/RealtimeSessionInputAudioTranscription.md +18 -0
  319. data/docs/RealtimeSessionModel.md +15 -0
  320. data/docs/RealtimeSessionTurnDetection.md +24 -0
  321. data/docs/ResponseFormatJsonObject.md +18 -0
  322. data/docs/ResponseFormatJsonSchema.md +20 -0
  323. data/docs/ResponseFormatJsonSchemaJsonSchema.md +24 -0
  324. data/docs/ResponseFormatText.md +18 -0
  325. data/docs/RunObject.md +6 -4
  326. data/docs/{RunStepDeltaStepDetailsToolCallsRetrievalObject.md → RunStepDeltaStepDetailsToolCallsFileSearchObject.md} +5 -5
  327. data/docs/RunStepDeltaStepDetailsToolCallsObject.md +1 -1
  328. data/docs/RunStepDeltaStepDetailsToolCallsObjectToolCallsInner.md +3 -3
  329. data/docs/RunStepDetailsToolCallsFileSearchObject.md +22 -0
  330. data/docs/RunStepDetailsToolCallsFileSearchObjectFileSearch.md +20 -0
  331. data/docs/RunStepDetailsToolCallsFileSearchRankingOptionsObject.md +20 -0
  332. data/docs/RunStepDetailsToolCallsFileSearchResultObject.md +24 -0
  333. data/docs/RunStepDetailsToolCallsFileSearchResultObjectContentInner.md +20 -0
  334. data/docs/RunStepDetailsToolCallsObject.md +1 -1
  335. data/docs/RunStepDetailsToolCallsObjectToolCallsInner.md +3 -3
  336. data/docs/RunStepObject.md +1 -1
  337. data/docs/RunStreamEvent.md +3 -1
  338. data/docs/{ThreadStreamEventOneOf.md → RunStreamEventOneOf9.md} +3 -3
  339. data/docs/StaticChunkingStrategy.md +20 -0
  340. data/docs/StaticChunkingStrategyRequestParam.md +20 -0
  341. data/docs/StaticChunkingStrategyResponseParam.md +20 -0
  342. data/docs/StaticChunkingStrategyStatic.md +20 -0
  343. data/docs/ThreadObject.md +3 -1
  344. data/docs/ThreadStreamEvent.md +12 -37
  345. data/docs/TruncationObject.md +1 -1
  346. data/docs/UpdateVectorStoreRequest.md +22 -0
  347. data/docs/Upload.md +34 -0
  348. data/docs/UploadPart.md +24 -0
  349. data/docs/UploadsApi.md +283 -0
  350. data/docs/UsageApi.md +787 -0
  351. data/docs/UsageAudioSpeechesResult.md +30 -0
  352. data/docs/UsageAudioTranscriptionsResult.md +30 -0
  353. data/docs/UsageCodeInterpreterSessionsResult.md +22 -0
  354. data/docs/UsageCompletionsResult.md +40 -0
  355. data/docs/UsageEmbeddingsResult.md +30 -0
  356. data/docs/UsageImagesResult.md +34 -0
  357. data/docs/UsageModerationsResult.md +30 -0
  358. data/docs/UsageResponse.md +24 -0
  359. data/docs/UsageTimeBucket.md +24 -0
  360. data/docs/UsageTimeBucketResultInner.md +63 -0
  361. data/docs/UsageVectorStoresResult.md +22 -0
  362. data/docs/User.md +28 -0
  363. data/docs/UserDeleteResponse.md +22 -0
  364. data/docs/UserListResponse.md +26 -0
  365. data/docs/UserRoleUpdateRequest.md +18 -0
  366. data/docs/UsersApi.md +285 -0
  367. data/docs/VectorStoreExpirationAfter.md +20 -0
  368. data/docs/VectorStoreFileBatchObject.md +28 -0
  369. data/docs/VectorStoreFileBatchObjectFileCounts.md +26 -0
  370. data/docs/VectorStoreFileObject.md +32 -0
  371. data/docs/VectorStoreFileObjectChunkingStrategy.md +49 -0
  372. data/docs/VectorStoreFileObjectLastError.md +20 -0
  373. data/docs/VectorStoreObject.md +38 -0
  374. data/docs/VectorStoreObjectFileCounts.md +26 -0
  375. data/docs/VectorStoresApi.md +939 -0
  376. data/lib/openapi_openai/api/assistants_api.rb +76 -427
  377. data/lib/openapi_openai/api/audio_api.rb +13 -17
  378. data/lib/openapi_openai/api/audit_logs_api.rb +104 -0
  379. data/lib/openapi_openai/api/batch_api.rb +271 -0
  380. data/lib/openapi_openai/api/chat_api.rb +5 -5
  381. data/lib/openapi_openai/api/completions_api.rb +3 -3
  382. data/lib/openapi_openai/api/default_api.rb +286 -0
  383. data/lib/openapi_openai/api/embeddings_api.rb +3 -3
  384. data/lib/openapi_openai/api/files_api.rb +27 -14
  385. data/lib/openapi_openai/api/fine_tuning_api.rb +8 -8
  386. data/lib/openapi_openai/api/images_api.rb +9 -9
  387. data/lib/openapi_openai/api/invites_api.rb +271 -0
  388. data/lib/openapi_openai/api/models_api.rb +5 -5
  389. data/lib/openapi_openai/api/moderations_api.rb +5 -5
  390. data/lib/openapi_openai/api/projects_api.rb +1319 -0
  391. data/lib/openapi_openai/api/realtime_api.rb +88 -0
  392. data/lib/openapi_openai/api/uploads_api.rb +294 -0
  393. data/lib/openapi_openai/api/usage_api.rb +885 -0
  394. data/lib/openapi_openai/api/users_api.rb +277 -0
  395. data/lib/openapi_openai/api/vector_stores_api.rb +939 -0
  396. data/lib/openapi_openai/api_client.rb +17 -14
  397. data/lib/openapi_openai/api_error.rb +2 -2
  398. data/lib/openapi_openai/api_model_base.rb +88 -0
  399. data/lib/openapi_openai/configuration.rb +12 -2
  400. data/lib/openapi_openai/models/admin_api_key.rb +201 -0
  401. data/lib/openapi_openai/models/admin_api_key_owner.rb +183 -0
  402. data/lib/openapi_openai/models/admin_api_keys_create_request.rb +164 -0
  403. data/lib/openapi_openai/models/admin_api_keys_delete200_response.rb +165 -0
  404. data/lib/openapi_openai/models/api_key_list.rb +185 -0
  405. data/lib/openapi_openai/models/array_of_content_parts_inner.rb +105 -0
  406. data/lib/openapi_openai/models/assistant_object.rb +129 -111
  407. data/lib/openapi_openai/models/assistant_object_tool_resources.rb +157 -0
  408. data/lib/openapi_openai/models/assistant_object_tool_resources_code_interpreter.rb +169 -0
  409. data/lib/openapi_openai/models/assistant_object_tool_resources_file_search.rb +169 -0
  410. data/lib/openapi_openai/models/assistant_object_tools_inner.rb +6 -7
  411. data/lib/openapi_openai/models/assistant_stream_event.rb +4 -5
  412. data/lib/openapi_openai/models/assistant_tools_code.rb +12 -79
  413. data/lib/openapi_openai/models/assistant_tools_file_search.rb +198 -0
  414. data/lib/openapi_openai/models/assistant_tools_file_search_file_search.rb +186 -0
  415. data/lib/openapi_openai/models/assistant_tools_file_search_type_only.rb +189 -0
  416. data/lib/openapi_openai/models/assistant_tools_function.rb +22 -79
  417. data/lib/openapi_openai/models/assistants_api_response_format_option.rb +8 -7
  418. data/lib/openapi_openai/models/assistants_api_tool_choice_option.rb +6 -7
  419. data/lib/openapi_openai/models/{assistants_api_named_tool_choice.rb → assistants_named_tool_choice.rb} +16 -83
  420. data/lib/openapi_openai/models/assistants_named_tool_choice_function.rb +165 -0
  421. data/lib/openapi_openai/models/audio_response_format.rb +43 -0
  422. data/lib/openapi_openai/models/audit_log.rb +456 -0
  423. data/lib/openapi_openai/models/audit_log_actor.rb +201 -0
  424. data/lib/openapi_openai/models/audit_log_actor_api_key.rb +211 -0
  425. data/lib/openapi_openai/models/audit_log_actor_service_account.rb +149 -0
  426. data/lib/openapi_openai/models/audit_log_actor_session.rb +158 -0
  427. data/lib/openapi_openai/models/audit_log_actor_user.rb +159 -0
  428. data/lib/openapi_openai/models/audit_log_api_key_created.rb +158 -0
  429. data/lib/openapi_openai/models/audit_log_api_key_created_data.rb +151 -0
  430. data/lib/openapi_openai/models/audit_log_api_key_deleted.rb +149 -0
  431. data/lib/openapi_openai/models/audit_log_api_key_updated.rb +158 -0
  432. data/lib/openapi_openai/models/audit_log_api_key_updated_changes_requested.rb +151 -0
  433. data/lib/openapi_openai/models/audit_log_event_type.rb +60 -0
  434. data/lib/openapi_openai/models/audit_log_invite_accepted.rb +149 -0
  435. data/lib/openapi_openai/models/audit_log_invite_sent.rb +158 -0
  436. data/lib/openapi_openai/models/audit_log_invite_sent_data.rb +159 -0
  437. data/lib/openapi_openai/models/audit_log_login_failed.rb +159 -0
  438. data/lib/openapi_openai/models/audit_log_organization_updated.rb +158 -0
  439. data/lib/openapi_openai/models/audit_log_organization_updated_changes_requested.rb +178 -0
  440. data/lib/openapi_openai/models/audit_log_organization_updated_changes_requested_settings.rb +158 -0
  441. data/lib/openapi_openai/models/audit_log_project.rb +159 -0
  442. data/lib/openapi_openai/models/audit_log_project_archived.rb +149 -0
  443. data/lib/openapi_openai/models/audit_log_project_created.rb +158 -0
  444. data/lib/openapi_openai/models/audit_log_project_created_data.rb +159 -0
  445. data/lib/openapi_openai/models/audit_log_project_updated.rb +158 -0
  446. data/lib/openapi_openai/models/audit_log_project_updated_changes_requested.rb +149 -0
  447. data/lib/openapi_openai/models/audit_log_rate_limit_deleted.rb +149 -0
  448. data/lib/openapi_openai/models/audit_log_rate_limit_updated.rb +158 -0
  449. data/lib/openapi_openai/models/audit_log_rate_limit_updated_changes_requested.rb +199 -0
  450. data/lib/openapi_openai/models/audit_log_service_account_created.rb +158 -0
  451. data/lib/openapi_openai/models/audit_log_service_account_created_data.rb +149 -0
  452. data/lib/openapi_openai/models/audit_log_service_account_deleted.rb +149 -0
  453. data/lib/openapi_openai/models/audit_log_service_account_updated.rb +158 -0
  454. data/lib/openapi_openai/models/audit_log_service_account_updated_changes_requested.rb +149 -0
  455. data/lib/openapi_openai/models/audit_log_user_added.rb +158 -0
  456. data/lib/openapi_openai/models/audit_log_user_added_data.rb +149 -0
  457. data/lib/openapi_openai/models/audit_log_user_deleted.rb +149 -0
  458. data/lib/openapi_openai/models/audit_log_user_updated.rb +158 -0
  459. data/lib/openapi_openai/models/audit_log_user_updated_changes_requested.rb +149 -0
  460. data/lib/openapi_openai/models/auto_chunking_strategy.rb +190 -0
  461. data/lib/openapi_openai/models/auto_chunking_strategy_request_param.rb +190 -0
  462. data/lib/openapi_openai/models/batch.rb +481 -0
  463. data/lib/openapi_openai/models/batch_errors.rb +159 -0
  464. data/lib/openapi_openai/models/batch_errors_data_inner.rb +180 -0
  465. data/lib/openapi_openai/models/batch_request_counts.rb +220 -0
  466. data/lib/openapi_openai/models/batch_request_input.rb +203 -0
  467. data/lib/openapi_openai/models/batch_request_output.rb +178 -0
  468. data/lib/openapi_openai/models/batch_request_output_error.rb +159 -0
  469. data/lib/openapi_openai/models/batch_request_output_response.rb +168 -0
  470. data/lib/openapi_openai/models/chat_completion_function_call_option.rb +22 -79
  471. data/lib/openapi_openai/models/chat_completion_functions.rb +23 -80
  472. data/lib/openapi_openai/models/chat_completion_message_tool_call.rb +32 -79
  473. data/lib/openapi_openai/models/chat_completion_message_tool_call_chunk.rb +22 -79
  474. data/lib/openapi_openai/models/chat_completion_message_tool_call_chunk_function.rb +12 -79
  475. data/lib/openapi_openai/models/chat_completion_message_tool_call_function.rb +32 -79
  476. data/lib/openapi_openai/models/chat_completion_named_tool_choice.rb +23 -80
  477. data/lib/openapi_openai/models/chat_completion_request_assistant_message.rb +37 -82
  478. data/lib/openapi_openai/models/chat_completion_request_assistant_message_audio.rb +166 -0
  479. data/lib/openapi_openai/models/chat_completion_request_assistant_message_content.rb +105 -0
  480. data/lib/openapi_openai/models/chat_completion_request_assistant_message_content_part.rb +104 -0
  481. data/lib/openapi_openai/models/chat_completion_request_assistant_message_function_call.rb +32 -79
  482. data/lib/openapi_openai/models/chat_completion_request_developer_message.rb +226 -0
  483. data/lib/openapi_openai/models/chat_completion_request_developer_message_content.rb +105 -0
  484. data/lib/openapi_openai/models/chat_completion_request_function_message.rb +22 -79
  485. data/lib/openapi_openai/models/chat_completion_request_message.rb +5 -5
  486. data/lib/openapi_openai/models/chat_completion_request_message_content_part_audio.rb +216 -0
  487. data/lib/openapi_openai/models/chat_completion_request_message_content_part_audio_input_audio.rb +216 -0
  488. data/lib/openapi_openai/models/chat_completion_request_message_content_part_image.rb +23 -79
  489. data/lib/openapi_openai/models/chat_completion_request_message_content_part_image_image_url.rb +23 -80
  490. data/lib/openapi_openai/models/chat_completion_request_message_content_part_refusal.rb +216 -0
  491. data/lib/openapi_openai/models/chat_completion_request_message_content_part_text.rb +23 -79
  492. data/lib/openapi_openai/models/chat_completion_request_system_message.rb +24 -81
  493. data/lib/openapi_openai/models/chat_completion_request_system_message_content.rb +105 -0
  494. data/lib/openapi_openai/models/chat_completion_request_tool_message.rb +33 -81
  495. data/lib/openapi_openai/models/chat_completion_request_tool_message_content.rb +105 -0
  496. data/lib/openapi_openai/models/chat_completion_request_user_message.rb +23 -79
  497. data/lib/openapi_openai/models/chat_completion_request_user_message_content.rb +5 -6
  498. data/lib/openapi_openai/models/{chat_completion_request_message_content_part.rb → chat_completion_request_user_message_content_part.rb} +6 -6
  499. data/lib/openapi_openai/models/chat_completion_response_message.rb +39 -83
  500. data/lib/openapi_openai/models/chat_completion_response_message_audio.rb +247 -0
  501. data/lib/openapi_openai/models/{chat_completion_named_tool_choice_function.rb → chat_completion_response_message_function_call.rb} +52 -81
  502. data/lib/openapi_openai/models/chat_completion_role.rb +2 -2
  503. data/lib/openapi_openai/models/chat_completion_stream_options.rb +149 -0
  504. data/lib/openapi_openai/models/chat_completion_stream_response_delta.rb +27 -83
  505. data/lib/openapi_openai/models/chat_completion_stream_response_delta_function_call.rb +12 -79
  506. data/lib/openapi_openai/models/chat_completion_token_logprob.rb +42 -79
  507. data/lib/openapi_openai/models/chat_completion_token_logprob_top_logprobs_inner.rb +32 -79
  508. data/lib/openapi_openai/models/chat_completion_tool.rb +22 -79
  509. data/lib/openapi_openai/models/chat_completion_tool_choice_option.rb +5 -6
  510. data/lib/openapi_openai/models/chunking_strategy_request_param.rb +105 -0
  511. data/lib/openapi_openai/models/complete_upload_request.rb +177 -0
  512. data/lib/openapi_openai/models/completion_usage.rb +64 -83
  513. data/lib/openapi_openai/models/completion_usage_completion_tokens_details.rb +179 -0
  514. data/lib/openapi_openai/models/completion_usage_prompt_tokens_details.rb +159 -0
  515. data/lib/openapi_openai/models/costs_result.rb +220 -0
  516. data/lib/openapi_openai/models/costs_result_amount.rb +159 -0
  517. data/lib/openapi_openai/models/create_assistant_request.rb +110 -105
  518. data/lib/openapi_openai/models/create_assistant_request_model.rb +5 -6
  519. data/lib/openapi_openai/models/create_assistant_request_tool_resources.rb +158 -0
  520. data/lib/openapi_openai/models/create_assistant_request_tool_resources_code_interpreter.rb +169 -0
  521. data/lib/openapi_openai/models/create_assistant_request_tool_resources_file_search.rb +200 -0
  522. data/lib/openapi_openai/models/create_assistant_request_tool_resources_file_search_vector_stores_inner.rb +188 -0
  523. data/lib/openapi_openai/models/create_assistant_request_tool_resources_file_search_vector_stores_inner_chunking_strategy.rb +105 -0
  524. data/lib/openapi_openai/models/create_batch_request.rb +258 -0
  525. data/lib/openapi_openai/models/create_chat_completion_function_response.rb +52 -79
  526. data/lib/openapi_openai/models/create_chat_completion_function_response_choices_inner.rb +32 -79
  527. data/lib/openapi_openai/models/create_chat_completion_request.rb +204 -98
  528. data/lib/openapi_openai/models/create_chat_completion_request_audio.rb +219 -0
  529. data/lib/openapi_openai/models/create_chat_completion_request_function_call.rb +5 -6
  530. data/lib/openapi_openai/models/create_chat_completion_request_model.rb +5 -6
  531. data/lib/openapi_openai/models/create_chat_completion_request_response_format.rb +77 -223
  532. data/lib/openapi_openai/models/create_chat_completion_request_stop.rb +4 -5
  533. data/lib/openapi_openai/models/create_chat_completion_response.rb +76 -80
  534. data/lib/openapi_openai/models/create_chat_completion_response_choices_inner.rb +32 -79
  535. data/lib/openapi_openai/models/create_chat_completion_response_choices_inner_logprobs.rb +32 -84
  536. data/lib/openapi_openai/models/create_chat_completion_stream_response.rb +90 -84
  537. data/lib/openapi_openai/models/create_chat_completion_stream_response_choices_inner.rb +32 -79
  538. data/lib/openapi_openai/models/create_chat_completion_stream_response_usage.rb +220 -0
  539. data/lib/openapi_openai/models/create_completion_request.rb +46 -93
  540. data/lib/openapi_openai/models/create_completion_request_model.rb +5 -6
  541. data/lib/openapi_openai/models/create_completion_request_prompt.rb +4 -5
  542. data/lib/openapi_openai/models/create_completion_request_stop.rb +4 -5
  543. data/lib/openapi_openai/models/create_completion_response.rb +52 -79
  544. data/lib/openapi_openai/models/create_completion_response_choices_inner.rb +32 -79
  545. data/lib/openapi_openai/models/create_completion_response_choices_inner_logprobs.rb +12 -79
  546. data/lib/openapi_openai/models/create_embedding_request.rb +33 -80
  547. data/lib/openapi_openai/models/create_embedding_request_input.rb +4 -5
  548. data/lib/openapi_openai/models/create_embedding_request_model.rb +5 -6
  549. data/lib/openapi_openai/models/create_embedding_response.rb +42 -79
  550. data/lib/openapi_openai/models/create_embedding_response_usage.rb +32 -79
  551. data/lib/openapi_openai/models/create_fine_tuning_job_request.rb +55 -93
  552. data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters.rb +13 -80
  553. data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters_batch_size.rb +4 -5
  554. data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters_learning_rate_multiplier.rb +4 -5
  555. data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters_n_epochs.rb +4 -5
  556. data/lib/openapi_openai/models/create_fine_tuning_job_request_integrations_inner.rb +57 -80
  557. data/lib/openapi_openai/models/create_fine_tuning_job_request_integrations_inner_wandb.rb +22 -79
  558. data/lib/openapi_openai/models/create_fine_tuning_job_request_model.rb +5 -6
  559. data/lib/openapi_openai/models/create_image_edit_request_model.rb +4 -5
  560. data/lib/openapi_openai/models/create_image_request.rb +23 -80
  561. data/lib/openapi_openai/models/create_image_request_model.rb +4 -5
  562. data/lib/openapi_openai/models/create_message_request.rb +24 -137
  563. data/lib/openapi_openai/models/create_message_request_attachments_inner.rb +160 -0
  564. data/lib/openapi_openai/models/create_message_request_attachments_inner_tools_inner.rb +104 -0
  565. data/lib/openapi_openai/models/create_message_request_content.rb +104 -0
  566. data/lib/openapi_openai/models/create_moderation_request.rb +22 -79
  567. data/lib/openapi_openai/models/create_moderation_request_input.rb +6 -6
  568. data/lib/openapi_openai/models/create_moderation_request_input_one_of_inner.rb +104 -0
  569. data/lib/openapi_openai/models/create_moderation_request_input_one_of_inner_one_of.rb +216 -0
  570. data/lib/openapi_openai/models/create_moderation_request_input_one_of_inner_one_of1.rb +217 -0
  571. data/lib/openapi_openai/models/create_moderation_request_input_one_of_inner_one_of_image_url.rb +166 -0
  572. data/lib/openapi_openai/models/create_moderation_request_model.rb +5 -6
  573. data/lib/openapi_openai/models/create_moderation_response.rb +42 -79
  574. data/lib/openapi_openai/models/create_moderation_response_results_inner.rb +72 -83
  575. data/lib/openapi_openai/models/create_moderation_response_results_inner_categories.rb +177 -80
  576. data/lib/openapi_openai/models/create_moderation_response_results_inner_category_applied_input_types.rb +408 -0
  577. data/lib/openapi_openai/models/create_moderation_response_results_inner_category_scores.rb +177 -80
  578. data/lib/openapi_openai/models/create_run_request.rb +75 -83
  579. data/lib/openapi_openai/models/create_run_request_model.rb +4 -5
  580. data/lib/openapi_openai/models/create_speech_request.rb +29 -86
  581. data/lib/openapi_openai/models/create_speech_request_model.rb +5 -6
  582. data/lib/openapi_openai/models/create_thread_and_run_request.rb +84 -82
  583. data/lib/openapi_openai/models/create_thread_and_run_request_tool_resources.rb +157 -0
  584. data/lib/openapi_openai/models/create_thread_and_run_request_tools_inner.rb +6 -7
  585. data/lib/openapi_openai/models/create_thread_request.rb +24 -81
  586. data/lib/openapi_openai/models/create_thread_request_tool_resources.rb +158 -0
  587. data/lib/openapi_openai/models/create_thread_request_tool_resources_file_search.rb +200 -0
  588. data/lib/openapi_openai/models/create_thread_request_tool_resources_file_search_vector_stores_inner.rb +188 -0
  589. data/lib/openapi_openai/models/create_transcription200_response.rb +4 -5
  590. data/lib/openapi_openai/models/create_transcription_request_model.rb +4 -5
  591. data/lib/openapi_openai/models/create_transcription_response_json.rb +22 -79
  592. data/lib/openapi_openai/models/create_transcription_response_verbose_json.rb +42 -79
  593. data/lib/openapi_openai/models/create_translation200_response.rb +4 -5
  594. data/lib/openapi_openai/models/create_translation_response_json.rb +22 -79
  595. data/lib/openapi_openai/models/create_translation_response_verbose_json.rb +42 -79
  596. data/lib/openapi_openai/models/create_upload_request.rb +270 -0
  597. data/lib/openapi_openai/models/create_vector_store_file_batch_request.rb +194 -0
  598. data/lib/openapi_openai/models/{create_assistant_file_request.rb → create_vector_store_file_request.rb} +37 -85
  599. data/lib/openapi_openai/models/create_vector_store_request.rb +208 -0
  600. data/lib/openapi_openai/models/create_vector_store_request_chunking_strategy.rb +105 -0
  601. data/lib/openapi_openai/models/default_project_error_response.rb +190 -0
  602. data/lib/openapi_openai/models/delete_assistant_response.rb +32 -79
  603. data/lib/openapi_openai/models/delete_file_response.rb +32 -79
  604. data/lib/openapi_openai/models/delete_message_response.rb +32 -79
  605. data/lib/openapi_openai/models/delete_model_response.rb +42 -79
  606. data/lib/openapi_openai/models/delete_thread_response.rb +32 -79
  607. data/lib/openapi_openai/models/{delete_assistant_file_response.rb → delete_vector_store_file_response.rb} +35 -83
  608. data/lib/openapi_openai/models/delete_vector_store_response.rb +240 -0
  609. data/lib/openapi_openai/models/done_event.rb +12 -79
  610. data/lib/openapi_openai/models/embedding.rb +32 -79
  611. data/lib/openapi_openai/models/error.rb +32 -79
  612. data/lib/openapi_openai/models/error_event.rb +23 -80
  613. data/lib/openapi_openai/models/error_response.rb +22 -79
  614. data/lib/openapi_openai/models/file_search_ranking_options.rb +228 -0
  615. data/lib/openapi_openai/models/fine_tune_chat_completion_request_assistant_message.rb +281 -0
  616. data/lib/openapi_openai/models/fine_tune_chat_request_input.rb +233 -0
  617. data/lib/openapi_openai/models/fine_tune_chat_request_input_messages_inner.rb +107 -0
  618. data/lib/openapi_openai/models/fine_tune_completion_request_input.rb +159 -0
  619. data/lib/openapi_openai/models/fine_tune_dpo_method.rb +148 -0
  620. data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters.rb +175 -0
  621. data/lib/openapi_openai/models/{fine_tuning_job_hyperparameters_n_epochs.rb → fine_tune_dpo_method_hyperparameters_batch_size.rb} +6 -7
  622. data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters_beta.rb +105 -0
  623. data/lib/openapi_openai/models/fine_tune_dpo_method_hyperparameters_learning_rate_multiplier.rb +105 -0
  624. data/lib/openapi_openai/models/{create_fine_tuning_job_request_integrations_inner_type.rb → fine_tune_dpo_method_hyperparameters_n_epochs.rb} +7 -7
  625. data/lib/openapi_openai/models/fine_tune_method.rb +201 -0
  626. data/lib/openapi_openai/models/fine_tune_preference_request_input.rb +210 -0
  627. data/lib/openapi_openai/models/fine_tune_preference_request_input_input.rb +192 -0
  628. data/lib/openapi_openai/models/fine_tune_preference_request_input_preferred_completion_inner.rb +103 -0
  629. data/lib/openapi_openai/models/fine_tune_supervised_method.rb +148 -0
  630. data/lib/openapi_openai/models/fine_tune_supervised_method_hyperparameters.rb +166 -0
  631. data/lib/openapi_openai/models/fine_tuning_integration.rb +22 -79
  632. data/lib/openapi_openai/models/fine_tuning_job.rb +116 -83
  633. data/lib/openapi_openai/models/fine_tuning_job_checkpoint.rb +72 -79
  634. data/lib/openapi_openai/models/fine_tuning_job_checkpoint_metrics.rb +12 -79
  635. data/lib/openapi_openai/models/fine_tuning_job_error.rb +32 -79
  636. data/lib/openapi_openai/models/fine_tuning_job_event.rb +101 -101
  637. data/lib/openapi_openai/models/fine_tuning_job_hyperparameters.rb +33 -89
  638. data/lib/openapi_openai/models/fine_tuning_job_integrations_inner.rb +4 -5
  639. data/lib/openapi_openai/models/function_object.rb +40 -84
  640. data/lib/openapi_openai/models/image.rb +12 -79
  641. data/lib/openapi_openai/models/images_response.rb +32 -79
  642. data/lib/openapi_openai/models/invite.rb +378 -0
  643. data/lib/openapi_openai/models/invite_delete_response.rb +241 -0
  644. data/lib/openapi_openai/models/invite_list_response.rb +247 -0
  645. data/lib/openapi_openai/models/invite_projects_inner.rb +192 -0
  646. data/lib/openapi_openai/models/invite_request.rb +228 -0
  647. data/lib/openapi_openai/models/invite_request_projects_inner.rb +216 -0
  648. data/lib/openapi_openai/models/list_assistants_response.rb +62 -79
  649. data/lib/openapi_openai/models/list_audit_logs_effective_at_parameter.rb +178 -0
  650. data/lib/openapi_openai/models/list_audit_logs_response.rb +294 -0
  651. data/lib/openapi_openai/models/list_batches_response.rb +260 -0
  652. data/lib/openapi_openai/models/list_files_response.rb +114 -117
  653. data/lib/openapi_openai/models/list_fine_tuning_job_checkpoints_response.rb +32 -79
  654. data/lib/openapi_openai/models/list_fine_tuning_job_events_response.rb +22 -79
  655. data/lib/openapi_openai/models/list_messages_response.rb +62 -79
  656. data/lib/openapi_openai/models/list_models_response.rb +22 -79
  657. data/lib/openapi_openai/models/list_paginated_fine_tuning_jobs_response.rb +32 -79
  658. data/lib/openapi_openai/models/list_run_steps_response.rb +62 -79
  659. data/lib/openapi_openai/models/list_runs_response.rb +62 -79
  660. data/lib/openapi_openai/models/list_threads_response.rb +62 -79
  661. data/lib/openapi_openai/models/list_vector_store_files_response.rb +270 -0
  662. data/lib/openapi_openai/models/list_vector_stores_response.rb +270 -0
  663. data/lib/openapi_openai/models/message_content_image_file_object.rb +22 -79
  664. data/lib/openapi_openai/models/message_content_image_file_object_image_file.rb +73 -84
  665. data/lib/openapi_openai/models/message_content_image_url_object.rb +216 -0
  666. data/lib/openapi_openai/models/message_content_image_url_object_image_url.rb +211 -0
  667. data/lib/openapi_openai/models/message_content_refusal_object.rb +216 -0
  668. data/lib/openapi_openai/models/message_content_text_annotations_file_citation_object.rb +33 -80
  669. data/lib/openapi_openai/models/message_content_text_annotations_file_citation_object_file_citation.rb +26 -100
  670. data/lib/openapi_openai/models/message_content_text_annotations_file_path_object.rb +32 -79
  671. data/lib/openapi_openai/models/message_content_text_annotations_file_path_object_file_path.rb +22 -79
  672. data/lib/openapi_openai/models/message_content_text_object.rb +22 -79
  673. data/lib/openapi_openai/models/message_content_text_object_text.rb +32 -79
  674. data/lib/openapi_openai/models/message_content_text_object_text_annotations_inner.rb +4 -5
  675. data/lib/openapi_openai/models/message_delta_content_image_file_object.rb +22 -79
  676. data/lib/openapi_openai/models/message_delta_content_image_file_object_image_file.rb +63 -84
  677. data/lib/openapi_openai/models/message_delta_content_image_url_object.rb +226 -0
  678. data/lib/openapi_openai/models/message_delta_content_image_url_object_image_url.rb +194 -0
  679. data/lib/openapi_openai/models/message_delta_content_refusal_object.rb +226 -0
  680. data/lib/openapi_openai/models/message_delta_content_text_annotations_file_citation_object.rb +23 -80
  681. data/lib/openapi_openai/models/message_delta_content_text_annotations_file_citation_object_file_citation.rb +12 -79
  682. data/lib/openapi_openai/models/message_delta_content_text_annotations_file_path_object.rb +22 -79
  683. data/lib/openapi_openai/models/message_delta_content_text_annotations_file_path_object_file_path.rb +12 -79
  684. data/lib/openapi_openai/models/message_delta_content_text_object.rb +22 -79
  685. data/lib/openapi_openai/models/message_delta_content_text_object_text.rb +12 -79
  686. data/lib/openapi_openai/models/message_delta_content_text_object_text_annotations_inner.rb +4 -5
  687. data/lib/openapi_openai/models/message_delta_object.rb +32 -79
  688. data/lib/openapi_openai/models/message_delta_object_delta.rb +16 -114
  689. data/lib/openapi_openai/models/message_delta_object_delta_content_inner.rb +6 -5
  690. data/lib/openapi_openai/models/message_object.rb +59 -109
  691. data/lib/openapi_openai/models/message_object_content_inner.rb +6 -5
  692. data/lib/openapi_openai/models/message_object_incomplete_details.rb +12 -79
  693. data/lib/openapi_openai/models/message_request_content_text_object.rb +217 -0
  694. data/lib/openapi_openai/models/message_stream_event.rb +4 -5
  695. data/lib/openapi_openai/models/message_stream_event_one_of.rb +22 -79
  696. data/lib/openapi_openai/models/message_stream_event_one_of1.rb +22 -79
  697. data/lib/openapi_openai/models/message_stream_event_one_of2.rb +22 -79
  698. data/lib/openapi_openai/models/message_stream_event_one_of3.rb +22 -79
  699. data/lib/openapi_openai/models/message_stream_event_one_of4.rb +22 -79
  700. data/lib/openapi_openai/models/model.rb +42 -79
  701. data/lib/openapi_openai/models/modify_assistant_request.rb +100 -105
  702. data/lib/openapi_openai/models/modify_assistant_request_tool_resources.rb +157 -0
  703. data/lib/openapi_openai/models/modify_assistant_request_tool_resources_code_interpreter.rb +169 -0
  704. data/lib/openapi_openai/models/modify_assistant_request_tool_resources_file_search.rb +169 -0
  705. data/lib/openapi_openai/models/modify_message_request.rb +13 -80
  706. data/lib/openapi_openai/models/modify_run_request.rb +13 -80
  707. data/lib/openapi_openai/models/modify_thread_request.rb +24 -81
  708. data/lib/openapi_openai/models/modify_thread_request_tool_resources.rb +157 -0
  709. data/lib/openapi_openai/models/modify_thread_request_tool_resources_file_search.rb +169 -0
  710. data/lib/openapi_openai/models/open_ai_file.rb +55 -82
  711. data/lib/openapi_openai/models/other_chunking_strategy_response_param.rb +190 -0
  712. data/lib/openapi_openai/models/prediction_content.rb +216 -0
  713. data/lib/openapi_openai/models/prediction_content_content.rb +105 -0
  714. data/lib/openapi_openai/models/{assistant_file_object.rb → project.rb} +101 -98
  715. data/lib/openapi_openai/models/project_api_key.rb +324 -0
  716. data/lib/openapi_openai/models/project_api_key_delete_response.rb +240 -0
  717. data/lib/openapi_openai/models/project_api_key_list_response.rb +294 -0
  718. data/lib/openapi_openai/models/project_api_key_owner.rb +200 -0
  719. data/lib/openapi_openai/models/project_create_request.rb +165 -0
  720. data/lib/openapi_openai/models/{list_assistant_files_response.rb → project_list_response.rb} +88 -81
  721. data/lib/openapi_openai/models/project_rate_limit.rb +338 -0
  722. data/lib/openapi_openai/models/project_rate_limit_list_response.rb +294 -0
  723. data/lib/openapi_openai/models/project_rate_limit_update_request.rb +198 -0
  724. data/lib/openapi_openai/models/project_service_account.rb +300 -0
  725. data/lib/openapi_openai/models/project_service_account_api_key.rb +293 -0
  726. data/lib/openapi_openai/models/project_service_account_create_request.rb +165 -0
  727. data/lib/openapi_openai/models/{message_file_object.rb → project_service_account_create_response.rb} +121 -108
  728. data/lib/openapi_openai/models/project_service_account_delete_response.rb +240 -0
  729. data/lib/openapi_openai/models/project_service_account_list_response.rb +294 -0
  730. data/lib/openapi_openai/models/project_update_request.rb +165 -0
  731. data/lib/openapi_openai/models/project_user.rb +327 -0
  732. data/lib/openapi_openai/models/project_user_create_request.rb +216 -0
  733. data/lib/openapi_openai/models/project_user_delete_response.rb +240 -0
  734. data/lib/openapi_openai/models/project_user_list_response.rb +270 -0
  735. data/lib/openapi_openai/models/project_user_update_request.rb +189 -0
  736. data/lib/openapi_openai/models/realtime_client_event_conversation_item_create.rb +236 -0
  737. data/lib/openapi_openai/models/realtime_client_event_conversation_item_delete.rb +227 -0
  738. data/lib/openapi_openai/models/realtime_client_event_conversation_item_truncate.rb +281 -0
  739. data/lib/openapi_openai/models/realtime_client_event_input_audio_buffer_append.rb +227 -0
  740. data/lib/openapi_openai/models/realtime_client_event_input_audio_buffer_clear.rb +200 -0
  741. data/lib/openapi_openai/models/realtime_client_event_input_audio_buffer_commit.rb +200 -0
  742. data/lib/openapi_openai/models/realtime_client_event_response_cancel.rb +210 -0
  743. data/lib/openapi_openai/models/realtime_client_event_response_create.rb +209 -0
  744. data/lib/openapi_openai/models/realtime_client_event_session_update.rb +226 -0
  745. data/lib/openapi_openai/models/realtime_conversation_item.rb +311 -0
  746. data/lib/openapi_openai/models/realtime_conversation_item_content_inner.rb +222 -0
  747. data/lib/openapi_openai/models/realtime_response.rb +256 -0
  748. data/lib/openapi_openai/models/realtime_response_create_params.rb +300 -0
  749. data/lib/openapi_openai/models/realtime_response_create_params_conversation.rb +104 -0
  750. data/lib/openapi_openai/models/realtime_response_create_params_max_response_output_tokens.rb +105 -0
  751. data/lib/openapi_openai/models/realtime_response_create_params_tools_inner.rb +212 -0
  752. data/lib/openapi_openai/models/realtime_response_status_details.rb +214 -0
  753. data/lib/openapi_openai/models/realtime_response_status_details_error.rb +159 -0
  754. data/lib/openapi_openai/models/realtime_response_usage.rb +187 -0
  755. data/lib/openapi_openai/models/realtime_response_usage_input_token_details.rb +169 -0
  756. data/lib/openapi_openai/models/realtime_response_usage_output_token_details.rb +159 -0
  757. data/lib/openapi_openai/models/realtime_server_event_conversation_created.rb +243 -0
  758. data/lib/openapi_openai/models/realtime_server_event_conversation_created_conversation.rb +159 -0
  759. data/lib/openapi_openai/models/realtime_server_event_conversation_item_created.rb +270 -0
  760. data/lib/openapi_openai/models/realtime_server_event_conversation_item_deleted.rb +244 -0
  761. data/lib/openapi_openai/models/realtime_server_event_conversation_item_input_audio_transcription_completed.rb +298 -0
  762. data/lib/openapi_openai/models/realtime_server_event_conversation_item_input_audio_transcription_failed.rb +297 -0
  763. data/lib/openapi_openai/models/realtime_server_event_conversation_item_input_audio_transcription_failed_error.rb +179 -0
  764. data/lib/openapi_openai/models/realtime_server_event_conversation_item_truncated.rb +298 -0
  765. data/lib/openapi_openai/models/realtime_server_event_error.rb +243 -0
  766. data/lib/openapi_openai/models/realtime_server_event_error_error.rb +226 -0
  767. data/lib/openapi_openai/models/{assistant_tools_retrieval.rb → realtime_server_event_input_audio_buffer_cleared.rb} +45 -84
  768. data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_committed.rb +271 -0
  769. data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_speech_started.rb +271 -0
  770. data/lib/openapi_openai/models/realtime_server_event_input_audio_buffer_speech_stopped.rb +271 -0
  771. data/lib/openapi_openai/models/realtime_server_event_rate_limits_updated.rb +246 -0
  772. data/lib/openapi_openai/models/realtime_server_event_rate_limits_updated_rate_limits_inner.rb +212 -0
  773. data/lib/openapi_openai/models/realtime_server_event_response_audio_delta.rb +352 -0
  774. data/lib/openapi_openai/models/realtime_server_event_response_audio_done.rb +325 -0
  775. data/lib/openapi_openai/models/realtime_server_event_response_audio_transcript_delta.rb +352 -0
  776. data/lib/openapi_openai/models/realtime_server_event_response_audio_transcript_done.rb +352 -0
  777. data/lib/openapi_openai/models/realtime_server_event_response_content_part_added.rb +351 -0
  778. data/lib/openapi_openai/models/realtime_server_event_response_content_part_added_part.rb +213 -0
  779. data/lib/openapi_openai/models/realtime_server_event_response_content_part_done.rb +351 -0
  780. data/lib/openapi_openai/models/realtime_server_event_response_content_part_done_part.rb +213 -0
  781. data/lib/openapi_openai/models/realtime_server_event_response_created.rb +243 -0
  782. data/lib/openapi_openai/models/realtime_server_event_response_done.rb +243 -0
  783. data/lib/openapi_openai/models/realtime_server_event_response_function_call_arguments_delta.rb +352 -0
  784. data/lib/openapi_openai/models/realtime_server_event_response_function_call_arguments_done.rb +352 -0
  785. data/lib/openapi_openai/models/realtime_server_event_response_output_item_added.rb +297 -0
  786. data/lib/openapi_openai/models/realtime_server_event_response_output_item_done.rb +297 -0
  787. data/lib/openapi_openai/models/realtime_server_event_response_text_delta.rb +352 -0
  788. data/lib/openapi_openai/models/realtime_server_event_response_text_done.rb +352 -0
  789. data/lib/openapi_openai/models/realtime_server_event_session_created.rb +243 -0
  790. data/lib/openapi_openai/models/realtime_server_event_session_updated.rb +243 -0
  791. data/lib/openapi_openai/models/realtime_session.rb +328 -0
  792. data/lib/openapi_openai/models/realtime_session_create_request.rb +337 -0
  793. data/lib/openapi_openai/models/realtime_session_create_request_turn_detection.rb +191 -0
  794. data/lib/openapi_openai/models/realtime_session_create_response.rb +293 -0
  795. data/lib/openapi_openai/models/realtime_session_create_response_client_secret.rb +159 -0
  796. data/lib/openapi_openai/models/realtime_session_create_response_turn_detection.rb +179 -0
  797. data/lib/openapi_openai/models/realtime_session_input_audio_transcription.rb +149 -0
  798. data/lib/openapi_openai/models/realtime_session_model.rb +103 -0
  799. data/lib/openapi_openai/models/realtime_session_turn_detection.rb +213 -0
  800. data/lib/openapi_openai/models/response_format_json_object.rb +189 -0
  801. data/lib/openapi_openai/models/response_format_json_schema.rb +215 -0
  802. data/lib/openapi_openai/models/response_format_json_schema_json_schema.rb +200 -0
  803. data/lib/openapi_openai/models/{assistants_api_response_format.rb → response_format_text.rb} +22 -85
  804. data/lib/openapi_openai/models/run_completion_usage.rb +42 -79
  805. data/lib/openapi_openai/models/run_object.rb +145 -103
  806. data/lib/openapi_openai/models/run_object_incomplete_details.rb +12 -79
  807. data/lib/openapi_openai/models/run_object_last_error.rb +22 -79
  808. data/lib/openapi_openai/models/run_object_required_action.rb +22 -79
  809. data/lib/openapi_openai/models/run_object_required_action_submit_tool_outputs.rb +22 -79
  810. data/lib/openapi_openai/models/run_step_completion_usage.rb +42 -79
  811. data/lib/openapi_openai/models/run_step_delta_object.rb +32 -79
  812. data/lib/openapi_openai/models/run_step_delta_object_delta.rb +12 -79
  813. data/lib/openapi_openai/models/run_step_delta_object_delta_step_details.rb +4 -5
  814. data/lib/openapi_openai/models/run_step_delta_step_details_message_creation_object.rb +12 -79
  815. data/lib/openapi_openai/models/run_step_delta_step_details_message_creation_object_message_creation.rb +12 -79
  816. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object.rb +22 -79
  817. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter.rb +12 -79
  818. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_outputs_inner.rb +4 -5
  819. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_image_object.rb +22 -79
  820. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_image_object_image.rb +12 -79
  821. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_logs_object.rb +22 -79
  822. data/lib/openapi_openai/models/{run_step_delta_step_details_tool_calls_retrieval_object.rb → run_step_delta_step_details_tool_calls_file_search_object.rb} +50 -90
  823. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_function_object.rb +22 -79
  824. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_function_object_function.rb +12 -79
  825. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_object.rb +13 -80
  826. data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_object_tool_calls_inner.rb +6 -7
  827. data/lib/openapi_openai/models/run_step_details_message_creation_object.rb +22 -79
  828. data/lib/openapi_openai/models/run_step_details_message_creation_object_message_creation.rb +22 -79
  829. data/lib/openapi_openai/models/run_step_details_tool_calls_code_object.rb +32 -79
  830. data/lib/openapi_openai/models/run_step_details_tool_calls_code_object_code_interpreter.rb +32 -79
  831. data/lib/openapi_openai/models/run_step_details_tool_calls_code_object_code_interpreter_outputs_inner.rb +4 -5
  832. data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_image_object.rb +22 -79
  833. data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_image_object_image.rb +22 -79
  834. data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_logs_object.rb +22 -79
  835. data/lib/openapi_openai/models/{run_step_details_tool_calls_retrieval_object.rb → run_step_details_tool_calls_file_search_object.rb} +47 -95
  836. data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_object_file_search.rb +160 -0
  837. data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_ranking_options_object.rb +235 -0
  838. data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_result_object.rb +250 -0
  839. data/lib/openapi_openai/models/run_step_details_tool_calls_file_search_result_object_content_inner.rb +192 -0
  840. data/lib/openapi_openai/models/run_step_details_tool_calls_function_object.rb +32 -79
  841. data/lib/openapi_openai/models/run_step_details_tool_calls_function_object_function.rb +32 -79
  842. data/lib/openapi_openai/models/run_step_details_tool_calls_object.rb +23 -80
  843. data/lib/openapi_openai/models/run_step_details_tool_calls_object_tool_calls_inner.rb +6 -7
  844. data/lib/openapi_openai/models/run_step_object.rb +73 -80
  845. data/lib/openapi_openai/models/run_step_object_last_error.rb +22 -79
  846. data/lib/openapi_openai/models/run_step_object_step_details.rb +4 -5
  847. data/lib/openapi_openai/models/run_step_stream_event.rb +4 -5
  848. data/lib/openapi_openai/models/run_step_stream_event_one_of.rb +23 -80
  849. data/lib/openapi_openai/models/run_step_stream_event_one_of1.rb +23 -80
  850. data/lib/openapi_openai/models/run_step_stream_event_one_of2.rb +23 -80
  851. data/lib/openapi_openai/models/run_step_stream_event_one_of3.rb +23 -80
  852. data/lib/openapi_openai/models/run_step_stream_event_one_of4.rb +23 -80
  853. data/lib/openapi_openai/models/run_step_stream_event_one_of5.rb +23 -80
  854. data/lib/openapi_openai/models/run_step_stream_event_one_of6.rb +23 -80
  855. data/lib/openapi_openai/models/run_stream_event.rb +6 -6
  856. data/lib/openapi_openai/models/run_stream_event_one_of.rb +22 -79
  857. data/lib/openapi_openai/models/run_stream_event_one_of1.rb +22 -79
  858. data/lib/openapi_openai/models/run_stream_event_one_of2.rb +22 -79
  859. data/lib/openapi_openai/models/run_stream_event_one_of3.rb +22 -79
  860. data/lib/openapi_openai/models/run_stream_event_one_of4.rb +22 -79
  861. data/lib/openapi_openai/models/run_stream_event_one_of5.rb +25 -82
  862. data/lib/openapi_openai/models/run_stream_event_one_of6.rb +25 -82
  863. data/lib/openapi_openai/models/run_stream_event_one_of7.rb +25 -82
  864. data/lib/openapi_openai/models/run_stream_event_one_of8.rb +25 -82
  865. data/lib/openapi_openai/models/{thread_stream_event_one_of.rb → run_stream_event_one_of9.rb} +27 -84
  866. data/lib/openapi_openai/models/run_tool_call_object.rb +32 -79
  867. data/lib/openapi_openai/models/run_tool_call_object_function.rb +32 -79
  868. data/lib/openapi_openai/models/static_chunking_strategy.rb +215 -0
  869. data/lib/openapi_openai/models/static_chunking_strategy_request_param.rb +215 -0
  870. data/lib/openapi_openai/models/static_chunking_strategy_response_param.rb +215 -0
  871. data/lib/openapi_openai/models/static_chunking_strategy_static.rb +210 -0
  872. data/lib/openapi_openai/models/submit_tool_outputs_run_request.rb +22 -79
  873. data/lib/openapi_openai/models/submit_tool_outputs_run_request_tool_outputs_inner.rb +12 -79
  874. data/lib/openapi_openai/models/thread_object.rb +46 -81
  875. data/lib/openapi_openai/models/thread_stream_event.rb +197 -76
  876. data/lib/openapi_openai/models/transcription_segment.rb +112 -79
  877. data/lib/openapi_openai/models/transcription_word.rb +42 -79
  878. data/lib/openapi_openai/models/truncation_object.rb +20 -79
  879. data/lib/openapi_openai/models/update_vector_store_request.rb +169 -0
  880. data/lib/openapi_openai/models/upload.rb +383 -0
  881. data/lib/openapi_openai/models/upload_part.rb +271 -0
  882. data/lib/openapi_openai/models/usage_audio_speeches_result.rb +287 -0
  883. data/lib/openapi_openai/models/usage_audio_transcriptions_result.rb +287 -0
  884. data/lib/openapi_openai/models/usage_code_interpreter_sessions_result.rb +227 -0
  885. data/lib/openapi_openai/models/usage_completions_result.rb +355 -0
  886. data/lib/openapi_openai/models/usage_embeddings_result.rb +287 -0
  887. data/lib/openapi_openai/models/usage_images_result.rb +309 -0
  888. data/lib/openapi_openai/models/usage_moderations_result.rb +287 -0
  889. data/lib/openapi_openai/models/usage_response.rb +268 -0
  890. data/lib/openapi_openai/models/usage_time_bucket.rb +268 -0
  891. data/lib/openapi_openai/models/usage_time_bucket_result_inner.rb +111 -0
  892. data/lib/openapi_openai/models/usage_vector_stores_result.rb +227 -0
  893. data/lib/openapi_openai/models/user.rb +327 -0
  894. data/lib/openapi_openai/models/user_delete_response.rb +240 -0
  895. data/lib/openapi_openai/models/{list_message_files_response.rb → user_list_response.rb} +88 -81
  896. data/lib/openapi_openai/models/user_role_update_request.rb +189 -0
  897. data/lib/openapi_openai/models/vector_store_expiration_after.rb +235 -0
  898. data/lib/openapi_openai/models/vector_store_file_batch_object.rb +326 -0
  899. data/lib/openapi_openai/models/vector_store_file_batch_object_file_counts.rb +273 -0
  900. data/lib/openapi_openai/models/vector_store_file_object.rb +348 -0
  901. data/lib/openapi_openai/models/vector_store_file_object_chunking_strategy.rb +105 -0
  902. data/lib/openapi_openai/models/vector_store_file_object_last_error.rb +217 -0
  903. data/lib/openapi_openai/models/vector_store_object.rb +399 -0
  904. data/lib/openapi_openai/models/vector_store_object_file_counts.rb +273 -0
  905. data/lib/openapi_openai/version.rb +3 -3
  906. data/lib/openapi_openai.rb +294 -18
  907. data/openapi_openai.gemspec +2 -2
  908. data/spec/api/assistants_api_spec.rb +15 -80
  909. data/spec/api/audio_api_spec.rb +6 -6
  910. data/spec/api/audit_logs_api_spec.rb +54 -0
  911. data/spec/api/batch_api_spec.rb +80 -0
  912. data/spec/api/chat_api_spec.rb +3 -3
  913. data/spec/api/completions_api_spec.rb +2 -2
  914. data/spec/api/default_api_spec.rb +85 -0
  915. data/spec/api/embeddings_api_spec.rb +2 -2
  916. data/spec/api/files_api_spec.rb +8 -5
  917. data/spec/api/fine_tuning_api_spec.rb +2 -2
  918. data/spec/api/images_api_spec.rb +4 -4
  919. data/spec/api/invites_api_spec.rb +80 -0
  920. data/spec/api/models_api_spec.rb +2 -2
  921. data/spec/api/moderations_api_spec.rb +3 -3
  922. data/spec/api/projects_api_spec.rb +268 -0
  923. data/spec/api/realtime_api_spec.rb +46 -0
  924. data/spec/api/uploads_api_spec.rb +81 -0
  925. data/spec/api/usage_api_spec.rb +209 -0
  926. data/spec/api/users_api_spec.rb +81 -0
  927. data/spec/api/vector_stores_api_spec.rb +199 -0
  928. data/spec/models/admin_api_key_owner_spec.rb +60 -0
  929. data/spec/models/admin_api_key_spec.rb +72 -0
  930. data/spec/models/admin_api_keys_create_request_spec.rb +36 -0
  931. data/spec/models/admin_api_keys_delete200_response_spec.rb +48 -0
  932. data/spec/models/api_key_list_spec.rb +60 -0
  933. data/spec/models/{fine_tuning_job_hyperparameters_n_epochs_spec.rb → array_of_content_parts_inner_spec.rb} +4 -4
  934. data/spec/models/assistant_object_spec.rb +22 -4
  935. data/spec/models/assistant_object_tool_resources_code_interpreter_spec.rb +36 -0
  936. data/spec/models/assistant_object_tool_resources_file_search_spec.rb +36 -0
  937. data/spec/models/assistant_object_tool_resources_spec.rb +42 -0
  938. data/spec/models/assistant_object_tools_inner_spec.rb +2 -2
  939. data/spec/models/assistant_stream_event_spec.rb +2 -2
  940. data/spec/models/assistant_tools_code_spec.rb +3 -3
  941. data/spec/models/assistant_tools_file_search_file_search_spec.rb +42 -0
  942. data/spec/models/assistant_tools_file_search_spec.rb +46 -0
  943. data/spec/models/assistant_tools_file_search_type_only_spec.rb +40 -0
  944. data/spec/models/assistant_tools_function_spec.rb +3 -3
  945. data/spec/models/assistants_api_response_format_option_spec.rb +2 -2
  946. data/spec/models/assistants_api_tool_choice_option_spec.rb +2 -2
  947. data/spec/models/assistants_named_tool_choice_function_spec.rb +36 -0
  948. data/spec/models/{assistants_api_named_tool_choice_spec.rb → assistants_named_tool_choice_spec.rb} +9 -9
  949. data/spec/models/audio_response_format_spec.rb +30 -0
  950. data/spec/models/audit_log_actor_api_key_spec.rb +58 -0
  951. data/spec/models/audit_log_actor_service_account_spec.rb +36 -0
  952. data/spec/models/audit_log_actor_session_spec.rb +42 -0
  953. data/spec/models/audit_log_actor_spec.rb +52 -0
  954. data/spec/models/audit_log_actor_user_spec.rb +42 -0
  955. data/spec/models/audit_log_api_key_created_data_spec.rb +36 -0
  956. data/spec/models/audit_log_api_key_created_spec.rb +42 -0
  957. data/spec/models/audit_log_api_key_deleted_spec.rb +36 -0
  958. data/spec/models/audit_log_api_key_updated_changes_requested_spec.rb +36 -0
  959. data/spec/models/audit_log_api_key_updated_spec.rb +42 -0
  960. data/spec/models/audit_log_event_type_spec.rb +30 -0
  961. data/spec/models/audit_log_invite_accepted_spec.rb +36 -0
  962. data/spec/models/audit_log_invite_sent_data_spec.rb +42 -0
  963. data/spec/models/audit_log_invite_sent_spec.rb +42 -0
  964. data/spec/models/audit_log_login_failed_spec.rb +42 -0
  965. data/spec/models/audit_log_organization_updated_changes_requested_settings_spec.rb +42 -0
  966. data/spec/models/audit_log_organization_updated_changes_requested_spec.rb +54 -0
  967. data/spec/models/audit_log_organization_updated_spec.rb +42 -0
  968. data/spec/models/audit_log_project_archived_spec.rb +36 -0
  969. data/spec/models/audit_log_project_created_data_spec.rb +42 -0
  970. data/spec/models/audit_log_project_created_spec.rb +42 -0
  971. data/spec/models/audit_log_project_spec.rb +42 -0
  972. data/spec/models/audit_log_project_updated_changes_requested_spec.rb +36 -0
  973. data/spec/models/audit_log_project_updated_spec.rb +42 -0
  974. data/spec/models/audit_log_rate_limit_deleted_spec.rb +36 -0
  975. data/spec/models/audit_log_rate_limit_updated_changes_requested_spec.rb +66 -0
  976. data/spec/models/audit_log_rate_limit_updated_spec.rb +42 -0
  977. data/spec/models/audit_log_service_account_created_data_spec.rb +36 -0
  978. data/spec/models/audit_log_service_account_created_spec.rb +42 -0
  979. data/spec/models/audit_log_service_account_deleted_spec.rb +36 -0
  980. data/spec/models/audit_log_service_account_updated_changes_requested_spec.rb +36 -0
  981. data/spec/models/audit_log_service_account_updated_spec.rb +42 -0
  982. data/spec/models/audit_log_spec.rb +180 -0
  983. data/spec/models/audit_log_user_added_data_spec.rb +36 -0
  984. data/spec/models/audit_log_user_added_spec.rb +42 -0
  985. data/spec/models/audit_log_user_deleted_spec.rb +36 -0
  986. data/spec/models/audit_log_user_updated_changes_requested_spec.rb +36 -0
  987. data/spec/models/audit_log_user_updated_spec.rb +42 -0
  988. data/spec/models/{assistants_api_response_format_spec.rb → auto_chunking_strategy_request_param_spec.rb} +9 -9
  989. data/spec/models/{assistant_tools_retrieval_spec.rb → auto_chunking_strategy_spec.rb} +9 -9
  990. data/spec/models/batch_errors_data_inner_spec.rb +54 -0
  991. data/spec/models/batch_errors_spec.rb +42 -0
  992. data/spec/models/batch_request_counts_spec.rb +48 -0
  993. data/spec/models/batch_request_input_spec.rb +52 -0
  994. data/spec/models/batch_request_output_error_spec.rb +42 -0
  995. data/spec/models/batch_request_output_response_spec.rb +48 -0
  996. data/spec/models/batch_request_output_spec.rb +54 -0
  997. data/spec/models/batch_spec.rb +158 -0
  998. data/spec/models/chat_completion_function_call_option_spec.rb +3 -3
  999. data/spec/models/chat_completion_functions_spec.rb +3 -3
  1000. data/spec/models/chat_completion_message_tool_call_chunk_function_spec.rb +3 -3
  1001. data/spec/models/chat_completion_message_tool_call_chunk_spec.rb +3 -3
  1002. data/spec/models/chat_completion_message_tool_call_function_spec.rb +3 -3
  1003. data/spec/models/chat_completion_message_tool_call_spec.rb +3 -3
  1004. data/spec/models/chat_completion_named_tool_choice_spec.rb +3 -3
  1005. data/spec/models/{chat_completion_named_tool_choice_function_spec.rb → chat_completion_request_assistant_message_audio_spec.rb} +9 -9
  1006. data/spec/models/chat_completion_request_assistant_message_content_part_spec.rb +32 -0
  1007. data/spec/models/{create_fine_tuning_job_request_integrations_inner_type_spec.rb → chat_completion_request_assistant_message_content_spec.rb} +4 -4
  1008. data/spec/models/chat_completion_request_assistant_message_function_call_spec.rb +3 -3
  1009. data/spec/models/chat_completion_request_assistant_message_spec.rb +15 -3
  1010. data/spec/models/chat_completion_request_developer_message_content_spec.rb +32 -0
  1011. data/spec/models/chat_completion_request_developer_message_spec.rb +52 -0
  1012. data/spec/models/chat_completion_request_function_message_spec.rb +3 -3
  1013. data/spec/models/chat_completion_request_message_content_part_audio_input_audio_spec.rb +46 -0
  1014. data/spec/models/chat_completion_request_message_content_part_audio_spec.rb +46 -0
  1015. data/spec/models/chat_completion_request_message_content_part_image_image_url_spec.rb +3 -3
  1016. data/spec/models/chat_completion_request_message_content_part_image_spec.rb +3 -3
  1017. data/spec/models/chat_completion_request_message_content_part_refusal_spec.rb +46 -0
  1018. data/spec/models/chat_completion_request_message_content_part_text_spec.rb +3 -3
  1019. data/spec/models/chat_completion_request_message_spec.rb +2 -2
  1020. data/spec/models/chat_completion_request_system_message_content_spec.rb +32 -0
  1021. data/spec/models/chat_completion_request_system_message_spec.rb +3 -3
  1022. data/spec/models/chat_completion_request_tool_message_content_spec.rb +32 -0
  1023. data/spec/models/chat_completion_request_tool_message_spec.rb +3 -3
  1024. data/spec/models/chat_completion_request_user_message_content_part_spec.rb +32 -0
  1025. data/spec/models/chat_completion_request_user_message_content_spec.rb +2 -2
  1026. data/spec/models/chat_completion_request_user_message_spec.rb +3 -3
  1027. data/spec/models/chat_completion_response_message_audio_spec.rb +54 -0
  1028. data/spec/models/chat_completion_response_message_function_call_spec.rb +42 -0
  1029. data/spec/models/chat_completion_response_message_spec.rb +15 -3
  1030. data/spec/models/chat_completion_role_spec.rb +3 -3
  1031. data/spec/models/{create_assistant_file_request_spec.rb → chat_completion_stream_options_spec.rb} +9 -9
  1032. data/spec/models/chat_completion_stream_response_delta_function_call_spec.rb +3 -3
  1033. data/spec/models/chat_completion_stream_response_delta_spec.rb +9 -3
  1034. data/spec/models/chat_completion_token_logprob_spec.rb +3 -3
  1035. data/spec/models/chat_completion_token_logprob_top_logprobs_inner_spec.rb +3 -3
  1036. data/spec/models/chat_completion_tool_choice_option_spec.rb +2 -2
  1037. data/spec/models/chat_completion_tool_spec.rb +3 -3
  1038. data/spec/models/{chat_completion_request_message_content_part_spec.rb → chunking_strategy_request_param_spec.rb} +4 -4
  1039. data/spec/models/complete_upload_request_spec.rb +42 -0
  1040. data/spec/models/completion_usage_completion_tokens_details_spec.rb +54 -0
  1041. data/spec/models/completion_usage_prompt_tokens_details_spec.rb +42 -0
  1042. data/spec/models/completion_usage_spec.rb +15 -3
  1043. data/spec/models/costs_result_amount_spec.rb +42 -0
  1044. data/spec/models/{assistant_file_object_spec.rb → costs_result_spec.rb} +16 -16
  1045. data/spec/models/create_assistant_request_model_spec.rb +2 -2
  1046. data/spec/models/create_assistant_request_spec.rb +22 -4
  1047. data/spec/models/create_assistant_request_tool_resources_code_interpreter_spec.rb +36 -0
  1048. data/spec/models/create_assistant_request_tool_resources_file_search_spec.rb +42 -0
  1049. data/spec/models/create_assistant_request_tool_resources_file_search_vector_stores_inner_chunking_strategy_spec.rb +32 -0
  1050. data/spec/models/create_assistant_request_tool_resources_file_search_vector_stores_inner_spec.rb +48 -0
  1051. data/spec/models/create_assistant_request_tool_resources_spec.rb +42 -0
  1052. data/spec/models/create_batch_request_spec.rb +62 -0
  1053. data/spec/models/create_chat_completion_function_response_choices_inner_spec.rb +3 -3
  1054. data/spec/models/create_chat_completion_function_response_spec.rb +3 -3
  1055. data/spec/models/create_chat_completion_request_audio_spec.rb +50 -0
  1056. data/spec/models/create_chat_completion_request_function_call_spec.rb +2 -2
  1057. data/spec/models/create_chat_completion_request_model_spec.rb +2 -2
  1058. data/spec/models/create_chat_completion_request_response_format_spec.rb +7 -15
  1059. data/spec/models/create_chat_completion_request_spec.rb +75 -3
  1060. data/spec/models/create_chat_completion_request_stop_spec.rb +2 -2
  1061. data/spec/models/create_chat_completion_response_choices_inner_logprobs_spec.rb +9 -3
  1062. data/spec/models/create_chat_completion_response_choices_inner_spec.rb +3 -3
  1063. data/spec/models/create_chat_completion_response_spec.rb +13 -3
  1064. data/spec/models/create_chat_completion_stream_response_choices_inner_spec.rb +3 -3
  1065. data/spec/models/create_chat_completion_stream_response_spec.rb +19 -3
  1066. data/spec/models/create_chat_completion_stream_response_usage_spec.rb +48 -0
  1067. data/spec/models/create_completion_request_model_spec.rb +2 -2
  1068. data/spec/models/create_completion_request_prompt_spec.rb +2 -2
  1069. data/spec/models/create_completion_request_spec.rb +9 -3
  1070. data/spec/models/create_completion_request_stop_spec.rb +2 -2
  1071. data/spec/models/create_completion_response_choices_inner_logprobs_spec.rb +3 -3
  1072. data/spec/models/create_completion_response_choices_inner_spec.rb +3 -3
  1073. data/spec/models/create_completion_response_spec.rb +3 -3
  1074. data/spec/models/create_embedding_request_input_spec.rb +2 -2
  1075. data/spec/models/create_embedding_request_model_spec.rb +2 -2
  1076. data/spec/models/create_embedding_request_spec.rb +3 -3
  1077. data/spec/models/create_embedding_response_spec.rb +3 -3
  1078. data/spec/models/create_embedding_response_usage_spec.rb +3 -3
  1079. data/spec/models/create_fine_tuning_job_request_hyperparameters_batch_size_spec.rb +2 -2
  1080. data/spec/models/create_fine_tuning_job_request_hyperparameters_learning_rate_multiplier_spec.rb +2 -2
  1081. data/spec/models/create_fine_tuning_job_request_hyperparameters_n_epochs_spec.rb +2 -2
  1082. data/spec/models/create_fine_tuning_job_request_hyperparameters_spec.rb +3 -3
  1083. data/spec/models/create_fine_tuning_job_request_integrations_inner_spec.rb +7 -3
  1084. data/spec/models/create_fine_tuning_job_request_integrations_inner_wandb_spec.rb +3 -3
  1085. data/spec/models/create_fine_tuning_job_request_model_spec.rb +2 -2
  1086. data/spec/models/create_fine_tuning_job_request_spec.rb +9 -3
  1087. data/spec/models/create_image_edit_request_model_spec.rb +2 -2
  1088. data/spec/models/create_image_request_model_spec.rb +2 -2
  1089. data/spec/models/create_image_request_spec.rb +3 -3
  1090. data/spec/models/create_message_request_attachments_inner_spec.rb +42 -0
  1091. data/spec/models/create_message_request_attachments_inner_tools_inner_spec.rb +32 -0
  1092. data/spec/models/create_message_request_content_spec.rb +32 -0
  1093. data/spec/models/create_message_request_spec.rb +4 -4
  1094. data/spec/models/create_moderation_request_input_one_of_inner_one_of1_spec.rb +46 -0
  1095. data/spec/models/create_moderation_request_input_one_of_inner_one_of_image_url_spec.rb +36 -0
  1096. data/spec/models/create_moderation_request_input_one_of_inner_one_of_spec.rb +46 -0
  1097. data/spec/models/create_moderation_request_input_one_of_inner_spec.rb +32 -0
  1098. data/spec/models/create_moderation_request_input_spec.rb +2 -2
  1099. data/spec/models/create_moderation_request_model_spec.rb +2 -2
  1100. data/spec/models/create_moderation_request_spec.rb +3 -3
  1101. data/spec/models/create_moderation_response_results_inner_categories_spec.rb +15 -3
  1102. data/spec/models/create_moderation_response_results_inner_category_applied_input_types_spec.rb +160 -0
  1103. data/spec/models/create_moderation_response_results_inner_category_scores_spec.rb +15 -3
  1104. data/spec/models/create_moderation_response_results_inner_spec.rb +9 -3
  1105. data/spec/models/create_moderation_response_spec.rb +3 -3
  1106. data/spec/models/create_run_request_model_spec.rb +2 -2
  1107. data/spec/models/create_run_request_spec.rb +15 -3
  1108. data/spec/models/create_speech_request_model_spec.rb +2 -2
  1109. data/spec/models/create_speech_request_spec.rb +3 -3
  1110. data/spec/models/create_thread_and_run_request_spec.rb +21 -3
  1111. data/spec/models/create_thread_and_run_request_tool_resources_spec.rb +42 -0
  1112. data/spec/models/create_thread_and_run_request_tools_inner_spec.rb +2 -2
  1113. data/spec/models/create_thread_request_spec.rb +9 -3
  1114. data/spec/models/create_thread_request_tool_resources_file_search_spec.rb +42 -0
  1115. data/spec/models/create_thread_request_tool_resources_file_search_vector_stores_inner_spec.rb +48 -0
  1116. data/spec/models/create_thread_request_tool_resources_spec.rb +42 -0
  1117. data/spec/models/create_transcription200_response_spec.rb +2 -2
  1118. data/spec/models/create_transcription_request_model_spec.rb +2 -2
  1119. data/spec/models/create_transcription_response_json_spec.rb +3 -3
  1120. data/spec/models/create_transcription_response_verbose_json_spec.rb +3 -3
  1121. data/spec/models/create_translation200_response_spec.rb +2 -2
  1122. data/spec/models/create_translation_response_json_spec.rb +3 -3
  1123. data/spec/models/create_translation_response_verbose_json_spec.rb +3 -3
  1124. data/spec/models/create_upload_request_spec.rb +58 -0
  1125. data/spec/models/create_vector_store_file_batch_request_spec.rb +42 -0
  1126. data/spec/models/create_vector_store_file_request_spec.rb +42 -0
  1127. data/spec/models/create_vector_store_request_chunking_strategy_spec.rb +32 -0
  1128. data/spec/models/create_vector_store_request_spec.rb +60 -0
  1129. data/spec/models/default_project_error_response_spec.rb +42 -0
  1130. data/spec/models/delete_assistant_response_spec.rb +3 -3
  1131. data/spec/models/delete_file_response_spec.rb +3 -3
  1132. data/spec/models/delete_message_response_spec.rb +3 -3
  1133. data/spec/models/delete_model_response_spec.rb +3 -3
  1134. data/spec/models/delete_thread_response_spec.rb +3 -3
  1135. data/spec/models/delete_vector_store_file_response_spec.rb +52 -0
  1136. data/spec/models/{delete_assistant_file_response_spec.rb → delete_vector_store_response_spec.rb} +9 -9
  1137. data/spec/models/done_event_spec.rb +3 -3
  1138. data/spec/models/embedding_spec.rb +3 -3
  1139. data/spec/models/error_event_spec.rb +3 -3
  1140. data/spec/models/error_response_spec.rb +3 -3
  1141. data/spec/models/error_spec.rb +3 -3
  1142. data/spec/models/file_search_ranking_options_spec.rb +46 -0
  1143. data/spec/models/fine_tune_chat_completion_request_assistant_message_spec.rb +86 -0
  1144. data/spec/models/fine_tune_chat_request_input_messages_inner_spec.rb +32 -0
  1145. data/spec/models/fine_tune_chat_request_input_spec.rb +54 -0
  1146. data/spec/models/fine_tune_completion_request_input_spec.rb +42 -0
  1147. data/spec/models/fine_tune_dpo_method_hyperparameters_batch_size_spec.rb +32 -0
  1148. data/spec/models/fine_tune_dpo_method_hyperparameters_beta_spec.rb +32 -0
  1149. data/spec/models/fine_tune_dpo_method_hyperparameters_learning_rate_multiplier_spec.rb +32 -0
  1150. data/spec/models/fine_tune_dpo_method_hyperparameters_n_epochs_spec.rb +32 -0
  1151. data/spec/models/fine_tune_dpo_method_hyperparameters_spec.rb +54 -0
  1152. data/spec/models/fine_tune_dpo_method_spec.rb +36 -0
  1153. data/spec/models/fine_tune_method_spec.rb +52 -0
  1154. data/spec/models/fine_tune_preference_request_input_input_spec.rb +48 -0
  1155. data/spec/models/fine_tune_preference_request_input_preferred_completion_inner_spec.rb +32 -0
  1156. data/spec/models/fine_tune_preference_request_input_spec.rb +48 -0
  1157. data/spec/models/fine_tune_supervised_method_hyperparameters_spec.rb +48 -0
  1158. data/spec/models/fine_tune_supervised_method_spec.rb +36 -0
  1159. data/spec/models/fine_tuning_integration_spec.rb +3 -3
  1160. data/spec/models/fine_tuning_job_checkpoint_metrics_spec.rb +3 -3
  1161. data/spec/models/fine_tuning_job_checkpoint_spec.rb +3 -3
  1162. data/spec/models/fine_tuning_job_error_spec.rb +3 -3
  1163. data/spec/models/fine_tuning_job_event_spec.rb +22 -6
  1164. data/spec/models/fine_tuning_job_hyperparameters_spec.rb +15 -3
  1165. data/spec/models/fine_tuning_job_integrations_inner_spec.rb +2 -2
  1166. data/spec/models/fine_tuning_job_spec.rb +15 -3
  1167. data/spec/models/function_object_spec.rb +9 -3
  1168. data/spec/models/image_spec.rb +3 -3
  1169. data/spec/models/images_response_spec.rb +3 -3
  1170. data/spec/models/invite_delete_response_spec.rb +52 -0
  1171. data/spec/models/invite_list_response_spec.rb +64 -0
  1172. data/spec/models/invite_projects_inner_spec.rb +46 -0
  1173. data/spec/models/invite_request_projects_inner_spec.rb +46 -0
  1174. data/spec/models/invite_request_spec.rb +52 -0
  1175. data/spec/models/invite_spec.rb +96 -0
  1176. data/spec/models/list_assistants_response_spec.rb +3 -3
  1177. data/spec/models/list_audit_logs_effective_at_parameter_spec.rb +54 -0
  1178. data/spec/models/list_audit_logs_response_spec.rb +64 -0
  1179. data/spec/models/list_batches_response_spec.rb +64 -0
  1180. data/spec/models/list_files_response_spec.rb +22 -8
  1181. data/spec/models/list_fine_tuning_job_checkpoints_response_spec.rb +3 -3
  1182. data/spec/models/list_fine_tuning_job_events_response_spec.rb +3 -3
  1183. data/spec/models/list_messages_response_spec.rb +3 -3
  1184. data/spec/models/list_models_response_spec.rb +3 -3
  1185. data/spec/models/list_paginated_fine_tuning_jobs_response_spec.rb +3 -3
  1186. data/spec/models/list_run_steps_response_spec.rb +3 -3
  1187. data/spec/models/list_runs_response_spec.rb +3 -3
  1188. data/spec/models/list_threads_response_spec.rb +3 -3
  1189. data/spec/models/{list_assistant_files_response_spec.rb → list_vector_store_files_response_spec.rb} +8 -8
  1190. data/spec/models/{list_message_files_response_spec.rb → list_vector_stores_response_spec.rb} +8 -8
  1191. data/spec/models/message_content_image_file_object_image_file_spec.rb +13 -3
  1192. data/spec/models/message_content_image_file_object_spec.rb +3 -3
  1193. data/spec/models/message_content_image_url_object_image_url_spec.rb +46 -0
  1194. data/spec/models/message_content_image_url_object_spec.rb +46 -0
  1195. data/spec/models/message_content_refusal_object_spec.rb +46 -0
  1196. data/spec/models/message_content_text_annotations_file_citation_object_file_citation_spec.rb +3 -9
  1197. data/spec/models/message_content_text_annotations_file_citation_object_spec.rb +3 -3
  1198. data/spec/models/message_content_text_annotations_file_path_object_file_path_spec.rb +3 -3
  1199. data/spec/models/message_content_text_annotations_file_path_object_spec.rb +3 -3
  1200. data/spec/models/message_content_text_object_spec.rb +3 -3
  1201. data/spec/models/message_content_text_object_text_annotations_inner_spec.rb +2 -2
  1202. data/spec/models/message_content_text_object_text_spec.rb +3 -3
  1203. data/spec/models/message_delta_content_image_file_object_image_file_spec.rb +13 -3
  1204. data/spec/models/message_delta_content_image_file_object_spec.rb +3 -3
  1205. data/spec/models/message_delta_content_image_url_object_image_url_spec.rb +46 -0
  1206. data/spec/models/message_delta_content_image_url_object_spec.rb +52 -0
  1207. data/spec/models/message_delta_content_refusal_object_spec.rb +52 -0
  1208. data/spec/models/message_delta_content_text_annotations_file_citation_object_file_citation_spec.rb +3 -3
  1209. data/spec/models/message_delta_content_text_annotations_file_citation_object_spec.rb +3 -3
  1210. data/spec/models/message_delta_content_text_annotations_file_path_object_file_path_spec.rb +3 -3
  1211. data/spec/models/message_delta_content_text_annotations_file_path_object_spec.rb +3 -3
  1212. data/spec/models/message_delta_content_text_object_spec.rb +3 -3
  1213. data/spec/models/message_delta_content_text_object_text_annotations_inner_spec.rb +2 -2
  1214. data/spec/models/message_delta_content_text_object_text_spec.rb +3 -3
  1215. data/spec/models/message_delta_object_delta_content_inner_spec.rb +2 -2
  1216. data/spec/models/message_delta_object_delta_spec.rb +3 -9
  1217. data/spec/models/message_delta_object_spec.rb +3 -3
  1218. data/spec/models/message_object_content_inner_spec.rb +2 -2
  1219. data/spec/models/message_object_incomplete_details_spec.rb +3 -3
  1220. data/spec/models/message_object_spec.rb +4 -4
  1221. data/spec/models/message_request_content_text_object_spec.rb +46 -0
  1222. data/spec/models/message_stream_event_one_of1_spec.rb +3 -3
  1223. data/spec/models/message_stream_event_one_of2_spec.rb +3 -3
  1224. data/spec/models/message_stream_event_one_of3_spec.rb +3 -3
  1225. data/spec/models/message_stream_event_one_of4_spec.rb +3 -3
  1226. data/spec/models/message_stream_event_one_of_spec.rb +3 -3
  1227. data/spec/models/message_stream_event_spec.rb +2 -2
  1228. data/spec/models/model_spec.rb +3 -3
  1229. data/spec/models/modify_assistant_request_spec.rb +22 -4
  1230. data/spec/models/modify_assistant_request_tool_resources_code_interpreter_spec.rb +36 -0
  1231. data/spec/models/modify_assistant_request_tool_resources_file_search_spec.rb +36 -0
  1232. data/spec/models/modify_assistant_request_tool_resources_spec.rb +42 -0
  1233. data/spec/models/modify_message_request_spec.rb +3 -3
  1234. data/spec/models/modify_run_request_spec.rb +3 -3
  1235. data/spec/models/modify_thread_request_spec.rb +9 -3
  1236. data/spec/models/modify_thread_request_tool_resources_file_search_spec.rb +36 -0
  1237. data/spec/models/modify_thread_request_tool_resources_spec.rb +42 -0
  1238. data/spec/models/open_ai_file_spec.rb +4 -4
  1239. data/spec/models/other_chunking_strategy_response_param_spec.rb +40 -0
  1240. data/spec/models/prediction_content_content_spec.rb +32 -0
  1241. data/spec/models/prediction_content_spec.rb +46 -0
  1242. data/spec/models/project_api_key_delete_response_spec.rb +52 -0
  1243. data/spec/models/project_api_key_list_response_spec.rb +64 -0
  1244. data/spec/models/project_api_key_owner_spec.rb +52 -0
  1245. data/spec/models/project_api_key_spec.rb +70 -0
  1246. data/spec/models/project_create_request_spec.rb +36 -0
  1247. data/spec/models/project_list_response_spec.rb +64 -0
  1248. data/spec/models/project_rate_limit_list_response_spec.rb +64 -0
  1249. data/spec/models/project_rate_limit_spec.rb +88 -0
  1250. data/spec/models/project_rate_limit_update_request_spec.rb +66 -0
  1251. data/spec/models/project_service_account_api_key_spec.rb +64 -0
  1252. data/spec/models/project_service_account_create_request_spec.rb +36 -0
  1253. data/spec/models/project_service_account_create_response_spec.rb +74 -0
  1254. data/spec/models/project_service_account_delete_response_spec.rb +52 -0
  1255. data/spec/models/project_service_account_list_response_spec.rb +64 -0
  1256. data/spec/models/project_service_account_spec.rb +68 -0
  1257. data/spec/models/project_spec.rb +74 -0
  1258. data/spec/models/project_update_request_spec.rb +36 -0
  1259. data/spec/models/project_user_create_request_spec.rb +46 -0
  1260. data/spec/models/project_user_delete_response_spec.rb +52 -0
  1261. data/spec/models/project_user_list_response_spec.rb +60 -0
  1262. data/spec/models/project_user_spec.rb +74 -0
  1263. data/spec/models/project_user_update_request_spec.rb +40 -0
  1264. data/spec/models/realtime_client_event_conversation_item_create_spec.rb +58 -0
  1265. data/spec/models/realtime_client_event_conversation_item_delete_spec.rb +52 -0
  1266. data/spec/models/realtime_client_event_conversation_item_truncate_spec.rb +64 -0
  1267. data/spec/models/realtime_client_event_input_audio_buffer_append_spec.rb +52 -0
  1268. data/spec/models/realtime_client_event_input_audio_buffer_clear_spec.rb +46 -0
  1269. data/spec/models/realtime_client_event_input_audio_buffer_commit_spec.rb +46 -0
  1270. data/spec/models/realtime_client_event_response_cancel_spec.rb +52 -0
  1271. data/spec/models/realtime_client_event_response_create_spec.rb +52 -0
  1272. data/spec/models/realtime_client_event_session_update_spec.rb +52 -0
  1273. data/spec/models/realtime_conversation_item_content_inner_spec.rb +64 -0
  1274. data/spec/models/realtime_conversation_item_spec.rb +106 -0
  1275. data/spec/models/realtime_response_create_params_conversation_spec.rb +32 -0
  1276. data/spec/models/realtime_response_create_params_max_response_output_tokens_spec.rb +32 -0
  1277. data/spec/models/realtime_response_create_params_spec.rb +108 -0
  1278. data/spec/models/realtime_response_create_params_tools_inner_spec.rb +58 -0
  1279. data/spec/models/realtime_response_spec.rb +80 -0
  1280. data/spec/models/realtime_response_status_details_error_spec.rb +42 -0
  1281. data/spec/models/realtime_response_status_details_spec.rb +56 -0
  1282. data/spec/models/realtime_response_usage_input_token_details_spec.rb +48 -0
  1283. data/spec/models/realtime_response_usage_output_token_details_spec.rb +42 -0
  1284. data/spec/models/realtime_response_usage_spec.rb +60 -0
  1285. data/spec/models/realtime_server_event_conversation_created_conversation_spec.rb +42 -0
  1286. data/spec/models/realtime_server_event_conversation_created_spec.rb +52 -0
  1287. data/spec/models/realtime_server_event_conversation_item_created_spec.rb +58 -0
  1288. data/spec/models/realtime_server_event_conversation_item_deleted_spec.rb +52 -0
  1289. data/spec/models/realtime_server_event_conversation_item_input_audio_transcription_completed_spec.rb +64 -0
  1290. data/spec/models/realtime_server_event_conversation_item_input_audio_transcription_failed_error_spec.rb +54 -0
  1291. data/spec/models/realtime_server_event_conversation_item_input_audio_transcription_failed_spec.rb +64 -0
  1292. data/spec/models/realtime_server_event_conversation_item_truncated_spec.rb +64 -0
  1293. data/spec/models/realtime_server_event_error_error_spec.rb +60 -0
  1294. data/spec/models/realtime_server_event_error_spec.rb +52 -0
  1295. data/spec/models/realtime_server_event_input_audio_buffer_cleared_spec.rb +46 -0
  1296. data/spec/models/realtime_server_event_input_audio_buffer_committed_spec.rb +58 -0
  1297. data/spec/models/realtime_server_event_input_audio_buffer_speech_started_spec.rb +58 -0
  1298. data/spec/models/realtime_server_event_input_audio_buffer_speech_stopped_spec.rb +58 -0
  1299. data/spec/models/realtime_server_event_rate_limits_updated_rate_limits_inner_spec.rb +58 -0
  1300. data/spec/models/realtime_server_event_rate_limits_updated_spec.rb +52 -0
  1301. data/spec/models/realtime_server_event_response_audio_delta_spec.rb +76 -0
  1302. data/spec/models/realtime_server_event_response_audio_done_spec.rb +70 -0
  1303. data/spec/models/realtime_server_event_response_audio_transcript_delta_spec.rb +76 -0
  1304. data/spec/models/realtime_server_event_response_audio_transcript_done_spec.rb +76 -0
  1305. data/spec/models/realtime_server_event_response_content_part_added_part_spec.rb +58 -0
  1306. data/spec/models/realtime_server_event_response_content_part_added_spec.rb +76 -0
  1307. data/spec/models/realtime_server_event_response_content_part_done_part_spec.rb +58 -0
  1308. data/spec/models/realtime_server_event_response_content_part_done_spec.rb +76 -0
  1309. data/spec/models/realtime_server_event_response_created_spec.rb +52 -0
  1310. data/spec/models/realtime_server_event_response_done_spec.rb +52 -0
  1311. data/spec/models/realtime_server_event_response_function_call_arguments_delta_spec.rb +76 -0
  1312. data/spec/models/realtime_server_event_response_function_call_arguments_done_spec.rb +76 -0
  1313. data/spec/models/realtime_server_event_response_output_item_added_spec.rb +64 -0
  1314. data/spec/models/realtime_server_event_response_output_item_done_spec.rb +64 -0
  1315. data/spec/models/realtime_server_event_response_text_delta_spec.rb +76 -0
  1316. data/spec/models/realtime_server_event_response_text_done_spec.rb +76 -0
  1317. data/spec/models/realtime_server_event_session_created_spec.rb +52 -0
  1318. data/spec/models/realtime_server_event_session_updated_spec.rb +52 -0
  1319. data/spec/models/realtime_session_create_request_spec.rb +122 -0
  1320. data/spec/models/realtime_session_create_request_turn_detection_spec.rb +60 -0
  1321. data/spec/models/realtime_session_create_response_client_secret_spec.rb +42 -0
  1322. data/spec/models/realtime_session_create_response_spec.rb +110 -0
  1323. data/spec/models/realtime_session_create_response_turn_detection_spec.rb +54 -0
  1324. data/spec/models/realtime_session_input_audio_transcription_spec.rb +36 -0
  1325. data/spec/models/realtime_session_model_spec.rb +21 -0
  1326. data/spec/models/realtime_session_spec.rb +124 -0
  1327. data/spec/models/realtime_session_turn_detection_spec.rb +58 -0
  1328. data/spec/models/response_format_json_object_spec.rb +40 -0
  1329. data/spec/models/response_format_json_schema_json_schema_spec.rb +54 -0
  1330. data/spec/models/response_format_json_schema_spec.rb +46 -0
  1331. data/spec/models/response_format_text_spec.rb +40 -0
  1332. data/spec/models/run_completion_usage_spec.rb +3 -3
  1333. data/spec/models/run_object_incomplete_details_spec.rb +3 -3
  1334. data/spec/models/run_object_last_error_spec.rb +3 -3
  1335. data/spec/models/run_object_required_action_spec.rb +3 -3
  1336. data/spec/models/run_object_required_action_submit_tool_outputs_spec.rb +3 -3
  1337. data/spec/models/run_object_spec.rb +14 -8
  1338. data/spec/models/run_step_completion_usage_spec.rb +3 -3
  1339. data/spec/models/run_step_delta_object_delta_spec.rb +3 -3
  1340. data/spec/models/run_step_delta_object_delta_step_details_spec.rb +2 -2
  1341. data/spec/models/run_step_delta_object_spec.rb +3 -3
  1342. data/spec/models/run_step_delta_step_details_message_creation_object_message_creation_spec.rb +3 -3
  1343. data/spec/models/run_step_delta_step_details_message_creation_object_spec.rb +3 -3
  1344. data/spec/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_outputs_inner_spec.rb +2 -2
  1345. data/spec/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_spec.rb +3 -3
  1346. data/spec/models/run_step_delta_step_details_tool_calls_code_object_spec.rb +3 -3
  1347. data/spec/models/run_step_delta_step_details_tool_calls_code_output_image_object_image_spec.rb +3 -3
  1348. data/spec/models/run_step_delta_step_details_tool_calls_code_output_image_object_spec.rb +3 -3
  1349. data/spec/models/run_step_delta_step_details_tool_calls_code_output_logs_object_spec.rb +3 -3
  1350. data/spec/models/{run_step_delta_step_details_tool_calls_retrieval_object_spec.rb → run_step_delta_step_details_tool_calls_file_search_object_spec.rb} +10 -10
  1351. data/spec/models/run_step_delta_step_details_tool_calls_function_object_function_spec.rb +3 -3
  1352. data/spec/models/run_step_delta_step_details_tool_calls_function_object_spec.rb +3 -3
  1353. data/spec/models/run_step_delta_step_details_tool_calls_object_spec.rb +3 -3
  1354. data/spec/models/run_step_delta_step_details_tool_calls_object_tool_calls_inner_spec.rb +2 -2
  1355. data/spec/models/run_step_details_message_creation_object_message_creation_spec.rb +3 -3
  1356. data/spec/models/run_step_details_message_creation_object_spec.rb +3 -3
  1357. data/spec/models/run_step_details_tool_calls_code_object_code_interpreter_outputs_inner_spec.rb +2 -2
  1358. data/spec/models/run_step_details_tool_calls_code_object_code_interpreter_spec.rb +3 -3
  1359. data/spec/models/run_step_details_tool_calls_code_object_spec.rb +3 -3
  1360. data/spec/models/run_step_details_tool_calls_code_output_image_object_image_spec.rb +3 -3
  1361. data/spec/models/run_step_details_tool_calls_code_output_image_object_spec.rb +3 -3
  1362. data/spec/models/run_step_details_tool_calls_code_output_logs_object_spec.rb +3 -3
  1363. data/spec/models/run_step_details_tool_calls_file_search_object_file_search_spec.rb +42 -0
  1364. data/spec/models/{run_step_details_tool_calls_retrieval_object_spec.rb → run_step_details_tool_calls_file_search_object_spec.rb} +10 -10
  1365. data/spec/models/run_step_details_tool_calls_file_search_ranking_options_object_spec.rb +46 -0
  1366. data/spec/models/run_step_details_tool_calls_file_search_result_object_content_inner_spec.rb +46 -0
  1367. data/spec/models/run_step_details_tool_calls_file_search_result_object_spec.rb +54 -0
  1368. data/spec/models/run_step_details_tool_calls_function_object_function_spec.rb +3 -3
  1369. data/spec/models/run_step_details_tool_calls_function_object_spec.rb +3 -3
  1370. data/spec/models/run_step_details_tool_calls_object_spec.rb +3 -3
  1371. data/spec/models/run_step_details_tool_calls_object_tool_calls_inner_spec.rb +2 -2
  1372. data/spec/models/run_step_object_last_error_spec.rb +3 -3
  1373. data/spec/models/run_step_object_spec.rb +3 -3
  1374. data/spec/models/run_step_object_step_details_spec.rb +2 -2
  1375. data/spec/models/run_step_stream_event_one_of1_spec.rb +3 -3
  1376. data/spec/models/run_step_stream_event_one_of2_spec.rb +3 -3
  1377. data/spec/models/run_step_stream_event_one_of3_spec.rb +3 -3
  1378. data/spec/models/run_step_stream_event_one_of4_spec.rb +3 -3
  1379. data/spec/models/run_step_stream_event_one_of5_spec.rb +3 -3
  1380. data/spec/models/run_step_stream_event_one_of6_spec.rb +3 -3
  1381. data/spec/models/run_step_stream_event_one_of_spec.rb +3 -3
  1382. data/spec/models/run_step_stream_event_spec.rb +2 -2
  1383. data/spec/models/run_stream_event_one_of1_spec.rb +3 -3
  1384. data/spec/models/run_stream_event_one_of2_spec.rb +3 -3
  1385. data/spec/models/run_stream_event_one_of3_spec.rb +3 -3
  1386. data/spec/models/run_stream_event_one_of4_spec.rb +3 -3
  1387. data/spec/models/run_stream_event_one_of5_spec.rb +4 -4
  1388. data/spec/models/run_stream_event_one_of6_spec.rb +4 -4
  1389. data/spec/models/run_stream_event_one_of7_spec.rb +4 -4
  1390. data/spec/models/run_stream_event_one_of8_spec.rb +4 -4
  1391. data/spec/models/{thread_stream_event_one_of_spec.rb → run_stream_event_one_of9_spec.rb} +9 -9
  1392. data/spec/models/run_stream_event_one_of_spec.rb +3 -3
  1393. data/spec/models/run_stream_event_spec.rb +2 -2
  1394. data/spec/models/run_tool_call_object_function_spec.rb +3 -3
  1395. data/spec/models/run_tool_call_object_spec.rb +3 -3
  1396. data/spec/models/static_chunking_strategy_request_param_spec.rb +46 -0
  1397. data/spec/models/static_chunking_strategy_response_param_spec.rb +46 -0
  1398. data/spec/models/static_chunking_strategy_spec.rb +46 -0
  1399. data/spec/models/static_chunking_strategy_static_spec.rb +42 -0
  1400. data/spec/models/submit_tool_outputs_run_request_spec.rb +3 -3
  1401. data/spec/models/submit_tool_outputs_run_request_tool_outputs_inner_spec.rb +3 -3
  1402. data/spec/models/thread_object_spec.rb +9 -3
  1403. data/spec/models/thread_stream_event_spec.rb +27 -7
  1404. data/spec/models/transcription_segment_spec.rb +3 -3
  1405. data/spec/models/transcription_word_spec.rb +3 -3
  1406. data/spec/models/truncation_object_spec.rb +3 -3
  1407. data/spec/models/update_vector_store_request_spec.rb +48 -0
  1408. data/spec/models/{message_file_object_spec.rb → upload_part_spec.rb} +15 -15
  1409. data/spec/models/upload_spec.rb +92 -0
  1410. data/spec/models/usage_audio_speeches_result_spec.rb +76 -0
  1411. data/spec/models/usage_audio_transcriptions_result_spec.rb +76 -0
  1412. data/spec/models/usage_code_interpreter_sessions_result_spec.rb +52 -0
  1413. data/spec/models/usage_completions_result_spec.rb +106 -0
  1414. data/spec/models/usage_embeddings_result_spec.rb +76 -0
  1415. data/spec/models/usage_images_result_spec.rb +88 -0
  1416. data/spec/models/usage_moderations_result_spec.rb +76 -0
  1417. data/spec/models/usage_response_spec.rb +58 -0
  1418. data/spec/models/usage_time_bucket_result_inner_spec.rb +32 -0
  1419. data/spec/models/usage_time_bucket_spec.rb +58 -0
  1420. data/spec/models/usage_vector_stores_result_spec.rb +52 -0
  1421. data/spec/models/user_delete_response_spec.rb +52 -0
  1422. data/spec/models/user_list_response_spec.rb +64 -0
  1423. data/spec/models/user_role_update_request_spec.rb +40 -0
  1424. data/spec/models/user_spec.rb +74 -0
  1425. data/spec/models/vector_store_expiration_after_spec.rb +46 -0
  1426. data/spec/models/vector_store_file_batch_object_file_counts_spec.rb +60 -0
  1427. data/spec/models/vector_store_file_batch_object_spec.rb +74 -0
  1428. data/spec/models/vector_store_file_object_chunking_strategy_spec.rb +32 -0
  1429. data/spec/models/vector_store_file_object_last_error_spec.rb +46 -0
  1430. data/spec/models/vector_store_file_object_spec.rb +86 -0
  1431. data/spec/models/vector_store_object_file_counts_spec.rb +60 -0
  1432. data/spec/models/vector_store_object_spec.rb +104 -0
  1433. data/spec/spec_helper.rb +2 -2
  1434. metadata +1375 -275
  1435. data/bin/bundle +0 -109
  1436. data/docs/AssistantFileObject.md +0 -24
  1437. data/docs/AssistantsApiResponseFormat.md +0 -18
  1438. data/docs/CreateAssistantFileRequest.md +0 -18
  1439. data/docs/MessageFileObject.md +0 -24
  1440. data/docs/RunStepDetailsToolCallsRetrievalObject.md +0 -22
@@ -0,0 +1,20 @@
1
+ # OpenApiOpenAIClient::CreateAssistantRequestToolResources
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code_interpreter** | [**CreateAssistantRequestToolResourcesCodeInterpreter**](CreateAssistantRequestToolResourcesCodeInterpreter.md) | | [optional] |
8
+ | **file_search** | [**CreateAssistantRequestToolResourcesFileSearch**](CreateAssistantRequestToolResourcesFileSearch.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'openapi_openai'
14
+
15
+ instance = OpenApiOpenAIClient::CreateAssistantRequestToolResources.new(
16
+ code_interpreter: null,
17
+ file_search: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # OpenApiOpenAIClient::CreateAssistantRequestToolResourcesCodeInterpreter
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **file_ids** | **Array<String>** | A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'openapi_openai'
13
+
14
+ instance = OpenApiOpenAIClient::CreateAssistantRequestToolResourcesCodeInterpreter.new(
15
+ file_ids: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # OpenApiOpenAIClient::CreateAssistantRequestToolResourcesFileSearch
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **vector_store_ids** | **Array<String>** | The [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. | [optional] |
8
+ | **vector_stores** | [**Array<CreateAssistantRequestToolResourcesFileSearchVectorStoresInner>**](CreateAssistantRequestToolResourcesFileSearchVectorStoresInner.md) | A helper to create a [vector store](/docs/api-reference/vector-stores/object) with file_ids and attach it to this assistant. There can be a maximum of 1 vector store attached to the assistant. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'openapi_openai'
14
+
15
+ instance = OpenApiOpenAIClient::CreateAssistantRequestToolResourcesFileSearch.new(
16
+ vector_store_ids: null,
17
+ vector_stores: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # OpenApiOpenAIClient::CreateAssistantRequestToolResourcesFileSearchVectorStoresInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **file_ids** | **Array<String>** | A list of [file](/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store. | [optional] |
8
+ | **chunking_strategy** | [**CreateAssistantRequestToolResourcesFileSearchVectorStoresInnerChunkingStrategy**](CreateAssistantRequestToolResourcesFileSearchVectorStoresInnerChunkingStrategy.md) | | [optional] |
9
+ | **metadata** | **Object** | Set of 16 key-value pairs that can be attached to a vector store. This can be useful for storing additional information about the vector store in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'openapi_openai'
15
+
16
+ instance = OpenApiOpenAIClient::CreateAssistantRequestToolResourcesFileSearchVectorStoresInner.new(
17
+ file_ids: null,
18
+ chunking_strategy: null,
19
+ metadata: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,49 @@
1
+ # OpenApiOpenAIClient::CreateAssistantRequestToolResourcesFileSearchVectorStoresInnerChunkingStrategy
2
+
3
+ ## Class instance methods
4
+
5
+ ### `openapi_one_of`
6
+
7
+ Returns the list of classes defined in oneOf.
8
+
9
+ #### Example
10
+
11
+ ```ruby
12
+ require 'openapi_openai'
13
+
14
+ OpenApiOpenAIClient::CreateAssistantRequestToolResourcesFileSearchVectorStoresInnerChunkingStrategy.openapi_one_of
15
+ # =>
16
+ # [
17
+ # :'AutoChunkingStrategy',
18
+ # :'StaticChunkingStrategy'
19
+ # ]
20
+ ```
21
+
22
+ ### build
23
+
24
+ Find the appropriate object from the `openapi_one_of` list and casts the data into it.
25
+
26
+ #### Example
27
+
28
+ ```ruby
29
+ require 'openapi_openai'
30
+
31
+ OpenApiOpenAIClient::CreateAssistantRequestToolResourcesFileSearchVectorStoresInnerChunkingStrategy.build(data)
32
+ # => #<AutoChunkingStrategy:0x00007fdd4aab02a0>
33
+
34
+ OpenApiOpenAIClient::CreateAssistantRequestToolResourcesFileSearchVectorStoresInnerChunkingStrategy.build(data_that_doesnt_match)
35
+ # => nil
36
+ ```
37
+
38
+ #### Parameters
39
+
40
+ | Name | Type | Description |
41
+ | ---- | ---- | ----------- |
42
+ | **data** | **Mixed** | data to be matched against the list of oneOf items |
43
+
44
+ #### Return type
45
+
46
+ - `AutoChunkingStrategy`
47
+ - `StaticChunkingStrategy`
48
+ - `nil` (if no type matches)
49
+
@@ -0,0 +1,24 @@
1
+ # OpenApiOpenAIClient::CreateBatchRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **input_file_id** | **String** | The ID of an uploaded file that contains requests for the new batch. See [upload file](/docs/api-reference/files/create) for how to upload a file. Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose &#x60;batch&#x60;. The file can contain up to 50,000 requests, and can be up to 200 MB in size. | |
8
+ | **endpoint** | **String** | The endpoint to be used for all requests in the batch. Currently &#x60;/v1/chat/completions&#x60;, &#x60;/v1/embeddings&#x60;, and &#x60;/v1/completions&#x60; are supported. Note that &#x60;/v1/embeddings&#x60; batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch. | |
9
+ | **completion_window** | **String** | The time frame within which the batch should be processed. Currently only &#x60;24h&#x60; is supported. | |
10
+ | **metadata** | **Hash&lt;String, String&gt;** | Optional custom metadata for the batch. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'openapi_openai'
16
+
17
+ instance = OpenApiOpenAIClient::CreateBatchRequest.new(
18
+ input_file_id: null,
19
+ endpoint: null,
20
+ completion_window: null,
21
+ metadata: null
22
+ )
23
+ ```
24
+
@@ -4,24 +4,34 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **messages** | [**Array&lt;ChatCompletionRequestMessage&gt;**](ChatCompletionRequestMessage.md) | A list of messages comprising the conversation so far. [Example Python code](https://cookbook.openai.com/examples/how_to_format_inputs_to_chatgpt_models). | |
7
+ | **messages** | [**Array&lt;ChatCompletionRequestMessage&gt;**](ChatCompletionRequestMessage.md) | A list of messages comprising the conversation so far. Depending on the [model](/docs/models) you use, different message types (modalities) are supported, like [text](/docs/guides/text-generation), [images](/docs/guides/vision), and [audio](/docs/guides/audio). | |
8
8
  | **model** | [**CreateChatCompletionRequestModel**](CreateChatCompletionRequestModel.md) | | |
9
- | **frequency_penalty** | **Float** | Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model&#39;s likelihood to repeat the same line verbatim. [See more information about frequency and presence penalties.](/docs/guides/text-generation/parameter-details) | [optional][default to 0] |
9
+ | **store** | **Boolean** | Whether or not to store the output of this chat completion request for use in our [model distillation](/docs/guides/distillation) or [evals](/docs/guides/evals) products. | [optional][default to false] |
10
+ | **reasoning_effort** | **String** | **o1 models only** Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are &#x60;low&#x60;, &#x60;medium&#x60;, and &#x60;high&#x60;. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. | [optional][default to &#39;medium&#39;] |
11
+ | **metadata** | **Hash&lt;String, String&gt;** | Developer-defined tags and values used for filtering completions in the [dashboard](https://platform.openai.com/chat-completions). | [optional] |
12
+ | **frequency_penalty** | **Float** | Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model&#39;s likelihood to repeat the same line verbatim. | [optional][default to 0] |
10
13
  | **logit_bias** | **Hash&lt;String, Integer&gt;** | Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token. | [optional] |
11
- | **logprobs** | **Boolean** | Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the &#x60;content&#x60; of &#x60;message&#x60;. | [optional][default to false] |
12
- | **top_logprobs** | **Integer** | An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. &#x60;logprobs&#x60; must be set to &#x60;true&#x60; if this parameter is used. | [optional] |
13
- | **max_tokens** | **Integer** | The maximum number of [tokens](/tokenizer) that can be generated in the chat completion. The total length of input tokens and generated tokens is limited by the model&#39;s context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens. | [optional] |
14
+ | **logprobs** | **Boolean** | Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the &#x60;content&#x60; of &#x60;message&#x60;. | [optional][default to false] |
15
+ | **top_logprobs** | **Integer** | An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. &#x60;logprobs&#x60; must be set to &#x60;true&#x60; if this parameter is used. | [optional] |
16
+ | **max_tokens** | **Integer** | The maximum number of [tokens](/tokenizer) that can be generated in the chat completion. This value can be used to control [costs](https://openai.com/api/pricing/) for text generated via API. This value is now deprecated in favor of &#x60;max_completion_tokens&#x60;, and is not compatible with [o1 series models](/docs/guides/reasoning). | [optional] |
17
+ | **max_completion_tokens** | **Integer** | An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](/docs/guides/reasoning). | [optional] |
14
18
  | **n** | **Integer** | How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep &#x60;n&#x60; as &#x60;1&#x60; to minimize costs. | [optional][default to 1] |
15
- | **presence_penalty** | **Float** | Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model&#39;s likelihood to talk about new topics. [See more information about frequency and presence penalties.](/docs/guides/text-generation/parameter-details) | [optional][default to 0] |
19
+ | **modalities** | **Array&lt;String&gt;** | Output types that you would like the model to generate for this request. Most models are capable of generating text, which is the default: &#x60;[\&quot;text\&quot;]&#x60; The &#x60;gpt-4o-audio-preview&#x60; model can also be used to [generate audio](/docs/guides/audio). To request that this model generate both text and audio responses, you can use: &#x60;[\&quot;text\&quot;, \&quot;audio\&quot;]&#x60; | [optional] |
20
+ | **prediction** | [**PredictionContent**](PredictionContent.md) | | [optional] |
21
+ | **audio** | [**CreateChatCompletionRequestAudio**](CreateChatCompletionRequestAudio.md) | | [optional] |
22
+ | **presence_penalty** | **Float** | Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model&#39;s likelihood to talk about new topics. | [optional][default to 0] |
16
23
  | **response_format** | [**CreateChatCompletionRequestResponseFormat**](CreateChatCompletionRequestResponseFormat.md) | | [optional] |
17
24
  | **seed** | **Integer** | This feature is in Beta. If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same &#x60;seed&#x60; and parameters should return the same result. Determinism is not guaranteed, and you should refer to the &#x60;system_fingerprint&#x60; response parameter to monitor changes in the backend. | [optional] |
25
+ | **service_tier** | **String** | Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service: - If set to &#39;auto&#39;, and the Project is Scale tier enabled, the system will utilize scale tier credits until they are exhausted. - If set to &#39;auto&#39;, and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee. - If set to &#39;default&#39;, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee. - When not set, the default behavior is &#39;auto&#39;. When this parameter is set, the response body will include the &#x60;service_tier&#x60; utilized. | [optional][default to &#39;auto&#39;] |
18
26
  | **stop** | [**CreateChatCompletionRequestStop**](CreateChatCompletionRequestStop.md) | | [optional] |
19
27
  | **stream** | **Boolean** | If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a &#x60;data: [DONE]&#x60; message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions). | [optional][default to false] |
20
- | **temperature** | **Float** | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or &#x60;top_p&#x60; but not both. | [optional][default to 1] |
28
+ | **stream_options** | [**ChatCompletionStreamOptions**](ChatCompletionStreamOptions.md) | | [optional] |
29
+ | **temperature** | **Float** | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or &#x60;top_p&#x60; but not both. | [optional][default to 1] |
21
30
  | **top_p** | **Float** | An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or &#x60;temperature&#x60; but not both. | [optional][default to 1] |
22
31
  | **tools** | [**Array&lt;ChatCompletionTool&gt;**](ChatCompletionTool.md) | A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported. | [optional] |
23
32
  | **tool_choice** | [**ChatCompletionToolChoiceOption**](ChatCompletionToolChoiceOption.md) | | [optional] |
24
- | **user** | **String** | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). | [optional] |
33
+ | **parallel_tool_calls** | **Boolean** | Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. | [optional][default to true] |
34
+ | **user** | **String** | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids). | [optional] |
25
35
  | **function_call** | [**CreateChatCompletionRequestFunctionCall**](CreateChatCompletionRequestFunctionCall.md) | | [optional] |
26
36
  | **functions** | [**Array&lt;ChatCompletionFunctions&gt;**](ChatCompletionFunctions.md) | Deprecated in favor of &#x60;tools&#x60;. A list of functions the model may generate JSON inputs for. | [optional] |
27
37
 
@@ -33,21 +43,31 @@ require 'openapi_openai'
33
43
  instance = OpenApiOpenAIClient::CreateChatCompletionRequest.new(
34
44
  messages: null,
35
45
  model: null,
46
+ store: null,
47
+ reasoning_effort: null,
48
+ metadata: null,
36
49
  frequency_penalty: null,
37
50
  logit_bias: null,
38
51
  logprobs: null,
39
52
  top_logprobs: null,
40
53
  max_tokens: null,
54
+ max_completion_tokens: null,
41
55
  n: 1,
56
+ modalities: null,
57
+ prediction: null,
58
+ audio: null,
42
59
  presence_penalty: null,
43
60
  response_format: null,
44
61
  seed: null,
62
+ service_tier: null,
45
63
  stop: null,
46
64
  stream: null,
65
+ stream_options: null,
47
66
  temperature: 1,
48
67
  top_p: 1,
49
68
  tools: null,
50
69
  tool_choice: null,
70
+ parallel_tool_calls: null,
51
71
  user: user-1234,
52
72
  function_call: null,
53
73
  functions: null
@@ -0,0 +1,20 @@
1
+ # OpenApiOpenAIClient::CreateChatCompletionRequestAudio
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **voice** | **String** | The voice the model uses to respond. Supported voices are &#x60;ash&#x60;, &#x60;ballad&#x60;, &#x60;coral&#x60;, &#x60;sage&#x60;, and &#x60;verse&#x60; (also supported but not recommended are &#x60;alloy&#x60;, &#x60;echo&#x60;, and &#x60;shimmer&#x60;; these voices are less expressive). | |
8
+ | **format** | **String** | Specifies the output audio format. Must be one of &#x60;wav&#x60;, &#x60;mp3&#x60;, &#x60;flac&#x60;, &#x60;opus&#x60;, or &#x60;pcm16&#x60;. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'openapi_openai'
14
+
15
+ instance = OpenApiOpenAIClient::CreateChatCompletionRequestAudio.new(
16
+ voice: null,
17
+ format: null
18
+ )
19
+ ```
20
+
@@ -1,18 +1,51 @@
1
1
  # OpenApiOpenAIClient::CreateChatCompletionRequestResponseFormat
2
2
 
3
- ## Properties
3
+ ## Class instance methods
4
4
 
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **type** | **String** | Must be one of &#x60;text&#x60; or &#x60;json_object&#x60;. | [optional][default to &#39;text&#39;] |
5
+ ### `openapi_one_of`
8
6
 
9
- ## Example
7
+ Returns the list of classes defined in oneOf.
8
+
9
+ #### Example
10
+
11
+ ```ruby
12
+ require 'openapi_openai'
13
+
14
+ OpenApiOpenAIClient::CreateChatCompletionRequestResponseFormat.openapi_one_of
15
+ # =>
16
+ # [
17
+ # :'ResponseFormatJsonObject',
18
+ # :'ResponseFormatJsonSchema',
19
+ # :'ResponseFormatText'
20
+ # ]
21
+ ```
22
+
23
+ ### build
24
+
25
+ Find the appropriate object from the `openapi_one_of` list and casts the data into it.
26
+
27
+ #### Example
10
28
 
11
29
  ```ruby
12
30
  require 'openapi_openai'
13
31
 
14
- instance = OpenApiOpenAIClient::CreateChatCompletionRequestResponseFormat.new(
15
- type: json_object
16
- )
32
+ OpenApiOpenAIClient::CreateChatCompletionRequestResponseFormat.build(data)
33
+ # => #<ResponseFormatJsonObject:0x00007fdd4aab02a0>
34
+
35
+ OpenApiOpenAIClient::CreateChatCompletionRequestResponseFormat.build(data_that_doesnt_match)
36
+ # => nil
17
37
  ```
18
38
 
39
+ #### Parameters
40
+
41
+ | Name | Type | Description |
42
+ | ---- | ---- | ----------- |
43
+ | **data** | **Mixed** | data to be matched against the list of oneOf items |
44
+
45
+ #### Return type
46
+
47
+ - `ResponseFormatJsonObject`
48
+ - `ResponseFormatJsonSchema`
49
+ - `ResponseFormatText`
50
+ - `nil` (if no type matches)
51
+
@@ -8,6 +8,7 @@
8
8
  | **choices** | [**Array&lt;CreateChatCompletionResponseChoicesInner&gt;**](CreateChatCompletionResponseChoicesInner.md) | A list of chat completion choices. Can be more than one if &#x60;n&#x60; is greater than 1. | |
9
9
  | **created** | **Integer** | The Unix timestamp (in seconds) of when the chat completion was created. | |
10
10
  | **model** | **String** | The model used for the chat completion. | |
11
+ | **service_tier** | **String** | The service tier used for processing the request. This field is only included if the &#x60;service_tier&#x60; parameter is specified in the request. | [optional] |
11
12
  | **system_fingerprint** | **String** | This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the &#x60;seed&#x60; request parameter to understand when backend changes have been made that might impact determinism. | [optional] |
12
13
  | **object** | **String** | The object type, which is always &#x60;chat.completion&#x60;. | |
13
14
  | **usage** | [**CompletionUsage**](CompletionUsage.md) | | [optional] |
@@ -22,6 +23,7 @@ instance = OpenApiOpenAIClient::CreateChatCompletionResponse.new(
22
23
  choices: null,
23
24
  created: null,
24
25
  model: null,
26
+ service_tier: scale,
25
27
  system_fingerprint: null,
26
28
  object: null,
27
29
  usage: null
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **content** | [**Array&lt;ChatCompletionTokenLogprob&gt;**](ChatCompletionTokenLogprob.md) | A list of message content tokens with log probability information. | |
8
+ | **refusal** | [**Array&lt;ChatCompletionTokenLogprob&gt;**](ChatCompletionTokenLogprob.md) | A list of message refusal tokens with log probability information. | |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'openapi_openai'
13
14
 
14
15
  instance = OpenApiOpenAIClient::CreateChatCompletionResponseChoicesInnerLogprobs.new(
15
- content: null
16
+ content: null,
17
+ refusal: null
16
18
  )
17
19
  ```
18
20
 
@@ -5,11 +5,13 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | A unique identifier for the chat completion. Each chunk has the same ID. | |
8
- | **choices** | [**Array&lt;CreateChatCompletionStreamResponseChoicesInner&gt;**](CreateChatCompletionStreamResponseChoicesInner.md) | A list of chat completion choices. Can be more than one if &#x60;n&#x60; is greater than 1. | |
8
+ | **choices** | [**Array&lt;CreateChatCompletionStreamResponseChoicesInner&gt;**](CreateChatCompletionStreamResponseChoicesInner.md) | A list of chat completion choices. Can contain more than one elements if &#x60;n&#x60; is greater than 1. Can also be empty for the last chunk if you set &#x60;stream_options: {\&quot;include_usage\&quot;: true}&#x60;. | |
9
9
  | **created** | **Integer** | The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp. | |
10
10
  | **model** | **String** | The model to generate the completion. | |
11
+ | **service_tier** | **String** | The service tier used for processing the request. This field is only included if the &#x60;service_tier&#x60; parameter is specified in the request. | [optional] |
11
12
  | **system_fingerprint** | **String** | This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the &#x60;seed&#x60; request parameter to understand when backend changes have been made that might impact determinism. | [optional] |
12
13
  | **object** | **String** | The object type, which is always &#x60;chat.completion.chunk&#x60;. | |
14
+ | **usage** | [**CreateChatCompletionStreamResponseUsage**](CreateChatCompletionStreamResponseUsage.md) | | [optional] |
13
15
 
14
16
  ## Example
15
17
 
@@ -21,8 +23,10 @@ instance = OpenApiOpenAIClient::CreateChatCompletionStreamResponse.new(
21
23
  choices: null,
22
24
  created: null,
23
25
  model: null,
26
+ service_tier: scale,
24
27
  system_fingerprint: null,
25
- object: null
28
+ object: null,
29
+ usage: null
26
30
  )
27
31
  ```
28
32
 
@@ -0,0 +1,22 @@
1
+ # OpenApiOpenAIClient::CreateChatCompletionStreamResponseUsage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **completion_tokens** | **Integer** | Number of tokens in the generated completion. | |
8
+ | **prompt_tokens** | **Integer** | Number of tokens in the prompt. | |
9
+ | **total_tokens** | **Integer** | Total number of tokens used in the request (prompt + completion). | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'openapi_openai'
15
+
16
+ instance = OpenApiOpenAIClient::CreateChatCompletionStreamResponseUsage.new(
17
+ completion_tokens: null,
18
+ prompt_tokens: null,
19
+ total_tokens: null
20
+ )
21
+ ```
22
+
@@ -8,19 +8,20 @@
8
8
  | **prompt** | [**CreateCompletionRequestPrompt**](CreateCompletionRequestPrompt.md) | | |
9
9
  | **best_of** | **Integer** | Generates &#x60;best_of&#x60; completions server-side and returns the \&quot;best\&quot; (the one with the highest log probability per token). Results cannot be streamed. When used with &#x60;n&#x60;, &#x60;best_of&#x60; controls the number of candidate completions and &#x60;n&#x60; specifies how many to return – &#x60;best_of&#x60; must be greater than &#x60;n&#x60;. **Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for &#x60;max_tokens&#x60; and &#x60;stop&#x60;. | [optional][default to 1] |
10
10
  | **echo** | **Boolean** | Echo back the prompt in addition to the completion | [optional][default to false] |
11
- | **frequency_penalty** | **Float** | Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model&#39;s likelihood to repeat the same line verbatim. [See more information about frequency and presence penalties.](/docs/guides/text-generation/parameter-details) | [optional][default to 0] |
11
+ | **frequency_penalty** | **Float** | Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model&#39;s likelihood to repeat the same line verbatim. [See more information about frequency and presence penalties.](/docs/guides/text-generation) | [optional][default to 0] |
12
12
  | **logit_bias** | **Hash&lt;String, Integer&gt;** | Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view&#x3D;bpe) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token. As an example, you can pass &#x60;{\&quot;50256\&quot;: -100}&#x60; to prevent the &lt;|endoftext|&gt; token from being generated. | [optional] |
13
13
  | **logprobs** | **Integer** | Include the log probabilities on the &#x60;logprobs&#x60; most likely output tokens, as well the chosen tokens. For example, if &#x60;logprobs&#x60; is 5, the API will return a list of the 5 most likely tokens. The API will always return the &#x60;logprob&#x60; of the sampled token, so there may be up to &#x60;logprobs+1&#x60; elements in the response. The maximum value for &#x60;logprobs&#x60; is 5. | [optional] |
14
14
  | **max_tokens** | **Integer** | The maximum number of [tokens](/tokenizer) that can be generated in the completion. The token count of your prompt plus &#x60;max_tokens&#x60; cannot exceed the model&#39;s context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens. | [optional][default to 16] |
15
15
  | **n** | **Integer** | How many completions to generate for each prompt. **Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for &#x60;max_tokens&#x60; and &#x60;stop&#x60;. | [optional][default to 1] |
16
- | **presence_penalty** | **Float** | Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model&#39;s likelihood to talk about new topics. [See more information about frequency and presence penalties.](/docs/guides/text-generation/parameter-details) | [optional][default to 0] |
16
+ | **presence_penalty** | **Float** | Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model&#39;s likelihood to talk about new topics. [See more information about frequency and presence penalties.](/docs/guides/text-generation) | [optional][default to 0] |
17
17
  | **seed** | **Integer** | If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same &#x60;seed&#x60; and parameters should return the same result. Determinism is not guaranteed, and you should refer to the &#x60;system_fingerprint&#x60; response parameter to monitor changes in the backend. | [optional] |
18
18
  | **stop** | [**CreateCompletionRequestStop**](CreateCompletionRequestStop.md) | | [optional] |
19
19
  | **stream** | **Boolean** | Whether to stream back partial progress. If set, tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a &#x60;data: [DONE]&#x60; message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions). | [optional][default to false] |
20
+ | **stream_options** | [**ChatCompletionStreamOptions**](ChatCompletionStreamOptions.md) | | [optional] |
20
21
  | **suffix** | **String** | The suffix that comes after a completion of inserted text. This parameter is only supported for &#x60;gpt-3.5-turbo-instruct&#x60;. | [optional] |
21
22
  | **temperature** | **Float** | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or &#x60;top_p&#x60; but not both. | [optional][default to 1] |
22
23
  | **top_p** | **Float** | An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or &#x60;temperature&#x60; but not both. | [optional][default to 1] |
23
- | **user** | **String** | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). | [optional] |
24
+ | **user** | **String** | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids). | [optional] |
24
25
 
25
26
  ## Example
26
27
 
@@ -41,6 +42,7 @@ instance = OpenApiOpenAIClient::CreateCompletionRequest.new(
41
42
  seed: null,
42
43
  stop: null,
43
44
  stream: null,
45
+ stream_options: null,
44
46
  suffix: test.,
45
47
  temperature: 1,
46
48
  top_p: 1,
@@ -8,7 +8,7 @@
8
8
  | **model** | [**CreateEmbeddingRequestModel**](CreateEmbeddingRequestModel.md) | | |
9
9
  | **encoding_format** | **String** | The format to return the embeddings in. Can be either &#x60;float&#x60; or [&#x60;base64&#x60;](https://pypi.org/project/pybase64/). | [optional][default to &#39;float&#39;] |
10
10
  | **dimensions** | **Integer** | The number of dimensions the resulting output embeddings should have. Only supported in &#x60;text-embedding-3&#x60; and later models. | [optional] |
11
- | **user** | **String** | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). | [optional] |
11
+ | **user** | **String** | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids). | [optional] |
12
12
 
13
13
  ## Example
14
14
 
@@ -5,12 +5,13 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **model** | [**CreateFineTuningJobRequestModel**](CreateFineTuningJobRequestModel.md) | | |
8
- | **training_file** | **String** | The ID of an uploaded file that contains training data. See [upload file](/docs/api-reference/files/upload) for how to upload a file. Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose &#x60;fine-tune&#x60;. See the [fine-tuning guide](/docs/guides/fine-tuning) for more details. | |
8
+ | **training_file** | **String** | The ID of an uploaded file that contains training data. See [upload file](/docs/api-reference/files/create) for how to upload a file. Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose &#x60;fine-tune&#x60;. The contents of the file should differ depending on if the model uses the [chat](/docs/api-reference/fine-tuning/chat-input), [completions](/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](/docs/api-reference/fine-tuning/preference-input) format. See the [fine-tuning guide](/docs/guides/fine-tuning) for more details. | |
9
9
  | **hyperparameters** | [**CreateFineTuningJobRequestHyperparameters**](CreateFineTuningJobRequestHyperparameters.md) | | [optional] |
10
- | **suffix** | **String** | A string of up to 18 characters that will be added to your fine-tuned model name. For example, a &#x60;suffix&#x60; of \&quot;custom-model-name\&quot; would produce a model name like &#x60;ft:gpt-3.5-turbo:openai:custom-model-name:7p4lURel&#x60;. | [optional] |
10
+ | **suffix** | **String** | A string of up to 64 characters that will be added to your fine-tuned model name. For example, a &#x60;suffix&#x60; of \&quot;custom-model-name\&quot; would produce a model name like &#x60;ft:gpt-4o-mini:openai:custom-model-name:7p4lURel&#x60;. | [optional] |
11
11
  | **validation_file** | **String** | The ID of an uploaded file that contains validation data. If you provide this file, the data is used to generate validation metrics periodically during fine-tuning. These metrics can be viewed in the fine-tuning results file. The same data should not be present in both train and validation files. Your dataset must be formatted as a JSONL file. You must upload your file with the purpose &#x60;fine-tune&#x60;. See the [fine-tuning guide](/docs/guides/fine-tuning) for more details. | [optional] |
12
12
  | **integrations** | [**Array&lt;CreateFineTuningJobRequestIntegrationsInner&gt;**](CreateFineTuningJobRequestIntegrationsInner.md) | A list of integrations to enable for your fine-tuning job. | [optional] |
13
13
  | **seed** | **Integer** | The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases. If a seed is not specified, one will be generated for you. | [optional] |
14
+ | **method** | [**FineTuneMethod**](FineTuneMethod.md) | | [optional] |
14
15
 
15
16
  ## Example
16
17
 
@@ -24,7 +25,8 @@ instance = OpenApiOpenAIClient::CreateFineTuningJobRequest.new(
24
25
  suffix: null,
25
26
  validation_file: file-abc123,
26
27
  integrations: null,
27
- seed: 42
28
+ seed: 42,
29
+ method: null
28
30
  )
29
31
  ```
30
32
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **type** | [**CreateFineTuningJobRequestIntegrationsInnerType**](CreateFineTuningJobRequestIntegrationsInnerType.md) | | |
7
+ | **type** | **String** | | |
8
8
  | **wandb** | [**CreateFineTuningJobRequestIntegrationsInnerWandb**](CreateFineTuningJobRequestIntegrationsInnerWandb.md) | | |
9
9
 
10
10
  ## Example
@@ -11,7 +11,7 @@
11
11
  | **response_format** | **String** | The format in which the generated images are returned. Must be one of &#x60;url&#x60; or &#x60;b64_json&#x60;. URLs are only valid for 60 minutes after the image has been generated. | [optional][default to &#39;url&#39;] |
12
12
  | **size** | **String** | The size of the generated images. Must be one of &#x60;256x256&#x60;, &#x60;512x512&#x60;, or &#x60;1024x1024&#x60; for &#x60;dall-e-2&#x60;. Must be one of &#x60;1024x1024&#x60;, &#x60;1792x1024&#x60;, or &#x60;1024x1792&#x60; for &#x60;dall-e-3&#x60; models. | [optional][default to &#39;1024x1024&#39;] |
13
13
  | **style** | **String** | The style of the generated images. Must be one of &#x60;vivid&#x60; or &#x60;natural&#x60;. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images. This param is only supported for &#x60;dall-e-3&#x60;. | [optional][default to &#39;vivid&#39;] |
14
- | **user** | **String** | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). | [optional] |
14
+ | **user** | **String** | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids). | [optional] |
15
15
 
16
16
  ## Example
17
17
 
@@ -5,9 +5,9 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **role** | **String** | The role of the entity that is creating the message. Allowed values include: - &#x60;user&#x60;: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages. - &#x60;assistant&#x60;: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation. | |
8
- | **content** | **String** | The content of the message. | |
9
- | **file_ids** | **Array&lt;String&gt;** | A list of [File](/docs/api-reference/files) IDs that the message should use. There can be a maximum of 10 files attached to a message. Useful for tools like &#x60;retrieval&#x60; and &#x60;code_interpreter&#x60; that can access and use files. | [optional] |
10
- | **metadata** | **Object** | Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long. | [optional] |
8
+ | **content** | [**CreateMessageRequestContent**](CreateMessageRequestContent.md) | | |
9
+ | **attachments** | [**Array&lt;CreateMessageRequestAttachmentsInner&gt;**](CreateMessageRequestAttachmentsInner.md) | A list of files attached to the message, and the tools they should be added to. | [optional] |
10
+ | **metadata** | **Object** | Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long. | [optional] |
11
11
 
12
12
  ## Example
13
13
 
@@ -17,7 +17,7 @@ require 'openapi_openai'
17
17
  instance = OpenApiOpenAIClient::CreateMessageRequest.new(
18
18
  role: null,
19
19
  content: null,
20
- file_ids: null,
20
+ attachments: null,
21
21
  metadata: null
22
22
  )
23
23
  ```
@@ -0,0 +1,20 @@
1
+ # OpenApiOpenAIClient::CreateMessageRequestAttachmentsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **file_id** | **String** | The ID of the file to attach to the message. | [optional] |
8
+ | **tools** | [**Array&lt;CreateMessageRequestAttachmentsInnerToolsInner&gt;**](CreateMessageRequestAttachmentsInnerToolsInner.md) | The tools to add this file to. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'openapi_openai'
14
+
15
+ instance = OpenApiOpenAIClient::CreateMessageRequestAttachmentsInner.new(
16
+ file_id: null,
17
+ tools: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,49 @@
1
+ # OpenApiOpenAIClient::CreateMessageRequestAttachmentsInnerToolsInner
2
+
3
+ ## Class instance methods
4
+
5
+ ### `openapi_one_of`
6
+
7
+ Returns the list of classes defined in oneOf.
8
+
9
+ #### Example
10
+
11
+ ```ruby
12
+ require 'openapi_openai'
13
+
14
+ OpenApiOpenAIClient::CreateMessageRequestAttachmentsInnerToolsInner.openapi_one_of
15
+ # =>
16
+ # [
17
+ # :'AssistantToolsCode',
18
+ # :'AssistantToolsFileSearchTypeOnly'
19
+ # ]
20
+ ```
21
+
22
+ ### build
23
+
24
+ Find the appropriate object from the `openapi_one_of` list and casts the data into it.
25
+
26
+ #### Example
27
+
28
+ ```ruby
29
+ require 'openapi_openai'
30
+
31
+ OpenApiOpenAIClient::CreateMessageRequestAttachmentsInnerToolsInner.build(data)
32
+ # => #<AssistantToolsCode:0x00007fdd4aab02a0>
33
+
34
+ OpenApiOpenAIClient::CreateMessageRequestAttachmentsInnerToolsInner.build(data_that_doesnt_match)
35
+ # => nil
36
+ ```
37
+
38
+ #### Parameters
39
+
40
+ | Name | Type | Description |
41
+ | ---- | ---- | ----------- |
42
+ | **data** | **Mixed** | data to be matched against the list of oneOf items |
43
+
44
+ #### Return type
45
+
46
+ - `AssistantToolsCode`
47
+ - `AssistantToolsFileSearchTypeOnly`
48
+ - `nil` (if no type matches)
49
+