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