openapi_openai 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +93 -24
- data/README.md +355 -32
- 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 +12 -6
- data/docs/AssistantObjectToolResources.md +20 -0
- data/docs/AssistantObjectToolResourcesCodeInterpreter.md +18 -0
- data/docs/AssistantObjectToolResourcesFileSearch.md +18 -0
- data/docs/AssistantObjectToolsInner.md +3 -3
- data/docs/AssistantToolsFileSearch.md +20 -0
- data/docs/AssistantToolsFileSearchFileSearch.md +20 -0
- data/docs/{AssistantToolsRetrieval.md → AssistantToolsFileSearchTypeOnly.md} +3 -3
- data/docs/AssistantsApi.md +45 -405
- data/docs/AssistantsApiResponseFormatOption.md +7 -3
- data/docs/AssistantsApiToolChoiceOption.md +3 -3
- data/docs/{AssistantsApiNamedToolChoice.md → AssistantsNamedToolChoice.md} +3 -3
- data/docs/{ChatCompletionNamedToolChoiceFunction.md → AssistantsNamedToolChoiceFunction.md} +2 -2
- data/docs/AudioApi.md +8 -8
- 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 +4 -4
- data/docs/ChatCompletionFunctions.md +1 -1
- data/docs/ChatCompletionNamedToolChoice.md +1 -1
- data/docs/ChatCompletionRequestAssistantMessage.md +5 -1
- data/docs/ChatCompletionRequestAssistantMessageAudio.md +18 -0
- data/docs/ChatCompletionRequestAssistantMessageContent.md +49 -0
- data/docs/ChatCompletionRequestAssistantMessageContentPart.md +49 -0
- data/docs/ChatCompletionRequestDeveloperMessage.md +22 -0
- data/docs/ChatCompletionRequestDeveloperMessageContent.md +49 -0
- data/docs/ChatCompletionRequestMessage.md +2 -0
- data/docs/ChatCompletionRequestMessageContentPartAudio.md +20 -0
- data/docs/ChatCompletionRequestMessageContentPartAudioInputAudio.md +20 -0
- data/docs/ChatCompletionRequestMessageContentPartImageImageUrl.md +1 -1
- data/docs/ChatCompletionRequestMessageContentPartRefusal.md +20 -0
- data/docs/ChatCompletionRequestSystemMessage.md +1 -1
- data/docs/ChatCompletionRequestSystemMessageContent.md +49 -0
- data/docs/ChatCompletionRequestToolMessage.md +1 -1
- data/docs/ChatCompletionRequestToolMessageContent.md +49 -0
- data/docs/ChatCompletionRequestUserMessageContent.md +3 -3
- data/docs/{ChatCompletionRequestMessageContentPart.md → ChatCompletionRequestUserMessageContentPart.md} +7 -5
- data/docs/ChatCompletionResponseMessage.md +6 -2
- data/docs/ChatCompletionResponseMessageAudio.md +24 -0
- data/docs/ChatCompletionResponseMessageFunctionCall.md +20 -0
- data/docs/ChatCompletionStreamOptions.md +18 -0
- data/docs/ChatCompletionStreamResponseDelta.md +3 -1
- data/docs/ChunkingStrategyRequestParam.md +49 -0
- data/docs/CompleteUploadRequest.md +20 -0
- data/docs/CompletionUsage.md +5 -1
- data/docs/CompletionUsageCompletionTokensDetails.md +24 -0
- data/docs/CompletionUsagePromptTokensDetails.md +20 -0
- data/docs/CostsResult.md +24 -0
- data/docs/CostsResultAmount.md +20 -0
- data/docs/CreateAssistantRequest.md +11 -5
- 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/CreateChatCompletionRequest.md +28 -8
- data/docs/CreateChatCompletionRequestAudio.md +20 -0
- data/docs/CreateChatCompletionRequestResponseFormat.md +41 -8
- data/docs/CreateChatCompletionResponse.md +2 -0
- data/docs/CreateChatCompletionResponseChoicesInnerLogprobs.md +3 -1
- data/docs/CreateChatCompletionStreamResponse.md +6 -2
- data/docs/CreateChatCompletionStreamResponseUsage.md +22 -0
- data/docs/CreateCompletionRequest.md +5 -3
- data/docs/CreateEmbeddingRequest.md +1 -1
- data/docs/CreateFineTuningJobRequest.md +5 -3
- data/docs/CreateFineTuningJobRequestIntegrationsInner.md +1 -1
- data/docs/CreateImageRequest.md +1 -1
- data/docs/CreateMessageRequest.md +4 -4
- 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/CreateModerationResponseResultsInner.md +3 -1
- data/docs/CreateModerationResponseResultsInnerCategories.md +4 -0
- data/docs/CreateModerationResponseResultsInnerCategoryAppliedInputTypes.md +42 -0
- data/docs/CreateModerationResponseResultsInnerCategoryScores.md +4 -0
- data/docs/CreateRunRequest.md +7 -3
- data/docs/CreateSpeechRequest.md +2 -2
- data/docs/CreateThreadAndRunRequest.md +8 -2
- data/docs/CreateThreadAndRunRequestToolResources.md +20 -0
- data/docs/CreateThreadAndRunRequestToolsInner.md +3 -3
- data/docs/CreateThreadRequest.md +3 -1
- data/docs/CreateThreadRequestToolResources.md +20 -0
- data/docs/CreateThreadRequestToolResourcesFileSearch.md +20 -0
- data/docs/CreateThreadRequestToolResourcesFileSearchVectorStoresInner.md +22 -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/DeleteVectorStoreFileResponse.md +22 -0
- data/docs/{DeleteAssistantFileResponse.md → DeleteVectorStoreResponse.md} +2 -2
- data/docs/FileSearchRankingOptions.md +20 -0
- data/docs/FilesApi.md +17 -11
- 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/FineTuneDPOMethodHyperparametersBeta.md +49 -0
- data/docs/FineTuneDPOMethodHyperparametersLearningRateMultiplier.md +49 -0
- data/docs/{FineTuningJobHyperparametersNEpochs.md → FineTuneDPOMethodHyperparametersNEpochs.md} +4 -4
- 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/FineTuningJob.md +5 -1
- data/docs/FineTuningJobEvent.md +10 -6
- data/docs/FineTuningJobHyperparameters.md +5 -1
- data/docs/FunctionObject.md +4 -2
- data/docs/ImagesApi.md +4 -4
- 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/ListAuditLogsEffectiveAtParameter.md +24 -0
- data/docs/ListAuditLogsResponse.md +26 -0
- data/docs/ListBatchesResponse.md +26 -0
- data/docs/ListFilesResponse.md +8 -2
- data/docs/{ListAssistantFilesResponse.md → ListVectorStoreFilesResponse.md} +3 -3
- data/docs/{ListMessageFilesResponse.md → ListVectorStoresResponse.md} +5 -5
- data/docs/MessageContentImageFileObjectImageFile.md +4 -2
- data/docs/MessageContentImageUrlObject.md +20 -0
- data/docs/MessageContentImageUrlObjectImageUrl.md +20 -0
- data/docs/MessageContentRefusalObject.md +20 -0
- data/docs/MessageContentTextAnnotationsFileCitationObjectFileCitation.md +1 -3
- data/docs/MessageDeltaContentImageFileObjectImageFile.md +4 -2
- data/docs/MessageDeltaContentImageUrlObject.md +22 -0
- data/docs/MessageDeltaContentImageUrlObjectImageUrl.md +20 -0
- data/docs/MessageDeltaContentRefusalObject.md +22 -0
- data/docs/MessageDeltaObjectDelta.md +1 -3
- data/docs/MessageDeltaObjectDeltaContentInner.md +4 -0
- data/docs/MessageObject.md +3 -3
- data/docs/MessageObjectContentInner.md +4 -0
- data/docs/MessageRequestContentTextObject.md +20 -0
- data/docs/ModelsApi.md +2 -2
- data/docs/ModerationsApi.md +4 -4
- data/docs/ModifyAssistantRequest.md +11 -5
- data/docs/ModifyAssistantRequestToolResources.md +20 -0
- data/docs/ModifyAssistantRequestToolResourcesCodeInterpreter.md +18 -0
- data/docs/ModifyAssistantRequestToolResourcesFileSearch.md +18 -0
- data/docs/ModifyMessageRequest.md +1 -1
- data/docs/ModifyRunRequest.md +1 -1
- data/docs/ModifyThreadRequest.md +3 -1
- data/docs/ModifyThreadRequestToolResources.md +20 -0
- data/docs/ModifyThreadRequestToolResourcesFileSearch.md +18 -0
- data/docs/OpenAIFile.md +1 -1
- 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/{CreateFineTuningJobRequestIntegrationsInnerType.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/RunObject.md +6 -4
- data/docs/{RunStepDeltaStepDetailsToolCallsRetrievalObject.md → RunStepDeltaStepDetailsToolCallsFileSearchObject.md} +5 -5
- data/docs/RunStepDeltaStepDetailsToolCallsObject.md +1 -1
- data/docs/RunStepDeltaStepDetailsToolCallsObjectToolCallsInner.md +3 -3
- 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/RunStepDetailsToolCallsObject.md +1 -1
- data/docs/RunStepDetailsToolCallsObjectToolCallsInner.md +3 -3
- data/docs/RunStepObject.md +1 -1
- data/docs/RunStreamEvent.md +3 -1
- data/docs/{ThreadStreamEventOneOf.md → RunStreamEventOneOf9.md} +3 -3
- 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/ThreadObject.md +3 -1
- data/docs/ThreadStreamEvent.md +12 -37
- data/docs/TruncationObject.md +1 -1
- 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/UserDeleteResponse.md +22 -0
- 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 +76 -427
- data/lib/openapi_openai/api/audio_api.rb +13 -17
- 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 +5 -5
- data/lib/openapi_openai/api/completions_api.rb +3 -3
- data/lib/openapi_openai/api/default_api.rb +286 -0
- data/lib/openapi_openai/api/embeddings_api.rb +3 -3
- data/lib/openapi_openai/api/files_api.rb +27 -14
- data/lib/openapi_openai/api/fine_tuning_api.rb +8 -8
- data/lib/openapi_openai/api/images_api.rb +9 -9
- data/lib/openapi_openai/api/invites_api.rb +271 -0
- data/lib/openapi_openai/api/models_api.rb +5 -5
- data/lib/openapi_openai/api/moderations_api.rb +5 -5
- 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 +17 -14
- data/lib/openapi_openai/api_error.rb +2 -2
- data/lib/openapi_openai/api_model_base.rb +88 -0
- data/lib/openapi_openai/configuration.rb +12 -2
- 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 +129 -111
- 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 +6 -7
- data/lib/openapi_openai/models/assistant_stream_event.rb +4 -5
- data/lib/openapi_openai/models/assistant_tools_code.rb +12 -79
- 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 +22 -79
- data/lib/openapi_openai/models/assistants_api_response_format_option.rb +8 -7
- data/lib/openapi_openai/models/assistants_api_tool_choice_option.rb +6 -7
- data/lib/openapi_openai/models/{assistants_api_named_tool_choice.rb → assistants_named_tool_choice.rb} +16 -83
- 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 +22 -79
- data/lib/openapi_openai/models/chat_completion_functions.rb +23 -80
- data/lib/openapi_openai/models/chat_completion_message_tool_call.rb +32 -79
- data/lib/openapi_openai/models/chat_completion_message_tool_call_chunk.rb +22 -79
- data/lib/openapi_openai/models/chat_completion_message_tool_call_chunk_function.rb +12 -79
- data/lib/openapi_openai/models/chat_completion_message_tool_call_function.rb +32 -79
- data/lib/openapi_openai/models/chat_completion_named_tool_choice.rb +23 -80
- data/lib/openapi_openai/models/chat_completion_request_assistant_message.rb +37 -82
- 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 +32 -79
- 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/chat_completion_request_function_message.rb +22 -79
- data/lib/openapi_openai/models/chat_completion_request_message.rb +5 -5
- 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 +23 -79
- data/lib/openapi_openai/models/chat_completion_request_message_content_part_image_image_url.rb +23 -80
- data/lib/openapi_openai/models/chat_completion_request_message_content_part_refusal.rb +216 -0
- data/lib/openapi_openai/models/chat_completion_request_message_content_part_text.rb +23 -79
- data/lib/openapi_openai/models/chat_completion_request_system_message.rb +24 -81
- 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 +33 -81
- 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 +23 -79
- data/lib/openapi_openai/models/chat_completion_request_user_message_content.rb +5 -6
- data/lib/openapi_openai/models/{chat_completion_request_message_content_part.rb → chat_completion_request_user_message_content_part.rb} +6 -6
- data/lib/openapi_openai/models/chat_completion_response_message.rb +39 -83
- data/lib/openapi_openai/models/chat_completion_response_message_audio.rb +247 -0
- data/lib/openapi_openai/models/{chat_completion_named_tool_choice_function.rb → chat_completion_response_message_function_call.rb} +52 -81
- data/lib/openapi_openai/models/chat_completion_role.rb +2 -2
- data/lib/openapi_openai/models/chat_completion_stream_options.rb +149 -0
- data/lib/openapi_openai/models/chat_completion_stream_response_delta.rb +27 -83
- data/lib/openapi_openai/models/chat_completion_stream_response_delta_function_call.rb +12 -79
- data/lib/openapi_openai/models/chat_completion_token_logprob.rb +42 -79
- data/lib/openapi_openai/models/chat_completion_token_logprob_top_logprobs_inner.rb +32 -79
- data/lib/openapi_openai/models/chat_completion_tool.rb +22 -79
- data/lib/openapi_openai/models/chat_completion_tool_choice_option.rb +5 -6
- 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 +64 -83
- 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 +110 -105
- data/lib/openapi_openai/models/create_assistant_request_model.rb +5 -6
- 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_chat_completion_function_response.rb +52 -79
- data/lib/openapi_openai/models/create_chat_completion_function_response_choices_inner.rb +32 -79
- data/lib/openapi_openai/models/create_chat_completion_request.rb +204 -98
- 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 +5 -6
- data/lib/openapi_openai/models/create_chat_completion_request_model.rb +5 -6
- data/lib/openapi_openai/models/create_chat_completion_request_response_format.rb +77 -223
- data/lib/openapi_openai/models/create_chat_completion_request_stop.rb +4 -5
- data/lib/openapi_openai/models/create_chat_completion_response.rb +76 -80
- data/lib/openapi_openai/models/create_chat_completion_response_choices_inner.rb +32 -79
- data/lib/openapi_openai/models/create_chat_completion_response_choices_inner_logprobs.rb +32 -84
- data/lib/openapi_openai/models/create_chat_completion_stream_response.rb +90 -84
- data/lib/openapi_openai/models/create_chat_completion_stream_response_choices_inner.rb +32 -79
- data/lib/openapi_openai/models/create_chat_completion_stream_response_usage.rb +220 -0
- data/lib/openapi_openai/models/create_completion_request.rb +46 -93
- data/lib/openapi_openai/models/create_completion_request_model.rb +5 -6
- data/lib/openapi_openai/models/create_completion_request_prompt.rb +4 -5
- data/lib/openapi_openai/models/create_completion_request_stop.rb +4 -5
- data/lib/openapi_openai/models/create_completion_response.rb +52 -79
- data/lib/openapi_openai/models/create_completion_response_choices_inner.rb +32 -79
- data/lib/openapi_openai/models/create_completion_response_choices_inner_logprobs.rb +12 -79
- data/lib/openapi_openai/models/create_embedding_request.rb +33 -80
- data/lib/openapi_openai/models/create_embedding_request_input.rb +4 -5
- data/lib/openapi_openai/models/create_embedding_request_model.rb +5 -6
- data/lib/openapi_openai/models/create_embedding_response.rb +42 -79
- data/lib/openapi_openai/models/create_embedding_response_usage.rb +32 -79
- data/lib/openapi_openai/models/create_fine_tuning_job_request.rb +55 -93
- data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters.rb +13 -80
- data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters_batch_size.rb +4 -5
- data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters_learning_rate_multiplier.rb +4 -5
- data/lib/openapi_openai/models/create_fine_tuning_job_request_hyperparameters_n_epochs.rb +4 -5
- data/lib/openapi_openai/models/create_fine_tuning_job_request_integrations_inner.rb +57 -80
- data/lib/openapi_openai/models/create_fine_tuning_job_request_integrations_inner_wandb.rb +22 -79
- data/lib/openapi_openai/models/create_fine_tuning_job_request_model.rb +5 -6
- data/lib/openapi_openai/models/create_image_edit_request_model.rb +4 -5
- data/lib/openapi_openai/models/create_image_request.rb +23 -80
- data/lib/openapi_openai/models/create_image_request_model.rb +4 -5
- data/lib/openapi_openai/models/create_message_request.rb +24 -137
- 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 +22 -79
- data/lib/openapi_openai/models/create_moderation_request_input.rb +6 -6
- 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_moderation_request_input_one_of_inner_one_of1.rb +217 -0
- 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 +5 -6
- data/lib/openapi_openai/models/create_moderation_response.rb +42 -79
- data/lib/openapi_openai/models/create_moderation_response_results_inner.rb +72 -83
- data/lib/openapi_openai/models/create_moderation_response_results_inner_categories.rb +177 -80
- 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 +177 -80
- data/lib/openapi_openai/models/create_run_request.rb +75 -83
- data/lib/openapi_openai/models/create_run_request_model.rb +4 -5
- data/lib/openapi_openai/models/create_speech_request.rb +29 -86
- data/lib/openapi_openai/models/create_speech_request_model.rb +5 -6
- data/lib/openapi_openai/models/create_thread_and_run_request.rb +84 -82
- 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 +6 -7
- data/lib/openapi_openai/models/create_thread_request.rb +24 -81
- 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 +4 -5
- data/lib/openapi_openai/models/create_transcription_request_model.rb +4 -5
- data/lib/openapi_openai/models/create_transcription_response_json.rb +22 -79
- data/lib/openapi_openai/models/create_transcription_response_verbose_json.rb +42 -79
- data/lib/openapi_openai/models/create_translation200_response.rb +4 -5
- data/lib/openapi_openai/models/create_translation_response_json.rb +22 -79
- data/lib/openapi_openai/models/create_translation_response_verbose_json.rb +42 -79
- 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_assistant_file_request.rb → create_vector_store_file_request.rb} +37 -85
- 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 +32 -79
- data/lib/openapi_openai/models/delete_file_response.rb +32 -79
- data/lib/openapi_openai/models/delete_message_response.rb +32 -79
- data/lib/openapi_openai/models/delete_model_response.rb +42 -79
- data/lib/openapi_openai/models/delete_thread_response.rb +32 -79
- data/lib/openapi_openai/models/{delete_assistant_file_response.rb → delete_vector_store_file_response.rb} +35 -83
- data/lib/openapi_openai/models/delete_vector_store_response.rb +240 -0
- data/lib/openapi_openai/models/done_event.rb +12 -79
- data/lib/openapi_openai/models/embedding.rb +32 -79
- data/lib/openapi_openai/models/error.rb +32 -79
- data/lib/openapi_openai/models/error_event.rb +23 -80
- data/lib/openapi_openai/models/error_response.rb +22 -79
- 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_tuning_job_hyperparameters_n_epochs.rb → fine_tune_dpo_method_hyperparameters_batch_size.rb} +6 -7
- 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_fine_tuning_job_request_integrations_inner_type.rb → fine_tune_dpo_method_hyperparameters_n_epochs.rb} +7 -7
- 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 +22 -79
- data/lib/openapi_openai/models/fine_tuning_job.rb +116 -83
- data/lib/openapi_openai/models/fine_tuning_job_checkpoint.rb +72 -79
- data/lib/openapi_openai/models/fine_tuning_job_checkpoint_metrics.rb +12 -79
- data/lib/openapi_openai/models/fine_tuning_job_error.rb +32 -79
- data/lib/openapi_openai/models/fine_tuning_job_event.rb +101 -101
- data/lib/openapi_openai/models/fine_tuning_job_hyperparameters.rb +33 -89
- data/lib/openapi_openai/models/fine_tuning_job_integrations_inner.rb +4 -5
- data/lib/openapi_openai/models/function_object.rb +40 -84
- data/lib/openapi_openai/models/image.rb +12 -79
- data/lib/openapi_openai/models/images_response.rb +32 -79
- 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 +62 -79
- 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 +114 -117
- data/lib/openapi_openai/models/list_fine_tuning_job_checkpoints_response.rb +32 -79
- data/lib/openapi_openai/models/list_fine_tuning_job_events_response.rb +22 -79
- data/lib/openapi_openai/models/list_messages_response.rb +62 -79
- data/lib/openapi_openai/models/list_models_response.rb +22 -79
- data/lib/openapi_openai/models/list_paginated_fine_tuning_jobs_response.rb +32 -79
- data/lib/openapi_openai/models/list_run_steps_response.rb +62 -79
- data/lib/openapi_openai/models/list_runs_response.rb +62 -79
- data/lib/openapi_openai/models/list_threads_response.rb +62 -79
- 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 +22 -79
- data/lib/openapi_openai/models/message_content_image_file_object_image_file.rb +73 -84
- 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 +33 -80
- data/lib/openapi_openai/models/message_content_text_annotations_file_citation_object_file_citation.rb +26 -100
- data/lib/openapi_openai/models/message_content_text_annotations_file_path_object.rb +32 -79
- data/lib/openapi_openai/models/message_content_text_annotations_file_path_object_file_path.rb +22 -79
- data/lib/openapi_openai/models/message_content_text_object.rb +22 -79
- data/lib/openapi_openai/models/message_content_text_object_text.rb +32 -79
- data/lib/openapi_openai/models/message_content_text_object_text_annotations_inner.rb +4 -5
- data/lib/openapi_openai/models/message_delta_content_image_file_object.rb +22 -79
- data/lib/openapi_openai/models/message_delta_content_image_file_object_image_file.rb +63 -84
- 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 +23 -80
- data/lib/openapi_openai/models/message_delta_content_text_annotations_file_citation_object_file_citation.rb +12 -79
- data/lib/openapi_openai/models/message_delta_content_text_annotations_file_path_object.rb +22 -79
- data/lib/openapi_openai/models/message_delta_content_text_annotations_file_path_object_file_path.rb +12 -79
- data/lib/openapi_openai/models/message_delta_content_text_object.rb +22 -79
- data/lib/openapi_openai/models/message_delta_content_text_object_text.rb +12 -79
- data/lib/openapi_openai/models/message_delta_content_text_object_text_annotations_inner.rb +4 -5
- data/lib/openapi_openai/models/message_delta_object.rb +32 -79
- data/lib/openapi_openai/models/message_delta_object_delta.rb +16 -114
- data/lib/openapi_openai/models/message_delta_object_delta_content_inner.rb +6 -5
- data/lib/openapi_openai/models/message_object.rb +59 -109
- data/lib/openapi_openai/models/message_object_content_inner.rb +6 -5
- data/lib/openapi_openai/models/message_object_incomplete_details.rb +12 -79
- data/lib/openapi_openai/models/message_request_content_text_object.rb +217 -0
- data/lib/openapi_openai/models/message_stream_event.rb +4 -5
- data/lib/openapi_openai/models/message_stream_event_one_of.rb +22 -79
- data/lib/openapi_openai/models/message_stream_event_one_of1.rb +22 -79
- data/lib/openapi_openai/models/message_stream_event_one_of2.rb +22 -79
- data/lib/openapi_openai/models/message_stream_event_one_of3.rb +22 -79
- data/lib/openapi_openai/models/message_stream_event_one_of4.rb +22 -79
- data/lib/openapi_openai/models/model.rb +42 -79
- data/lib/openapi_openai/models/modify_assistant_request.rb +100 -105
- 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 +13 -80
- data/lib/openapi_openai/models/modify_run_request.rb +13 -80
- data/lib/openapi_openai/models/modify_thread_request.rb +24 -81
- 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 +55 -82
- 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/{assistant_file_object.rb → project.rb} +101 -98
- 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/{list_assistant_files_response.rb → project_list_response.rb} +88 -81
- 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/{message_file_object.rb → project_service_account_create_response.rb} +121 -108
- 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/{assistant_tools_retrieval.rb → realtime_server_event_input_audio_buffer_cleared.rb} +45 -84
- 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/{assistants_api_response_format.rb → response_format_text.rb} +22 -85
- data/lib/openapi_openai/models/run_completion_usage.rb +42 -79
- data/lib/openapi_openai/models/run_object.rb +145 -103
- data/lib/openapi_openai/models/run_object_incomplete_details.rb +12 -79
- data/lib/openapi_openai/models/run_object_last_error.rb +22 -79
- data/lib/openapi_openai/models/run_object_required_action.rb +22 -79
- data/lib/openapi_openai/models/run_object_required_action_submit_tool_outputs.rb +22 -79
- data/lib/openapi_openai/models/run_step_completion_usage.rb +42 -79
- data/lib/openapi_openai/models/run_step_delta_object.rb +32 -79
- data/lib/openapi_openai/models/run_step_delta_object_delta.rb +12 -79
- data/lib/openapi_openai/models/run_step_delta_object_delta_step_details.rb +4 -5
- data/lib/openapi_openai/models/run_step_delta_step_details_message_creation_object.rb +12 -79
- data/lib/openapi_openai/models/run_step_delta_step_details_message_creation_object_message_creation.rb +12 -79
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object.rb +22 -79
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter.rb +12 -79
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_outputs_inner.rb +4 -5
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_image_object.rb +22 -79
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_image_object_image.rb +12 -79
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_code_output_logs_object.rb +22 -79
- data/lib/openapi_openai/models/{run_step_delta_step_details_tool_calls_retrieval_object.rb → run_step_delta_step_details_tool_calls_file_search_object.rb} +50 -90
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_function_object.rb +22 -79
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_function_object_function.rb +12 -79
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_object.rb +13 -80
- data/lib/openapi_openai/models/run_step_delta_step_details_tool_calls_object_tool_calls_inner.rb +6 -7
- data/lib/openapi_openai/models/run_step_details_message_creation_object.rb +22 -79
- data/lib/openapi_openai/models/run_step_details_message_creation_object_message_creation.rb +22 -79
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_object.rb +32 -79
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_object_code_interpreter.rb +32 -79
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_object_code_interpreter_outputs_inner.rb +4 -5
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_image_object.rb +22 -79
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_image_object_image.rb +22 -79
- data/lib/openapi_openai/models/run_step_details_tool_calls_code_output_logs_object.rb +22 -79
- data/lib/openapi_openai/models/{run_step_details_tool_calls_retrieval_object.rb → run_step_details_tool_calls_file_search_object.rb} +47 -95
- 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 +32 -79
- data/lib/openapi_openai/models/run_step_details_tool_calls_function_object_function.rb +32 -79
- data/lib/openapi_openai/models/run_step_details_tool_calls_object.rb +23 -80
- data/lib/openapi_openai/models/run_step_details_tool_calls_object_tool_calls_inner.rb +6 -7
- data/lib/openapi_openai/models/run_step_object.rb +73 -80
- data/lib/openapi_openai/models/run_step_object_last_error.rb +22 -79
- data/lib/openapi_openai/models/run_step_object_step_details.rb +4 -5
- data/lib/openapi_openai/models/run_step_stream_event.rb +4 -5
- data/lib/openapi_openai/models/run_step_stream_event_one_of.rb +23 -80
- data/lib/openapi_openai/models/run_step_stream_event_one_of1.rb +23 -80
- data/lib/openapi_openai/models/run_step_stream_event_one_of2.rb +23 -80
- data/lib/openapi_openai/models/run_step_stream_event_one_of3.rb +23 -80
- data/lib/openapi_openai/models/run_step_stream_event_one_of4.rb +23 -80
- data/lib/openapi_openai/models/run_step_stream_event_one_of5.rb +23 -80
- data/lib/openapi_openai/models/run_step_stream_event_one_of6.rb +23 -80
- data/lib/openapi_openai/models/run_stream_event.rb +6 -6
- data/lib/openapi_openai/models/run_stream_event_one_of.rb +22 -79
- data/lib/openapi_openai/models/run_stream_event_one_of1.rb +22 -79
- data/lib/openapi_openai/models/run_stream_event_one_of2.rb +22 -79
- data/lib/openapi_openai/models/run_stream_event_one_of3.rb +22 -79
- data/lib/openapi_openai/models/run_stream_event_one_of4.rb +22 -79
- data/lib/openapi_openai/models/run_stream_event_one_of5.rb +25 -82
- data/lib/openapi_openai/models/run_stream_event_one_of6.rb +25 -82
- data/lib/openapi_openai/models/run_stream_event_one_of7.rb +25 -82
- data/lib/openapi_openai/models/run_stream_event_one_of8.rb +25 -82
- data/lib/openapi_openai/models/{thread_stream_event_one_of.rb → run_stream_event_one_of9.rb} +27 -84
- data/lib/openapi_openai/models/run_tool_call_object.rb +32 -79
- data/lib/openapi_openai/models/run_tool_call_object_function.rb +32 -79
- 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 +22 -79
- data/lib/openapi_openai/models/submit_tool_outputs_run_request_tool_outputs_inner.rb +12 -79
- data/lib/openapi_openai/models/thread_object.rb +46 -81
- data/lib/openapi_openai/models/thread_stream_event.rb +197 -76
- data/lib/openapi_openai/models/transcription_segment.rb +112 -79
- data/lib/openapi_openai/models/transcription_word.rb +42 -79
- data/lib/openapi_openai/models/truncation_object.rb +20 -79
- 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/{list_message_files_response.rb → user_list_response.rb} +88 -81
- 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 +3 -3
- data/lib/openapi_openai.rb +294 -18
- data/openapi_openai.gemspec +2 -2
- data/spec/api/assistants_api_spec.rb +15 -80
- data/spec/api/audio_api_spec.rb +6 -6
- 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 +3 -3
- data/spec/api/completions_api_spec.rb +2 -2
- data/spec/api/default_api_spec.rb +85 -0
- data/spec/api/embeddings_api_spec.rb +2 -2
- data/spec/api/files_api_spec.rb +8 -5
- data/spec/api/fine_tuning_api_spec.rb +2 -2
- data/spec/api/images_api_spec.rb +4 -4
- data/spec/api/invites_api_spec.rb +80 -0
- data/spec/api/models_api_spec.rb +2 -2
- data/spec/api/moderations_api_spec.rb +3 -3
- 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/{fine_tuning_job_hyperparameters_n_epochs_spec.rb → array_of_content_parts_inner_spec.rb} +4 -4
- data/spec/models/assistant_object_spec.rb +22 -4
- 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 +2 -2
- data/spec/models/assistant_stream_event_spec.rb +2 -2
- data/spec/models/assistant_tools_code_spec.rb +3 -3
- 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 +3 -3
- data/spec/models/assistants_api_response_format_option_spec.rb +2 -2
- data/spec/models/assistants_api_tool_choice_option_spec.rb +2 -2
- data/spec/models/assistants_named_tool_choice_function_spec.rb +36 -0
- data/spec/models/{assistants_api_named_tool_choice_spec.rb → assistants_named_tool_choice_spec.rb} +9 -9
- 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/audit_log_user_added_spec.rb +42 -0
- 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/{assistants_api_response_format_spec.rb → auto_chunking_strategy_request_param_spec.rb} +9 -9
- data/spec/models/{assistant_tools_retrieval_spec.rb → auto_chunking_strategy_spec.rb} +9 -9
- data/spec/models/batch_errors_data_inner_spec.rb +54 -0
- data/spec/models/batch_errors_spec.rb +42 -0
- 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/chat_completion_function_call_option_spec.rb +3 -3
- data/spec/models/chat_completion_functions_spec.rb +3 -3
- data/spec/models/chat_completion_message_tool_call_chunk_function_spec.rb +3 -3
- data/spec/models/chat_completion_message_tool_call_chunk_spec.rb +3 -3
- data/spec/models/chat_completion_message_tool_call_function_spec.rb +3 -3
- data/spec/models/chat_completion_message_tool_call_spec.rb +3 -3
- data/spec/models/chat_completion_named_tool_choice_spec.rb +3 -3
- data/spec/models/{chat_completion_named_tool_choice_function_spec.rb → chat_completion_request_assistant_message_audio_spec.rb} +9 -9
- data/spec/models/chat_completion_request_assistant_message_content_part_spec.rb +32 -0
- data/spec/models/{create_fine_tuning_job_request_integrations_inner_type_spec.rb → chat_completion_request_assistant_message_content_spec.rb} +4 -4
- data/spec/models/chat_completion_request_assistant_message_function_call_spec.rb +3 -3
- data/spec/models/chat_completion_request_assistant_message_spec.rb +15 -3
- 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 +3 -3
- 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 +3 -3
- data/spec/models/chat_completion_request_message_content_part_image_spec.rb +3 -3
- 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 +3 -3
- data/spec/models/chat_completion_request_message_spec.rb +2 -2
- data/spec/models/chat_completion_request_system_message_content_spec.rb +32 -0
- data/spec/models/chat_completion_request_system_message_spec.rb +3 -3
- data/spec/models/chat_completion_request_tool_message_content_spec.rb +32 -0
- data/spec/models/chat_completion_request_tool_message_spec.rb +3 -3
- 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 +2 -2
- data/spec/models/chat_completion_request_user_message_spec.rb +3 -3
- 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 +15 -3
- data/spec/models/chat_completion_role_spec.rb +3 -3
- data/spec/models/{create_assistant_file_request_spec.rb → chat_completion_stream_options_spec.rb} +9 -9
- data/spec/models/chat_completion_stream_response_delta_function_call_spec.rb +3 -3
- data/spec/models/chat_completion_stream_response_delta_spec.rb +9 -3
- data/spec/models/chat_completion_token_logprob_spec.rb +3 -3
- data/spec/models/chat_completion_token_logprob_top_logprobs_inner_spec.rb +3 -3
- data/spec/models/chat_completion_tool_choice_option_spec.rb +2 -2
- data/spec/models/chat_completion_tool_spec.rb +3 -3
- data/spec/models/{chat_completion_request_message_content_part_spec.rb → chunking_strategy_request_param_spec.rb} +4 -4
- 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/completion_usage_spec.rb +15 -3
- data/spec/models/costs_result_amount_spec.rb +42 -0
- data/spec/models/{assistant_file_object_spec.rb → costs_result_spec.rb} +16 -16
- data/spec/models/create_assistant_request_model_spec.rb +2 -2
- data/spec/models/create_assistant_request_spec.rb +22 -4
- 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 +3 -3
- data/spec/models/create_chat_completion_function_response_spec.rb +3 -3
- data/spec/models/create_chat_completion_request_audio_spec.rb +50 -0
- data/spec/models/create_chat_completion_request_function_call_spec.rb +2 -2
- data/spec/models/create_chat_completion_request_model_spec.rb +2 -2
- data/spec/models/create_chat_completion_request_response_format_spec.rb +7 -15
- data/spec/models/create_chat_completion_request_spec.rb +75 -3
- data/spec/models/create_chat_completion_request_stop_spec.rb +2 -2
- data/spec/models/create_chat_completion_response_choices_inner_logprobs_spec.rb +9 -3
- data/spec/models/create_chat_completion_response_choices_inner_spec.rb +3 -3
- data/spec/models/create_chat_completion_response_spec.rb +13 -3
- data/spec/models/create_chat_completion_stream_response_choices_inner_spec.rb +3 -3
- data/spec/models/create_chat_completion_stream_response_spec.rb +19 -3
- data/spec/models/create_chat_completion_stream_response_usage_spec.rb +48 -0
- data/spec/models/create_completion_request_model_spec.rb +2 -2
- data/spec/models/create_completion_request_prompt_spec.rb +2 -2
- data/spec/models/create_completion_request_spec.rb +9 -3
- data/spec/models/create_completion_request_stop_spec.rb +2 -2
- data/spec/models/create_completion_response_choices_inner_logprobs_spec.rb +3 -3
- data/spec/models/create_completion_response_choices_inner_spec.rb +3 -3
- data/spec/models/create_completion_response_spec.rb +3 -3
- data/spec/models/create_embedding_request_input_spec.rb +2 -2
- data/spec/models/create_embedding_request_model_spec.rb +2 -2
- data/spec/models/create_embedding_request_spec.rb +3 -3
- data/spec/models/create_embedding_response_spec.rb +3 -3
- data/spec/models/create_embedding_response_usage_spec.rb +3 -3
- data/spec/models/create_fine_tuning_job_request_hyperparameters_batch_size_spec.rb +2 -2
- data/spec/models/create_fine_tuning_job_request_hyperparameters_learning_rate_multiplier_spec.rb +2 -2
- data/spec/models/create_fine_tuning_job_request_hyperparameters_n_epochs_spec.rb +2 -2
- data/spec/models/create_fine_tuning_job_request_hyperparameters_spec.rb +3 -3
- data/spec/models/create_fine_tuning_job_request_integrations_inner_spec.rb +7 -3
- data/spec/models/create_fine_tuning_job_request_integrations_inner_wandb_spec.rb +3 -3
- data/spec/models/create_fine_tuning_job_request_model_spec.rb +2 -2
- data/spec/models/create_fine_tuning_job_request_spec.rb +9 -3
- data/spec/models/create_image_edit_request_model_spec.rb +2 -2
- data/spec/models/create_image_request_model_spec.rb +2 -2
- data/spec/models/create_image_request_spec.rb +3 -3
- 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 +4 -4
- 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 +2 -2
- data/spec/models/create_moderation_request_model_spec.rb +2 -2
- data/spec/models/create_moderation_request_spec.rb +3 -3
- data/spec/models/create_moderation_response_results_inner_categories_spec.rb +15 -3
- 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 +15 -3
- data/spec/models/create_moderation_response_results_inner_spec.rb +9 -3
- data/spec/models/create_moderation_response_spec.rb +3 -3
- data/spec/models/create_run_request_model_spec.rb +2 -2
- data/spec/models/create_run_request_spec.rb +15 -3
- data/spec/models/create_speech_request_model_spec.rb +2 -2
- data/spec/models/create_speech_request_spec.rb +3 -3
- data/spec/models/create_thread_and_run_request_spec.rb +21 -3
- 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 +2 -2
- data/spec/models/create_thread_request_spec.rb +9 -3
- 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 +2 -2
- data/spec/models/create_transcription_request_model_spec.rb +2 -2
- data/spec/models/create_transcription_response_json_spec.rb +3 -3
- data/spec/models/create_transcription_response_verbose_json_spec.rb +3 -3
- data/spec/models/create_translation200_response_spec.rb +2 -2
- data/spec/models/create_translation_response_json_spec.rb +3 -3
- data/spec/models/create_translation_response_verbose_json_spec.rb +3 -3
- 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 +3 -3
- data/spec/models/delete_file_response_spec.rb +3 -3
- data/spec/models/delete_message_response_spec.rb +3 -3
- data/spec/models/delete_model_response_spec.rb +3 -3
- data/spec/models/delete_thread_response_spec.rb +3 -3
- data/spec/models/delete_vector_store_file_response_spec.rb +52 -0
- data/spec/models/{delete_assistant_file_response_spec.rb → delete_vector_store_response_spec.rb} +9 -9
- data/spec/models/done_event_spec.rb +3 -3
- data/spec/models/embedding_spec.rb +3 -3
- data/spec/models/error_event_spec.rb +3 -3
- data/spec/models/error_response_spec.rb +3 -3
- data/spec/models/error_spec.rb +3 -3
- 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 +3 -3
- data/spec/models/fine_tuning_job_checkpoint_metrics_spec.rb +3 -3
- data/spec/models/fine_tuning_job_checkpoint_spec.rb +3 -3
- data/spec/models/fine_tuning_job_error_spec.rb +3 -3
- data/spec/models/fine_tuning_job_event_spec.rb +22 -6
- data/spec/models/fine_tuning_job_hyperparameters_spec.rb +15 -3
- data/spec/models/fine_tuning_job_integrations_inner_spec.rb +2 -2
- data/spec/models/fine_tuning_job_spec.rb +15 -3
- data/spec/models/function_object_spec.rb +9 -3
- data/spec/models/image_spec.rb +3 -3
- data/spec/models/images_response_spec.rb +3 -3
- 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 +3 -3
- 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 -8
- data/spec/models/list_fine_tuning_job_checkpoints_response_spec.rb +3 -3
- data/spec/models/list_fine_tuning_job_events_response_spec.rb +3 -3
- data/spec/models/list_messages_response_spec.rb +3 -3
- data/spec/models/list_models_response_spec.rb +3 -3
- data/spec/models/list_paginated_fine_tuning_jobs_response_spec.rb +3 -3
- data/spec/models/list_run_steps_response_spec.rb +3 -3
- data/spec/models/list_runs_response_spec.rb +3 -3
- data/spec/models/list_threads_response_spec.rb +3 -3
- data/spec/models/{list_assistant_files_response_spec.rb → list_vector_store_files_response_spec.rb} +8 -8
- data/spec/models/{list_message_files_response_spec.rb → list_vector_stores_response_spec.rb} +8 -8
- data/spec/models/message_content_image_file_object_image_file_spec.rb +13 -3
- data/spec/models/message_content_image_file_object_spec.rb +3 -3
- 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 +3 -9
- data/spec/models/message_content_text_annotations_file_citation_object_spec.rb +3 -3
- data/spec/models/message_content_text_annotations_file_path_object_file_path_spec.rb +3 -3
- data/spec/models/message_content_text_annotations_file_path_object_spec.rb +3 -3
- data/spec/models/message_content_text_object_spec.rb +3 -3
- data/spec/models/message_content_text_object_text_annotations_inner_spec.rb +2 -2
- data/spec/models/message_content_text_object_text_spec.rb +3 -3
- data/spec/models/message_delta_content_image_file_object_image_file_spec.rb +13 -3
- data/spec/models/message_delta_content_image_file_object_spec.rb +3 -3
- 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 +3 -3
- data/spec/models/message_delta_content_text_annotations_file_citation_object_spec.rb +3 -3
- data/spec/models/message_delta_content_text_annotations_file_path_object_file_path_spec.rb +3 -3
- data/spec/models/message_delta_content_text_annotations_file_path_object_spec.rb +3 -3
- data/spec/models/message_delta_content_text_object_spec.rb +3 -3
- data/spec/models/message_delta_content_text_object_text_annotations_inner_spec.rb +2 -2
- data/spec/models/message_delta_content_text_object_text_spec.rb +3 -3
- data/spec/models/message_delta_object_delta_content_inner_spec.rb +2 -2
- data/spec/models/message_delta_object_delta_spec.rb +3 -9
- data/spec/models/message_delta_object_spec.rb +3 -3
- data/spec/models/message_object_content_inner_spec.rb +2 -2
- data/spec/models/message_object_incomplete_details_spec.rb +3 -3
- data/spec/models/message_object_spec.rb +4 -4
- data/spec/models/message_request_content_text_object_spec.rb +46 -0
- data/spec/models/message_stream_event_one_of1_spec.rb +3 -3
- data/spec/models/message_stream_event_one_of2_spec.rb +3 -3
- data/spec/models/message_stream_event_one_of3_spec.rb +3 -3
- data/spec/models/message_stream_event_one_of4_spec.rb +3 -3
- data/spec/models/message_stream_event_one_of_spec.rb +3 -3
- data/spec/models/message_stream_event_spec.rb +2 -2
- data/spec/models/model_spec.rb +3 -3
- data/spec/models/modify_assistant_request_spec.rb +22 -4
- 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 +3 -3
- data/spec/models/modify_run_request_spec.rb +3 -3
- data/spec/models/modify_thread_request_spec.rb +9 -3
- 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 +4 -4
- 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/run_completion_usage_spec.rb +3 -3
- data/spec/models/run_object_incomplete_details_spec.rb +3 -3
- data/spec/models/run_object_last_error_spec.rb +3 -3
- data/spec/models/run_object_required_action_spec.rb +3 -3
- data/spec/models/run_object_required_action_submit_tool_outputs_spec.rb +3 -3
- data/spec/models/run_object_spec.rb +14 -8
- data/spec/models/run_step_completion_usage_spec.rb +3 -3
- data/spec/models/run_step_delta_object_delta_spec.rb +3 -3
- data/spec/models/run_step_delta_object_delta_step_details_spec.rb +2 -2
- data/spec/models/run_step_delta_object_spec.rb +3 -3
- data/spec/models/run_step_delta_step_details_message_creation_object_message_creation_spec.rb +3 -3
- data/spec/models/run_step_delta_step_details_message_creation_object_spec.rb +3 -3
- data/spec/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_outputs_inner_spec.rb +2 -2
- data/spec/models/run_step_delta_step_details_tool_calls_code_object_code_interpreter_spec.rb +3 -3
- data/spec/models/run_step_delta_step_details_tool_calls_code_object_spec.rb +3 -3
- data/spec/models/run_step_delta_step_details_tool_calls_code_output_image_object_image_spec.rb +3 -3
- data/spec/models/run_step_delta_step_details_tool_calls_code_output_image_object_spec.rb +3 -3
- data/spec/models/run_step_delta_step_details_tool_calls_code_output_logs_object_spec.rb +3 -3
- data/spec/models/{run_step_delta_step_details_tool_calls_retrieval_object_spec.rb → run_step_delta_step_details_tool_calls_file_search_object_spec.rb} +10 -10
- data/spec/models/run_step_delta_step_details_tool_calls_function_object_function_spec.rb +3 -3
- data/spec/models/run_step_delta_step_details_tool_calls_function_object_spec.rb +3 -3
- data/spec/models/run_step_delta_step_details_tool_calls_object_spec.rb +3 -3
- data/spec/models/run_step_delta_step_details_tool_calls_object_tool_calls_inner_spec.rb +2 -2
- data/spec/models/run_step_details_message_creation_object_message_creation_spec.rb +3 -3
- data/spec/models/run_step_details_message_creation_object_spec.rb +3 -3
- data/spec/models/run_step_details_tool_calls_code_object_code_interpreter_outputs_inner_spec.rb +2 -2
- data/spec/models/run_step_details_tool_calls_code_object_code_interpreter_spec.rb +3 -3
- data/spec/models/run_step_details_tool_calls_code_object_spec.rb +3 -3
- data/spec/models/run_step_details_tool_calls_code_output_image_object_image_spec.rb +3 -3
- data/spec/models/run_step_details_tool_calls_code_output_image_object_spec.rb +3 -3
- data/spec/models/run_step_details_tool_calls_code_output_logs_object_spec.rb +3 -3
- 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_retrieval_object_spec.rb → run_step_details_tool_calls_file_search_object_spec.rb} +10 -10
- 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 +3 -3
- data/spec/models/run_step_details_tool_calls_function_object_spec.rb +3 -3
- data/spec/models/run_step_details_tool_calls_object_spec.rb +3 -3
- data/spec/models/run_step_details_tool_calls_object_tool_calls_inner_spec.rb +2 -2
- data/spec/models/run_step_object_last_error_spec.rb +3 -3
- data/spec/models/run_step_object_spec.rb +3 -3
- data/spec/models/run_step_object_step_details_spec.rb +2 -2
- data/spec/models/run_step_stream_event_one_of1_spec.rb +3 -3
- data/spec/models/run_step_stream_event_one_of2_spec.rb +3 -3
- data/spec/models/run_step_stream_event_one_of3_spec.rb +3 -3
- data/spec/models/run_step_stream_event_one_of4_spec.rb +3 -3
- data/spec/models/run_step_stream_event_one_of5_spec.rb +3 -3
- data/spec/models/run_step_stream_event_one_of6_spec.rb +3 -3
- data/spec/models/run_step_stream_event_one_of_spec.rb +3 -3
- data/spec/models/run_step_stream_event_spec.rb +2 -2
- data/spec/models/run_stream_event_one_of1_spec.rb +3 -3
- data/spec/models/run_stream_event_one_of2_spec.rb +3 -3
- data/spec/models/run_stream_event_one_of3_spec.rb +3 -3
- data/spec/models/run_stream_event_one_of4_spec.rb +3 -3
- data/spec/models/run_stream_event_one_of5_spec.rb +4 -4
- data/spec/models/run_stream_event_one_of6_spec.rb +4 -4
- data/spec/models/run_stream_event_one_of7_spec.rb +4 -4
- data/spec/models/run_stream_event_one_of8_spec.rb +4 -4
- data/spec/models/{thread_stream_event_one_of_spec.rb → run_stream_event_one_of9_spec.rb} +9 -9
- data/spec/models/run_stream_event_one_of_spec.rb +3 -3
- data/spec/models/run_stream_event_spec.rb +2 -2
- data/spec/models/run_tool_call_object_function_spec.rb +3 -3
- data/spec/models/run_tool_call_object_spec.rb +3 -3
- 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 +3 -3
- data/spec/models/submit_tool_outputs_run_request_tool_outputs_inner_spec.rb +3 -3
- data/spec/models/thread_object_spec.rb +9 -3
- data/spec/models/thread_stream_event_spec.rb +27 -7
- data/spec/models/transcription_segment_spec.rb +3 -3
- data/spec/models/transcription_word_spec.rb +3 -3
- data/spec/models/truncation_object_spec.rb +3 -3
- data/spec/models/update_vector_store_request_spec.rb +48 -0
- data/spec/models/{message_file_object_spec.rb → upload_part_spec.rb} +15 -15
- 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/usage_completions_result_spec.rb +106 -0
- 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 +2 -2
- metadata +1375 -275
- data/bin/bundle +0 -109
- data/docs/AssistantFileObject.md +0 -24
- data/docs/AssistantsApiResponseFormat.md +0 -18
- data/docs/CreateAssistantFileRequest.md +0 -18
- data/docs/MessageFileObject.md +0 -24
- data/docs/RunStepDetailsToolCallsRetrievalObject.md +0 -22
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.
|
|
6
|
+
The version of the OpenAPI document: 2.3.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -55,7 +55,7 @@ module OpenApiOpenAIClient
|
|
|
55
55
|
# header parameters
|
|
56
56
|
header_params = opts[:header_params] || {}
|
|
57
57
|
# HTTP header 'Accept' (if needed)
|
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
59
59
|
|
|
60
60
|
# form parameters
|
|
61
61
|
form_params = opts[:form_params] || {}
|
|
@@ -116,7 +116,7 @@ module OpenApiOpenAIClient
|
|
|
116
116
|
# header parameters
|
|
117
117
|
header_params = opts[:header_params] || {}
|
|
118
118
|
# HTTP header 'Accept' (if needed)
|
|
119
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
120
120
|
# HTTP header 'Content-Type'
|
|
121
121
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
122
122
|
if !content_type.nil?
|
|
@@ -152,78 +152,6 @@ module OpenApiOpenAIClient
|
|
|
152
152
|
return data, status_code, headers
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
-
# Create an assistant file by attaching a [File](/docs/api-reference/files) to an [assistant](/docs/api-reference/assistants).
|
|
156
|
-
# @param assistant_id [String] The ID of the assistant for which to create a File.
|
|
157
|
-
# @param create_assistant_file_request [CreateAssistantFileRequest]
|
|
158
|
-
# @param [Hash] opts the optional parameters
|
|
159
|
-
# @return [AssistantFileObject]
|
|
160
|
-
def create_assistant_file(assistant_id, create_assistant_file_request, opts = {})
|
|
161
|
-
data, _status_code, _headers = create_assistant_file_with_http_info(assistant_id, create_assistant_file_request, opts)
|
|
162
|
-
data
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
# Create an assistant file by attaching a [File](/docs/api-reference/files) to an [assistant](/docs/api-reference/assistants).
|
|
166
|
-
# @param assistant_id [String] The ID of the assistant for which to create a File.
|
|
167
|
-
# @param create_assistant_file_request [CreateAssistantFileRequest]
|
|
168
|
-
# @param [Hash] opts the optional parameters
|
|
169
|
-
# @return [Array<(AssistantFileObject, Integer, Hash)>] AssistantFileObject data, response status code and response headers
|
|
170
|
-
def create_assistant_file_with_http_info(assistant_id, create_assistant_file_request, opts = {})
|
|
171
|
-
if @api_client.config.debugging
|
|
172
|
-
@api_client.config.logger.debug 'Calling API: AssistantsApi.create_assistant_file ...'
|
|
173
|
-
end
|
|
174
|
-
# verify the required parameter 'assistant_id' is set
|
|
175
|
-
if @api_client.config.client_side_validation && assistant_id.nil?
|
|
176
|
-
fail ArgumentError, "Missing the required parameter 'assistant_id' when calling AssistantsApi.create_assistant_file"
|
|
177
|
-
end
|
|
178
|
-
# verify the required parameter 'create_assistant_file_request' is set
|
|
179
|
-
if @api_client.config.client_side_validation && create_assistant_file_request.nil?
|
|
180
|
-
fail ArgumentError, "Missing the required parameter 'create_assistant_file_request' when calling AssistantsApi.create_assistant_file"
|
|
181
|
-
end
|
|
182
|
-
# resource path
|
|
183
|
-
local_var_path = '/assistants/{assistant_id}/files'.sub('{' + 'assistant_id' + '}', CGI.escape(assistant_id.to_s))
|
|
184
|
-
|
|
185
|
-
# query parameters
|
|
186
|
-
query_params = opts[:query_params] || {}
|
|
187
|
-
|
|
188
|
-
# header parameters
|
|
189
|
-
header_params = opts[:header_params] || {}
|
|
190
|
-
# HTTP header 'Accept' (if needed)
|
|
191
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
192
|
-
# HTTP header 'Content-Type'
|
|
193
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
194
|
-
if !content_type.nil?
|
|
195
|
-
header_params['Content-Type'] = content_type
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
# form parameters
|
|
199
|
-
form_params = opts[:form_params] || {}
|
|
200
|
-
|
|
201
|
-
# http body (model)
|
|
202
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_assistant_file_request)
|
|
203
|
-
|
|
204
|
-
# return_type
|
|
205
|
-
return_type = opts[:debug_return_type] || 'AssistantFileObject'
|
|
206
|
-
|
|
207
|
-
# auth_names
|
|
208
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
209
|
-
|
|
210
|
-
new_options = opts.merge(
|
|
211
|
-
:operation => :"AssistantsApi.create_assistant_file",
|
|
212
|
-
:header_params => header_params,
|
|
213
|
-
:query_params => query_params,
|
|
214
|
-
:form_params => form_params,
|
|
215
|
-
:body => post_body,
|
|
216
|
-
:auth_names => auth_names,
|
|
217
|
-
:return_type => return_type
|
|
218
|
-
)
|
|
219
|
-
|
|
220
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
221
|
-
if @api_client.config.debugging
|
|
222
|
-
@api_client.config.logger.debug "API called: AssistantsApi#create_assistant_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
223
|
-
end
|
|
224
|
-
return data, status_code, headers
|
|
225
|
-
end
|
|
226
|
-
|
|
227
155
|
# Create a message.
|
|
228
156
|
# @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) to create a message for.
|
|
229
157
|
# @param create_message_request [CreateMessageRequest]
|
|
@@ -260,7 +188,7 @@ module OpenApiOpenAIClient
|
|
|
260
188
|
# header parameters
|
|
261
189
|
header_params = opts[:header_params] || {}
|
|
262
190
|
# HTTP header 'Accept' (if needed)
|
|
263
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
191
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
264
192
|
# HTTP header 'Content-Type'
|
|
265
193
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
266
194
|
if !content_type.nil?
|
|
@@ -300,6 +228,7 @@ module OpenApiOpenAIClient
|
|
|
300
228
|
# @param thread_id [String] The ID of the thread to run.
|
|
301
229
|
# @param create_run_request [CreateRunRequest]
|
|
302
230
|
# @param [Hash] opts the optional parameters
|
|
231
|
+
# @option opts [Array<String>] :include A list of additional fields to include in the response. Currently the only supported value is `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.
|
|
303
232
|
# @return [RunObject]
|
|
304
233
|
def create_run(thread_id, create_run_request, opts = {})
|
|
305
234
|
data, _status_code, _headers = create_run_with_http_info(thread_id, create_run_request, opts)
|
|
@@ -310,6 +239,7 @@ module OpenApiOpenAIClient
|
|
|
310
239
|
# @param thread_id [String] The ID of the thread to run.
|
|
311
240
|
# @param create_run_request [CreateRunRequest]
|
|
312
241
|
# @param [Hash] opts the optional parameters
|
|
242
|
+
# @option opts [Array<String>] :include A list of additional fields to include in the response. Currently the only supported value is `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.
|
|
313
243
|
# @return [Array<(RunObject, Integer, Hash)>] RunObject data, response status code and response headers
|
|
314
244
|
def create_run_with_http_info(thread_id, create_run_request, opts = {})
|
|
315
245
|
if @api_client.config.debugging
|
|
@@ -323,16 +253,21 @@ module OpenApiOpenAIClient
|
|
|
323
253
|
if @api_client.config.client_side_validation && create_run_request.nil?
|
|
324
254
|
fail ArgumentError, "Missing the required parameter 'create_run_request' when calling AssistantsApi.create_run"
|
|
325
255
|
end
|
|
256
|
+
allowable_values = ["step_details.tool_calls[*].file_search.results[*].content"]
|
|
257
|
+
if @api_client.config.client_side_validation && opts[:'include'] && !opts[:'include'].all? { |item| allowable_values.include?(item) }
|
|
258
|
+
fail ArgumentError, "invalid value for \"include\", must include one of #{allowable_values}"
|
|
259
|
+
end
|
|
326
260
|
# resource path
|
|
327
261
|
local_var_path = '/threads/{thread_id}/runs'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s))
|
|
328
262
|
|
|
329
263
|
# query parameters
|
|
330
264
|
query_params = opts[:query_params] || {}
|
|
265
|
+
query_params[:'include[]'] = @api_client.build_collection_param(opts[:'include'], :multi) if !opts[:'include'].nil?
|
|
331
266
|
|
|
332
267
|
# header parameters
|
|
333
268
|
header_params = opts[:header_params] || {}
|
|
334
269
|
# HTTP header 'Accept' (if needed)
|
|
335
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
270
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
336
271
|
# HTTP header 'Content-Type'
|
|
337
272
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
338
273
|
if !content_type.nil?
|
|
@@ -394,7 +329,7 @@ module OpenApiOpenAIClient
|
|
|
394
329
|
# header parameters
|
|
395
330
|
header_params = opts[:header_params] || {}
|
|
396
331
|
# HTTP header 'Accept' (if needed)
|
|
397
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
332
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
398
333
|
# HTTP header 'Content-Type'
|
|
399
334
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
400
335
|
if !content_type.nil?
|
|
@@ -460,7 +395,7 @@ module OpenApiOpenAIClient
|
|
|
460
395
|
# header parameters
|
|
461
396
|
header_params = opts[:header_params] || {}
|
|
462
397
|
# HTTP header 'Accept' (if needed)
|
|
463
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
398
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
464
399
|
# HTTP header 'Content-Type'
|
|
465
400
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
466
401
|
if !content_type.nil?
|
|
@@ -526,7 +461,7 @@ module OpenApiOpenAIClient
|
|
|
526
461
|
# header parameters
|
|
527
462
|
header_params = opts[:header_params] || {}
|
|
528
463
|
# HTTP header 'Accept' (if needed)
|
|
529
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
464
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
530
465
|
|
|
531
466
|
# form parameters
|
|
532
467
|
form_params = opts[:form_params] || {}
|
|
@@ -557,35 +492,35 @@ module OpenApiOpenAIClient
|
|
|
557
492
|
return data, status_code, headers
|
|
558
493
|
end
|
|
559
494
|
|
|
560
|
-
#
|
|
561
|
-
# @param
|
|
562
|
-
# @param
|
|
495
|
+
# Deletes a message.
|
|
496
|
+
# @param thread_id [String] The ID of the thread to which this message belongs.
|
|
497
|
+
# @param message_id [String] The ID of the message to delete.
|
|
563
498
|
# @param [Hash] opts the optional parameters
|
|
564
|
-
# @return [
|
|
565
|
-
def
|
|
566
|
-
data, _status_code, _headers =
|
|
499
|
+
# @return [DeleteMessageResponse]
|
|
500
|
+
def delete_message(thread_id, message_id, opts = {})
|
|
501
|
+
data, _status_code, _headers = delete_message_with_http_info(thread_id, message_id, opts)
|
|
567
502
|
data
|
|
568
503
|
end
|
|
569
504
|
|
|
570
|
-
#
|
|
571
|
-
# @param
|
|
572
|
-
# @param
|
|
505
|
+
# Deletes a message.
|
|
506
|
+
# @param thread_id [String] The ID of the thread to which this message belongs.
|
|
507
|
+
# @param message_id [String] The ID of the message to delete.
|
|
573
508
|
# @param [Hash] opts the optional parameters
|
|
574
|
-
# @return [Array<(
|
|
575
|
-
def
|
|
509
|
+
# @return [Array<(DeleteMessageResponse, Integer, Hash)>] DeleteMessageResponse data, response status code and response headers
|
|
510
|
+
def delete_message_with_http_info(thread_id, message_id, opts = {})
|
|
576
511
|
if @api_client.config.debugging
|
|
577
|
-
@api_client.config.logger.debug 'Calling API: AssistantsApi.
|
|
512
|
+
@api_client.config.logger.debug 'Calling API: AssistantsApi.delete_message ...'
|
|
578
513
|
end
|
|
579
|
-
# verify the required parameter '
|
|
580
|
-
if @api_client.config.client_side_validation &&
|
|
581
|
-
fail ArgumentError, "Missing the required parameter '
|
|
514
|
+
# verify the required parameter 'thread_id' is set
|
|
515
|
+
if @api_client.config.client_side_validation && thread_id.nil?
|
|
516
|
+
fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.delete_message"
|
|
582
517
|
end
|
|
583
|
-
# verify the required parameter '
|
|
584
|
-
if @api_client.config.client_side_validation &&
|
|
585
|
-
fail ArgumentError, "Missing the required parameter '
|
|
518
|
+
# verify the required parameter 'message_id' is set
|
|
519
|
+
if @api_client.config.client_side_validation && message_id.nil?
|
|
520
|
+
fail ArgumentError, "Missing the required parameter 'message_id' when calling AssistantsApi.delete_message"
|
|
586
521
|
end
|
|
587
522
|
# resource path
|
|
588
|
-
local_var_path = '/
|
|
523
|
+
local_var_path = '/threads/{thread_id}/messages/{message_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'message_id' + '}', CGI.escape(message_id.to_s))
|
|
589
524
|
|
|
590
525
|
# query parameters
|
|
591
526
|
query_params = opts[:query_params] || {}
|
|
@@ -593,7 +528,7 @@ module OpenApiOpenAIClient
|
|
|
593
528
|
# header parameters
|
|
594
529
|
header_params = opts[:header_params] || {}
|
|
595
530
|
# HTTP header 'Accept' (if needed)
|
|
596
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
531
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
597
532
|
|
|
598
533
|
# form parameters
|
|
599
534
|
form_params = opts[:form_params] || {}
|
|
@@ -602,13 +537,13 @@ module OpenApiOpenAIClient
|
|
|
602
537
|
post_body = opts[:debug_body]
|
|
603
538
|
|
|
604
539
|
# return_type
|
|
605
|
-
return_type = opts[:debug_return_type] || '
|
|
540
|
+
return_type = opts[:debug_return_type] || 'DeleteMessageResponse'
|
|
606
541
|
|
|
607
542
|
# auth_names
|
|
608
543
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
609
544
|
|
|
610
545
|
new_options = opts.merge(
|
|
611
|
-
:operation => :"AssistantsApi.
|
|
546
|
+
:operation => :"AssistantsApi.delete_message",
|
|
612
547
|
:header_params => header_params,
|
|
613
548
|
:query_params => query_params,
|
|
614
549
|
:form_params => form_params,
|
|
@@ -619,7 +554,7 @@ module OpenApiOpenAIClient
|
|
|
619
554
|
|
|
620
555
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
621
556
|
if @api_client.config.debugging
|
|
622
|
-
@api_client.config.logger.debug "API called: AssistantsApi#
|
|
557
|
+
@api_client.config.logger.debug "API called: AssistantsApi#delete_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
623
558
|
end
|
|
624
559
|
return data, status_code, headers
|
|
625
560
|
end
|
|
@@ -654,7 +589,7 @@ module OpenApiOpenAIClient
|
|
|
654
589
|
# header parameters
|
|
655
590
|
header_params = opts[:header_params] || {}
|
|
656
591
|
# HTTP header 'Accept' (if needed)
|
|
657
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
592
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
658
593
|
|
|
659
594
|
# form parameters
|
|
660
595
|
form_params = opts[:form_params] || {}
|
|
@@ -715,7 +650,7 @@ module OpenApiOpenAIClient
|
|
|
715
650
|
# header parameters
|
|
716
651
|
header_params = opts[:header_params] || {}
|
|
717
652
|
# HTTP header 'Accept' (if needed)
|
|
718
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
653
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
719
654
|
|
|
720
655
|
# form parameters
|
|
721
656
|
form_params = opts[:form_params] || {}
|
|
@@ -746,73 +681,6 @@ module OpenApiOpenAIClient
|
|
|
746
681
|
return data, status_code, headers
|
|
747
682
|
end
|
|
748
683
|
|
|
749
|
-
# Retrieves an AssistantFile.
|
|
750
|
-
# @param assistant_id [String] The ID of the assistant who the file belongs to.
|
|
751
|
-
# @param file_id [String] The ID of the file we're getting.
|
|
752
|
-
# @param [Hash] opts the optional parameters
|
|
753
|
-
# @return [AssistantFileObject]
|
|
754
|
-
def get_assistant_file(assistant_id, file_id, opts = {})
|
|
755
|
-
data, _status_code, _headers = get_assistant_file_with_http_info(assistant_id, file_id, opts)
|
|
756
|
-
data
|
|
757
|
-
end
|
|
758
|
-
|
|
759
|
-
# Retrieves an AssistantFile.
|
|
760
|
-
# @param assistant_id [String] The ID of the assistant who the file belongs to.
|
|
761
|
-
# @param file_id [String] The ID of the file we're getting.
|
|
762
|
-
# @param [Hash] opts the optional parameters
|
|
763
|
-
# @return [Array<(AssistantFileObject, Integer, Hash)>] AssistantFileObject data, response status code and response headers
|
|
764
|
-
def get_assistant_file_with_http_info(assistant_id, file_id, opts = {})
|
|
765
|
-
if @api_client.config.debugging
|
|
766
|
-
@api_client.config.logger.debug 'Calling API: AssistantsApi.get_assistant_file ...'
|
|
767
|
-
end
|
|
768
|
-
# verify the required parameter 'assistant_id' is set
|
|
769
|
-
if @api_client.config.client_side_validation && assistant_id.nil?
|
|
770
|
-
fail ArgumentError, "Missing the required parameter 'assistant_id' when calling AssistantsApi.get_assistant_file"
|
|
771
|
-
end
|
|
772
|
-
# verify the required parameter 'file_id' is set
|
|
773
|
-
if @api_client.config.client_side_validation && file_id.nil?
|
|
774
|
-
fail ArgumentError, "Missing the required parameter 'file_id' when calling AssistantsApi.get_assistant_file"
|
|
775
|
-
end
|
|
776
|
-
# resource path
|
|
777
|
-
local_var_path = '/assistants/{assistant_id}/files/{file_id}'.sub('{' + 'assistant_id' + '}', CGI.escape(assistant_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
|
778
|
-
|
|
779
|
-
# query parameters
|
|
780
|
-
query_params = opts[:query_params] || {}
|
|
781
|
-
|
|
782
|
-
# header parameters
|
|
783
|
-
header_params = opts[:header_params] || {}
|
|
784
|
-
# HTTP header 'Accept' (if needed)
|
|
785
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
786
|
-
|
|
787
|
-
# form parameters
|
|
788
|
-
form_params = opts[:form_params] || {}
|
|
789
|
-
|
|
790
|
-
# http body (model)
|
|
791
|
-
post_body = opts[:debug_body]
|
|
792
|
-
|
|
793
|
-
# return_type
|
|
794
|
-
return_type = opts[:debug_return_type] || 'AssistantFileObject'
|
|
795
|
-
|
|
796
|
-
# auth_names
|
|
797
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
798
|
-
|
|
799
|
-
new_options = opts.merge(
|
|
800
|
-
:operation => :"AssistantsApi.get_assistant_file",
|
|
801
|
-
:header_params => header_params,
|
|
802
|
-
:query_params => query_params,
|
|
803
|
-
:form_params => form_params,
|
|
804
|
-
:body => post_body,
|
|
805
|
-
:auth_names => auth_names,
|
|
806
|
-
:return_type => return_type
|
|
807
|
-
)
|
|
808
|
-
|
|
809
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
810
|
-
if @api_client.config.debugging
|
|
811
|
-
@api_client.config.logger.debug "API called: AssistantsApi#get_assistant_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
812
|
-
end
|
|
813
|
-
return data, status_code, headers
|
|
814
|
-
end
|
|
815
|
-
|
|
816
684
|
# Retrieve a message.
|
|
817
685
|
# @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) to which this message belongs.
|
|
818
686
|
# @param message_id [String] The ID of the message to retrieve.
|
|
@@ -849,7 +717,7 @@ module OpenApiOpenAIClient
|
|
|
849
717
|
# header parameters
|
|
850
718
|
header_params = opts[:header_params] || {}
|
|
851
719
|
# HTTP header 'Accept' (if needed)
|
|
852
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
720
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
853
721
|
|
|
854
722
|
# form parameters
|
|
855
723
|
form_params = opts[:form_params] || {}
|
|
@@ -880,79 +748,6 @@ module OpenApiOpenAIClient
|
|
|
880
748
|
return data, status_code, headers
|
|
881
749
|
end
|
|
882
750
|
|
|
883
|
-
# Retrieves a message file.
|
|
884
|
-
# @param thread_id [String] The ID of the thread to which the message and File belong.
|
|
885
|
-
# @param message_id [String] The ID of the message the file belongs to.
|
|
886
|
-
# @param file_id [String] The ID of the file being retrieved.
|
|
887
|
-
# @param [Hash] opts the optional parameters
|
|
888
|
-
# @return [MessageFileObject]
|
|
889
|
-
def get_message_file(thread_id, message_id, file_id, opts = {})
|
|
890
|
-
data, _status_code, _headers = get_message_file_with_http_info(thread_id, message_id, file_id, opts)
|
|
891
|
-
data
|
|
892
|
-
end
|
|
893
|
-
|
|
894
|
-
# Retrieves a message file.
|
|
895
|
-
# @param thread_id [String] The ID of the thread to which the message and File belong.
|
|
896
|
-
# @param message_id [String] The ID of the message the file belongs to.
|
|
897
|
-
# @param file_id [String] The ID of the file being retrieved.
|
|
898
|
-
# @param [Hash] opts the optional parameters
|
|
899
|
-
# @return [Array<(MessageFileObject, Integer, Hash)>] MessageFileObject data, response status code and response headers
|
|
900
|
-
def get_message_file_with_http_info(thread_id, message_id, file_id, opts = {})
|
|
901
|
-
if @api_client.config.debugging
|
|
902
|
-
@api_client.config.logger.debug 'Calling API: AssistantsApi.get_message_file ...'
|
|
903
|
-
end
|
|
904
|
-
# verify the required parameter 'thread_id' is set
|
|
905
|
-
if @api_client.config.client_side_validation && thread_id.nil?
|
|
906
|
-
fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.get_message_file"
|
|
907
|
-
end
|
|
908
|
-
# verify the required parameter 'message_id' is set
|
|
909
|
-
if @api_client.config.client_side_validation && message_id.nil?
|
|
910
|
-
fail ArgumentError, "Missing the required parameter 'message_id' when calling AssistantsApi.get_message_file"
|
|
911
|
-
end
|
|
912
|
-
# verify the required parameter 'file_id' is set
|
|
913
|
-
if @api_client.config.client_side_validation && file_id.nil?
|
|
914
|
-
fail ArgumentError, "Missing the required parameter 'file_id' when calling AssistantsApi.get_message_file"
|
|
915
|
-
end
|
|
916
|
-
# resource path
|
|
917
|
-
local_var_path = '/threads/{thread_id}/messages/{message_id}/files/{file_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'message_id' + '}', CGI.escape(message_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
|
918
|
-
|
|
919
|
-
# query parameters
|
|
920
|
-
query_params = opts[:query_params] || {}
|
|
921
|
-
|
|
922
|
-
# header parameters
|
|
923
|
-
header_params = opts[:header_params] || {}
|
|
924
|
-
# HTTP header 'Accept' (if needed)
|
|
925
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
926
|
-
|
|
927
|
-
# form parameters
|
|
928
|
-
form_params = opts[:form_params] || {}
|
|
929
|
-
|
|
930
|
-
# http body (model)
|
|
931
|
-
post_body = opts[:debug_body]
|
|
932
|
-
|
|
933
|
-
# return_type
|
|
934
|
-
return_type = opts[:debug_return_type] || 'MessageFileObject'
|
|
935
|
-
|
|
936
|
-
# auth_names
|
|
937
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
938
|
-
|
|
939
|
-
new_options = opts.merge(
|
|
940
|
-
:operation => :"AssistantsApi.get_message_file",
|
|
941
|
-
:header_params => header_params,
|
|
942
|
-
:query_params => query_params,
|
|
943
|
-
:form_params => form_params,
|
|
944
|
-
:body => post_body,
|
|
945
|
-
:auth_names => auth_names,
|
|
946
|
-
:return_type => return_type
|
|
947
|
-
)
|
|
948
|
-
|
|
949
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
950
|
-
if @api_client.config.debugging
|
|
951
|
-
@api_client.config.logger.debug "API called: AssistantsApi#get_message_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
952
|
-
end
|
|
953
|
-
return data, status_code, headers
|
|
954
|
-
end
|
|
955
|
-
|
|
956
751
|
# Retrieves a run.
|
|
957
752
|
# @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) that was run.
|
|
958
753
|
# @param run_id [String] The ID of the run to retrieve.
|
|
@@ -989,7 +784,7 @@ module OpenApiOpenAIClient
|
|
|
989
784
|
# header parameters
|
|
990
785
|
header_params = opts[:header_params] || {}
|
|
991
786
|
# HTTP header 'Accept' (if needed)
|
|
992
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
787
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
993
788
|
|
|
994
789
|
# form parameters
|
|
995
790
|
form_params = opts[:form_params] || {}
|
|
@@ -1025,6 +820,7 @@ module OpenApiOpenAIClient
|
|
|
1025
820
|
# @param run_id [String] The ID of the run to which the run step belongs.
|
|
1026
821
|
# @param step_id [String] The ID of the run step to retrieve.
|
|
1027
822
|
# @param [Hash] opts the optional parameters
|
|
823
|
+
# @option opts [Array<String>] :include A list of additional fields to include in the response. Currently the only supported value is `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.
|
|
1028
824
|
# @return [RunStepObject]
|
|
1029
825
|
def get_run_step(thread_id, run_id, step_id, opts = {})
|
|
1030
826
|
data, _status_code, _headers = get_run_step_with_http_info(thread_id, run_id, step_id, opts)
|
|
@@ -1036,6 +832,7 @@ module OpenApiOpenAIClient
|
|
|
1036
832
|
# @param run_id [String] The ID of the run to which the run step belongs.
|
|
1037
833
|
# @param step_id [String] The ID of the run step to retrieve.
|
|
1038
834
|
# @param [Hash] opts the optional parameters
|
|
835
|
+
# @option opts [Array<String>] :include A list of additional fields to include in the response. Currently the only supported value is `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.
|
|
1039
836
|
# @return [Array<(RunStepObject, Integer, Hash)>] RunStepObject data, response status code and response headers
|
|
1040
837
|
def get_run_step_with_http_info(thread_id, run_id, step_id, opts = {})
|
|
1041
838
|
if @api_client.config.debugging
|
|
@@ -1053,16 +850,21 @@ module OpenApiOpenAIClient
|
|
|
1053
850
|
if @api_client.config.client_side_validation && step_id.nil?
|
|
1054
851
|
fail ArgumentError, "Missing the required parameter 'step_id' when calling AssistantsApi.get_run_step"
|
|
1055
852
|
end
|
|
853
|
+
allowable_values = ["step_details.tool_calls[*].file_search.results[*].content"]
|
|
854
|
+
if @api_client.config.client_side_validation && opts[:'include'] && !opts[:'include'].all? { |item| allowable_values.include?(item) }
|
|
855
|
+
fail ArgumentError, "invalid value for \"include\", must include one of #{allowable_values}"
|
|
856
|
+
end
|
|
1056
857
|
# resource path
|
|
1057
858
|
local_var_path = '/threads/{thread_id}/runs/{run_id}/steps/{step_id}'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'run_id' + '}', CGI.escape(run_id.to_s)).sub('{' + 'step_id' + '}', CGI.escape(step_id.to_s))
|
|
1058
859
|
|
|
1059
860
|
# query parameters
|
|
1060
861
|
query_params = opts[:query_params] || {}
|
|
862
|
+
query_params[:'include[]'] = @api_client.build_collection_param(opts[:'include'], :multi) if !opts[:'include'].nil?
|
|
1061
863
|
|
|
1062
864
|
# header parameters
|
|
1063
865
|
header_params = opts[:header_params] || {}
|
|
1064
866
|
# HTTP header 'Accept' (if needed)
|
|
1065
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
867
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1066
868
|
|
|
1067
869
|
# form parameters
|
|
1068
870
|
form_params = opts[:form_params] || {}
|
|
@@ -1123,7 +925,7 @@ module OpenApiOpenAIClient
|
|
|
1123
925
|
# header parameters
|
|
1124
926
|
header_params = opts[:header_params] || {}
|
|
1125
927
|
# HTTP header 'Accept' (if needed)
|
|
1126
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
928
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1127
929
|
|
|
1128
930
|
# form parameters
|
|
1129
931
|
form_params = opts[:form_params] || {}
|
|
@@ -1154,89 +956,12 @@ module OpenApiOpenAIClient
|
|
|
1154
956
|
return data, status_code, headers
|
|
1155
957
|
end
|
|
1156
958
|
|
|
1157
|
-
# Returns a list of assistant files.
|
|
1158
|
-
# @param assistant_id [String] The ID of the assistant the file belongs to.
|
|
1159
|
-
# @param [Hash] opts the optional parameters
|
|
1160
|
-
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1161
|
-
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1162
|
-
# @option opts [String] :after 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.
|
|
1163
|
-
# @option opts [String] :before 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, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
1164
|
-
# @return [ListAssistantFilesResponse]
|
|
1165
|
-
def list_assistant_files(assistant_id, opts = {})
|
|
1166
|
-
data, _status_code, _headers = list_assistant_files_with_http_info(assistant_id, opts)
|
|
1167
|
-
data
|
|
1168
|
-
end
|
|
1169
|
-
|
|
1170
|
-
# Returns a list of assistant files.
|
|
1171
|
-
# @param assistant_id [String] The ID of the assistant the file belongs to.
|
|
1172
|
-
# @param [Hash] opts the optional parameters
|
|
1173
|
-
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1174
|
-
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1175
|
-
# @option opts [String] :after 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.
|
|
1176
|
-
# @option opts [String] :before 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, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
1177
|
-
# @return [Array<(ListAssistantFilesResponse, Integer, Hash)>] ListAssistantFilesResponse data, response status code and response headers
|
|
1178
|
-
def list_assistant_files_with_http_info(assistant_id, opts = {})
|
|
1179
|
-
if @api_client.config.debugging
|
|
1180
|
-
@api_client.config.logger.debug 'Calling API: AssistantsApi.list_assistant_files ...'
|
|
1181
|
-
end
|
|
1182
|
-
# verify the required parameter 'assistant_id' is set
|
|
1183
|
-
if @api_client.config.client_side_validation && assistant_id.nil?
|
|
1184
|
-
fail ArgumentError, "Missing the required parameter 'assistant_id' when calling AssistantsApi.list_assistant_files"
|
|
1185
|
-
end
|
|
1186
|
-
allowable_values = ["asc", "desc"]
|
|
1187
|
-
if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
|
|
1188
|
-
fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
|
1189
|
-
end
|
|
1190
|
-
# resource path
|
|
1191
|
-
local_var_path = '/assistants/{assistant_id}/files'.sub('{' + 'assistant_id' + '}', CGI.escape(assistant_id.to_s))
|
|
1192
|
-
|
|
1193
|
-
# query parameters
|
|
1194
|
-
query_params = opts[:query_params] || {}
|
|
1195
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1196
|
-
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
1197
|
-
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
1198
|
-
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
1199
|
-
|
|
1200
|
-
# header parameters
|
|
1201
|
-
header_params = opts[:header_params] || {}
|
|
1202
|
-
# HTTP header 'Accept' (if needed)
|
|
1203
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1204
|
-
|
|
1205
|
-
# form parameters
|
|
1206
|
-
form_params = opts[:form_params] || {}
|
|
1207
|
-
|
|
1208
|
-
# http body (model)
|
|
1209
|
-
post_body = opts[:debug_body]
|
|
1210
|
-
|
|
1211
|
-
# return_type
|
|
1212
|
-
return_type = opts[:debug_return_type] || 'ListAssistantFilesResponse'
|
|
1213
|
-
|
|
1214
|
-
# auth_names
|
|
1215
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1216
|
-
|
|
1217
|
-
new_options = opts.merge(
|
|
1218
|
-
:operation => :"AssistantsApi.list_assistant_files",
|
|
1219
|
-
:header_params => header_params,
|
|
1220
|
-
:query_params => query_params,
|
|
1221
|
-
:form_params => form_params,
|
|
1222
|
-
:body => post_body,
|
|
1223
|
-
:auth_names => auth_names,
|
|
1224
|
-
:return_type => return_type
|
|
1225
|
-
)
|
|
1226
|
-
|
|
1227
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1228
|
-
if @api_client.config.debugging
|
|
1229
|
-
@api_client.config.logger.debug "API called: AssistantsApi#list_assistant_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1230
|
-
end
|
|
1231
|
-
return data, status_code, headers
|
|
1232
|
-
end
|
|
1233
|
-
|
|
1234
959
|
# Returns a list of assistants.
|
|
1235
960
|
# @param [Hash] opts the optional parameters
|
|
1236
961
|
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1237
962
|
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1238
963
|
# @option opts [String] :after 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.
|
|
1239
|
-
# @option opts [String] :before 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,
|
|
964
|
+
# @option opts [String] :before 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.
|
|
1240
965
|
# @return [ListAssistantsResponse]
|
|
1241
966
|
def list_assistants(opts = {})
|
|
1242
967
|
data, _status_code, _headers = list_assistants_with_http_info(opts)
|
|
@@ -1248,7 +973,7 @@ module OpenApiOpenAIClient
|
|
|
1248
973
|
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1249
974
|
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1250
975
|
# @option opts [String] :after 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.
|
|
1251
|
-
# @option opts [String] :before 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,
|
|
976
|
+
# @option opts [String] :before 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.
|
|
1252
977
|
# @return [Array<(ListAssistantsResponse, Integer, Hash)>] ListAssistantsResponse data, response status code and response headers
|
|
1253
978
|
def list_assistants_with_http_info(opts = {})
|
|
1254
979
|
if @api_client.config.debugging
|
|
@@ -1271,7 +996,7 @@ module OpenApiOpenAIClient
|
|
|
1271
996
|
# header parameters
|
|
1272
997
|
header_params = opts[:header_params] || {}
|
|
1273
998
|
# HTTP header 'Accept' (if needed)
|
|
1274
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
999
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1275
1000
|
|
|
1276
1001
|
# form parameters
|
|
1277
1002
|
form_params = opts[:form_params] || {}
|
|
@@ -1302,96 +1027,13 @@ module OpenApiOpenAIClient
|
|
|
1302
1027
|
return data, status_code, headers
|
|
1303
1028
|
end
|
|
1304
1029
|
|
|
1305
|
-
# Returns a list of message files.
|
|
1306
|
-
# @param thread_id [String] The ID of the thread that the message and files belong to.
|
|
1307
|
-
# @param message_id [String] The ID of the message that the files belongs to.
|
|
1308
|
-
# @param [Hash] opts the optional parameters
|
|
1309
|
-
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1310
|
-
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1311
|
-
# @option opts [String] :after 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.
|
|
1312
|
-
# @option opts [String] :before 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, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
1313
|
-
# @return [ListMessageFilesResponse]
|
|
1314
|
-
def list_message_files(thread_id, message_id, opts = {})
|
|
1315
|
-
data, _status_code, _headers = list_message_files_with_http_info(thread_id, message_id, opts)
|
|
1316
|
-
data
|
|
1317
|
-
end
|
|
1318
|
-
|
|
1319
|
-
# Returns a list of message files.
|
|
1320
|
-
# @param thread_id [String] The ID of the thread that the message and files belong to.
|
|
1321
|
-
# @param message_id [String] The ID of the message that the files belongs to.
|
|
1322
|
-
# @param [Hash] opts the optional parameters
|
|
1323
|
-
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1324
|
-
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1325
|
-
# @option opts [String] :after 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.
|
|
1326
|
-
# @option opts [String] :before 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, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
1327
|
-
# @return [Array<(ListMessageFilesResponse, Integer, Hash)>] ListMessageFilesResponse data, response status code and response headers
|
|
1328
|
-
def list_message_files_with_http_info(thread_id, message_id, opts = {})
|
|
1329
|
-
if @api_client.config.debugging
|
|
1330
|
-
@api_client.config.logger.debug 'Calling API: AssistantsApi.list_message_files ...'
|
|
1331
|
-
end
|
|
1332
|
-
# verify the required parameter 'thread_id' is set
|
|
1333
|
-
if @api_client.config.client_side_validation && thread_id.nil?
|
|
1334
|
-
fail ArgumentError, "Missing the required parameter 'thread_id' when calling AssistantsApi.list_message_files"
|
|
1335
|
-
end
|
|
1336
|
-
# verify the required parameter 'message_id' is set
|
|
1337
|
-
if @api_client.config.client_side_validation && message_id.nil?
|
|
1338
|
-
fail ArgumentError, "Missing the required parameter 'message_id' when calling AssistantsApi.list_message_files"
|
|
1339
|
-
end
|
|
1340
|
-
allowable_values = ["asc", "desc"]
|
|
1341
|
-
if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
|
|
1342
|
-
fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
|
1343
|
-
end
|
|
1344
|
-
# resource path
|
|
1345
|
-
local_var_path = '/threads/{thread_id}/messages/{message_id}/files'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'message_id' + '}', CGI.escape(message_id.to_s))
|
|
1346
|
-
|
|
1347
|
-
# query parameters
|
|
1348
|
-
query_params = opts[:query_params] || {}
|
|
1349
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1350
|
-
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
1351
|
-
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
1352
|
-
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
1353
|
-
|
|
1354
|
-
# header parameters
|
|
1355
|
-
header_params = opts[:header_params] || {}
|
|
1356
|
-
# HTTP header 'Accept' (if needed)
|
|
1357
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1358
|
-
|
|
1359
|
-
# form parameters
|
|
1360
|
-
form_params = opts[:form_params] || {}
|
|
1361
|
-
|
|
1362
|
-
# http body (model)
|
|
1363
|
-
post_body = opts[:debug_body]
|
|
1364
|
-
|
|
1365
|
-
# return_type
|
|
1366
|
-
return_type = opts[:debug_return_type] || 'ListMessageFilesResponse'
|
|
1367
|
-
|
|
1368
|
-
# auth_names
|
|
1369
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1370
|
-
|
|
1371
|
-
new_options = opts.merge(
|
|
1372
|
-
:operation => :"AssistantsApi.list_message_files",
|
|
1373
|
-
:header_params => header_params,
|
|
1374
|
-
:query_params => query_params,
|
|
1375
|
-
:form_params => form_params,
|
|
1376
|
-
:body => post_body,
|
|
1377
|
-
:auth_names => auth_names,
|
|
1378
|
-
:return_type => return_type
|
|
1379
|
-
)
|
|
1380
|
-
|
|
1381
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1382
|
-
if @api_client.config.debugging
|
|
1383
|
-
@api_client.config.logger.debug "API called: AssistantsApi#list_message_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1384
|
-
end
|
|
1385
|
-
return data, status_code, headers
|
|
1386
|
-
end
|
|
1387
|
-
|
|
1388
1030
|
# Returns a list of messages for a given thread.
|
|
1389
1031
|
# @param thread_id [String] The ID of the [thread](/docs/api-reference/threads) the messages belong to.
|
|
1390
1032
|
# @param [Hash] opts the optional parameters
|
|
1391
1033
|
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1392
1034
|
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1393
1035
|
# @option opts [String] :after 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.
|
|
1394
|
-
# @option opts [String] :before 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,
|
|
1036
|
+
# @option opts [String] :before 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.
|
|
1395
1037
|
# @option opts [String] :run_id Filter messages by the run ID that generated them.
|
|
1396
1038
|
# @return [ListMessagesResponse]
|
|
1397
1039
|
def list_messages(thread_id, opts = {})
|
|
@@ -1405,7 +1047,7 @@ module OpenApiOpenAIClient
|
|
|
1405
1047
|
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1406
1048
|
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1407
1049
|
# @option opts [String] :after 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.
|
|
1408
|
-
# @option opts [String] :before 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,
|
|
1050
|
+
# @option opts [String] :before 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.
|
|
1409
1051
|
# @option opts [String] :run_id Filter messages by the run ID that generated them.
|
|
1410
1052
|
# @return [Array<(ListMessagesResponse, Integer, Hash)>] ListMessagesResponse data, response status code and response headers
|
|
1411
1053
|
def list_messages_with_http_info(thread_id, opts = {})
|
|
@@ -1434,7 +1076,7 @@ module OpenApiOpenAIClient
|
|
|
1434
1076
|
# header parameters
|
|
1435
1077
|
header_params = opts[:header_params] || {}
|
|
1436
1078
|
# HTTP header 'Accept' (if needed)
|
|
1437
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1079
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1438
1080
|
|
|
1439
1081
|
# form parameters
|
|
1440
1082
|
form_params = opts[:form_params] || {}
|
|
@@ -1472,7 +1114,8 @@ module OpenApiOpenAIClient
|
|
|
1472
1114
|
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1473
1115
|
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1474
1116
|
# @option opts [String] :after 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.
|
|
1475
|
-
# @option opts [String] :before 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,
|
|
1117
|
+
# @option opts [String] :before 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.
|
|
1118
|
+
# @option opts [Array<String>] :include 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.
|
|
1476
1119
|
# @return [ListRunStepsResponse]
|
|
1477
1120
|
def list_run_steps(thread_id, run_id, opts = {})
|
|
1478
1121
|
data, _status_code, _headers = list_run_steps_with_http_info(thread_id, run_id, opts)
|
|
@@ -1486,7 +1129,8 @@ module OpenApiOpenAIClient
|
|
|
1486
1129
|
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1487
1130
|
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1488
1131
|
# @option opts [String] :after 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.
|
|
1489
|
-
# @option opts [String] :before 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,
|
|
1132
|
+
# @option opts [String] :before 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.
|
|
1133
|
+
# @option opts [Array<String>] :include 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.
|
|
1490
1134
|
# @return [Array<(ListRunStepsResponse, Integer, Hash)>] ListRunStepsResponse data, response status code and response headers
|
|
1491
1135
|
def list_run_steps_with_http_info(thread_id, run_id, opts = {})
|
|
1492
1136
|
if @api_client.config.debugging
|
|
@@ -1504,6 +1148,10 @@ module OpenApiOpenAIClient
|
|
|
1504
1148
|
if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
|
|
1505
1149
|
fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
|
1506
1150
|
end
|
|
1151
|
+
allowable_values = ["step_details.tool_calls[*].file_search.results[*].content"]
|
|
1152
|
+
if @api_client.config.client_side_validation && opts[:'include'] && !opts[:'include'].all? { |item| allowable_values.include?(item) }
|
|
1153
|
+
fail ArgumentError, "invalid value for \"include\", must include one of #{allowable_values}"
|
|
1154
|
+
end
|
|
1507
1155
|
# resource path
|
|
1508
1156
|
local_var_path = '/threads/{thread_id}/runs/{run_id}/steps'.sub('{' + 'thread_id' + '}', CGI.escape(thread_id.to_s)).sub('{' + 'run_id' + '}', CGI.escape(run_id.to_s))
|
|
1509
1157
|
|
|
@@ -1513,11 +1161,12 @@ module OpenApiOpenAIClient
|
|
|
1513
1161
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
1514
1162
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
1515
1163
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
1164
|
+
query_params[:'include[]'] = @api_client.build_collection_param(opts[:'include'], :multi) if !opts[:'include'].nil?
|
|
1516
1165
|
|
|
1517
1166
|
# header parameters
|
|
1518
1167
|
header_params = opts[:header_params] || {}
|
|
1519
1168
|
# HTTP header 'Accept' (if needed)
|
|
1520
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1521
1170
|
|
|
1522
1171
|
# form parameters
|
|
1523
1172
|
form_params = opts[:form_params] || {}
|
|
@@ -1554,7 +1203,7 @@ module OpenApiOpenAIClient
|
|
|
1554
1203
|
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1555
1204
|
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1556
1205
|
# @option opts [String] :after 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.
|
|
1557
|
-
# @option opts [String] :before 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,
|
|
1206
|
+
# @option opts [String] :before 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.
|
|
1558
1207
|
# @return [ListRunsResponse]
|
|
1559
1208
|
def list_runs(thread_id, opts = {})
|
|
1560
1209
|
data, _status_code, _headers = list_runs_with_http_info(thread_id, opts)
|
|
@@ -1567,7 +1216,7 @@ module OpenApiOpenAIClient
|
|
|
1567
1216
|
# @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. (default to 20)
|
|
1568
1217
|
# @option opts [String] :order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order. (default to 'desc')
|
|
1569
1218
|
# @option opts [String] :after 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.
|
|
1570
|
-
# @option opts [String] :before 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,
|
|
1219
|
+
# @option opts [String] :before 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.
|
|
1571
1220
|
# @return [Array<(ListRunsResponse, Integer, Hash)>] ListRunsResponse data, response status code and response headers
|
|
1572
1221
|
def list_runs_with_http_info(thread_id, opts = {})
|
|
1573
1222
|
if @api_client.config.debugging
|
|
@@ -1594,7 +1243,7 @@ module OpenApiOpenAIClient
|
|
|
1594
1243
|
# header parameters
|
|
1595
1244
|
header_params = opts[:header_params] || {}
|
|
1596
1245
|
# HTTP header 'Accept' (if needed)
|
|
1597
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1246
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1598
1247
|
|
|
1599
1248
|
# form parameters
|
|
1600
1249
|
form_params = opts[:form_params] || {}
|
|
@@ -1661,7 +1310,7 @@ module OpenApiOpenAIClient
|
|
|
1661
1310
|
# header parameters
|
|
1662
1311
|
header_params = opts[:header_params] || {}
|
|
1663
1312
|
# HTTP header 'Accept' (if needed)
|
|
1664
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1313
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1665
1314
|
# HTTP header 'Content-Type'
|
|
1666
1315
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1667
1316
|
if !content_type.nil?
|
|
@@ -1739,7 +1388,7 @@ module OpenApiOpenAIClient
|
|
|
1739
1388
|
# header parameters
|
|
1740
1389
|
header_params = opts[:header_params] || {}
|
|
1741
1390
|
# HTTP header 'Accept' (if needed)
|
|
1742
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1391
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1743
1392
|
# HTTP header 'Content-Type'
|
|
1744
1393
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1745
1394
|
if !content_type.nil?
|
|
@@ -1817,7 +1466,7 @@ module OpenApiOpenAIClient
|
|
|
1817
1466
|
# header parameters
|
|
1818
1467
|
header_params = opts[:header_params] || {}
|
|
1819
1468
|
# HTTP header 'Accept' (if needed)
|
|
1820
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1469
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1821
1470
|
# HTTP header 'Content-Type'
|
|
1822
1471
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1823
1472
|
if !content_type.nil?
|
|
@@ -1889,7 +1538,7 @@ module OpenApiOpenAIClient
|
|
|
1889
1538
|
# header parameters
|
|
1890
1539
|
header_params = opts[:header_params] || {}
|
|
1891
1540
|
# HTTP header 'Accept' (if needed)
|
|
1892
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1541
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1893
1542
|
# HTTP header 'Content-Type'
|
|
1894
1543
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1895
1544
|
if !content_type.nil?
|
|
@@ -1967,7 +1616,7 @@ module OpenApiOpenAIClient
|
|
|
1967
1616
|
# header parameters
|
|
1968
1617
|
header_params = opts[:header_params] || {}
|
|
1969
1618
|
# HTTP header 'Accept' (if needed)
|
|
1970
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1619
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1971
1620
|
# HTTP header 'Content-Type'
|
|
1972
1621
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1973
1622
|
if !content_type.nil?
|