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
|
|
|
@@ -15,11 +15,11 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module OpenApiOpenAIClient
|
|
17
17
|
# Represents a streamed chunk of a chat completion response returned by model, based on the provided input.
|
|
18
|
-
class CreateChatCompletionStreamResponse
|
|
18
|
+
class CreateChatCompletionStreamResponse < ApiModelBase
|
|
19
19
|
# A unique identifier for the chat completion. Each chunk has the same ID.
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
-
# A list of chat completion choices. Can
|
|
22
|
+
# A list of chat completion choices. Can contain more than one elements if `n` is greater than 1. Can also be empty for the last chunk if you set `stream_options: {\"include_usage\": true}`.
|
|
23
23
|
attr_accessor :choices
|
|
24
24
|
|
|
25
25
|
# The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.
|
|
@@ -28,12 +28,17 @@ module OpenApiOpenAIClient
|
|
|
28
28
|
# The model to generate the completion.
|
|
29
29
|
attr_accessor :model
|
|
30
30
|
|
|
31
|
+
# The service tier used for processing the request. This field is only included if the `service_tier` parameter is specified in the request.
|
|
32
|
+
attr_accessor :service_tier
|
|
33
|
+
|
|
31
34
|
# This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.
|
|
32
35
|
attr_accessor :system_fingerprint
|
|
33
36
|
|
|
34
37
|
# The object type, which is always `chat.completion.chunk`.
|
|
35
38
|
attr_accessor :object
|
|
36
39
|
|
|
40
|
+
attr_accessor :usage
|
|
41
|
+
|
|
37
42
|
class EnumAttributeValidator
|
|
38
43
|
attr_reader :datatype
|
|
39
44
|
attr_reader :allowable_values
|
|
@@ -63,14 +68,21 @@ module OpenApiOpenAIClient
|
|
|
63
68
|
:'choices' => :'choices',
|
|
64
69
|
:'created' => :'created',
|
|
65
70
|
:'model' => :'model',
|
|
71
|
+
:'service_tier' => :'service_tier',
|
|
66
72
|
:'system_fingerprint' => :'system_fingerprint',
|
|
67
|
-
:'object' => :'object'
|
|
73
|
+
:'object' => :'object',
|
|
74
|
+
:'usage' => :'usage'
|
|
68
75
|
}
|
|
69
76
|
end
|
|
70
77
|
|
|
78
|
+
# Returns attribute mapping this model knows about
|
|
79
|
+
def self.acceptable_attribute_map
|
|
80
|
+
attribute_map
|
|
81
|
+
end
|
|
82
|
+
|
|
71
83
|
# Returns all the JSON keys this model knows about
|
|
72
84
|
def self.acceptable_attributes
|
|
73
|
-
|
|
85
|
+
acceptable_attribute_map.values
|
|
74
86
|
end
|
|
75
87
|
|
|
76
88
|
# Attribute type mapping.
|
|
@@ -80,14 +92,18 @@ module OpenApiOpenAIClient
|
|
|
80
92
|
:'choices' => :'Array<CreateChatCompletionStreamResponseChoicesInner>',
|
|
81
93
|
:'created' => :'Integer',
|
|
82
94
|
:'model' => :'String',
|
|
95
|
+
:'service_tier' => :'String',
|
|
83
96
|
:'system_fingerprint' => :'String',
|
|
84
|
-
:'object' => :'String'
|
|
97
|
+
:'object' => :'String',
|
|
98
|
+
:'usage' => :'CreateChatCompletionStreamResponseUsage'
|
|
85
99
|
}
|
|
86
100
|
end
|
|
87
101
|
|
|
88
102
|
# List of attributes with nullable: true
|
|
89
103
|
def self.openapi_nullable
|
|
90
104
|
Set.new([
|
|
105
|
+
:'service_tier',
|
|
106
|
+
:'usage'
|
|
91
107
|
])
|
|
92
108
|
end
|
|
93
109
|
|
|
@@ -99,9 +115,10 @@ module OpenApiOpenAIClient
|
|
|
99
115
|
end
|
|
100
116
|
|
|
101
117
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
118
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
102
119
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
103
|
-
if (!
|
|
104
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiOpenAIClient::CreateChatCompletionStreamResponse`. Please check the name to make sure it's valid. List of attributes: " +
|
|
120
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
121
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiOpenAIClient::CreateChatCompletionStreamResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
105
122
|
end
|
|
106
123
|
h[k.to_sym] = v
|
|
107
124
|
}
|
|
@@ -132,6 +149,10 @@ module OpenApiOpenAIClient
|
|
|
132
149
|
self.model = nil
|
|
133
150
|
end
|
|
134
151
|
|
|
152
|
+
if attributes.key?(:'service_tier')
|
|
153
|
+
self.service_tier = attributes[:'service_tier']
|
|
154
|
+
end
|
|
155
|
+
|
|
135
156
|
if attributes.key?(:'system_fingerprint')
|
|
136
157
|
self.system_fingerprint = attributes[:'system_fingerprint']
|
|
137
158
|
end
|
|
@@ -141,6 +162,10 @@ module OpenApiOpenAIClient
|
|
|
141
162
|
else
|
|
142
163
|
self.object = nil
|
|
143
164
|
end
|
|
165
|
+
|
|
166
|
+
if attributes.key?(:'usage')
|
|
167
|
+
self.usage = attributes[:'usage']
|
|
168
|
+
end
|
|
144
169
|
end
|
|
145
170
|
|
|
146
171
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -179,12 +204,64 @@ module OpenApiOpenAIClient
|
|
|
179
204
|
return false if @choices.nil?
|
|
180
205
|
return false if @created.nil?
|
|
181
206
|
return false if @model.nil?
|
|
207
|
+
service_tier_validator = EnumAttributeValidator.new('String', ["scale", "default"])
|
|
208
|
+
return false unless service_tier_validator.valid?(@service_tier)
|
|
182
209
|
return false if @object.nil?
|
|
183
210
|
object_validator = EnumAttributeValidator.new('String', ["chat.completion.chunk"])
|
|
184
211
|
return false unless object_validator.valid?(@object)
|
|
185
212
|
true
|
|
186
213
|
end
|
|
187
214
|
|
|
215
|
+
# Custom attribute writer method with validation
|
|
216
|
+
# @param [Object] id Value to be assigned
|
|
217
|
+
def id=(id)
|
|
218
|
+
if id.nil?
|
|
219
|
+
fail ArgumentError, 'id cannot be nil'
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
@id = id
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Custom attribute writer method with validation
|
|
226
|
+
# @param [Object] choices Value to be assigned
|
|
227
|
+
def choices=(choices)
|
|
228
|
+
if choices.nil?
|
|
229
|
+
fail ArgumentError, 'choices cannot be nil'
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
@choices = choices
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Custom attribute writer method with validation
|
|
236
|
+
# @param [Object] created Value to be assigned
|
|
237
|
+
def created=(created)
|
|
238
|
+
if created.nil?
|
|
239
|
+
fail ArgumentError, 'created cannot be nil'
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
@created = created
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Custom attribute writer method with validation
|
|
246
|
+
# @param [Object] model Value to be assigned
|
|
247
|
+
def model=(model)
|
|
248
|
+
if model.nil?
|
|
249
|
+
fail ArgumentError, 'model cannot be nil'
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
@model = model
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
256
|
+
# @param [Object] service_tier Object to be assigned
|
|
257
|
+
def service_tier=(service_tier)
|
|
258
|
+
validator = EnumAttributeValidator.new('String', ["scale", "default"])
|
|
259
|
+
unless validator.valid?(service_tier)
|
|
260
|
+
fail ArgumentError, "invalid value for \"service_tier\", must be one of #{validator.allowable_values}."
|
|
261
|
+
end
|
|
262
|
+
@service_tier = service_tier
|
|
263
|
+
end
|
|
264
|
+
|
|
188
265
|
# Custom attribute writer method checking allowed values (enum).
|
|
189
266
|
# @param [Object] object Object to be assigned
|
|
190
267
|
def object=(object)
|
|
@@ -204,8 +281,10 @@ module OpenApiOpenAIClient
|
|
|
204
281
|
choices == o.choices &&
|
|
205
282
|
created == o.created &&
|
|
206
283
|
model == o.model &&
|
|
284
|
+
service_tier == o.service_tier &&
|
|
207
285
|
system_fingerprint == o.system_fingerprint &&
|
|
208
|
-
object == o.object
|
|
286
|
+
object == o.object &&
|
|
287
|
+
usage == o.usage
|
|
209
288
|
end
|
|
210
289
|
|
|
211
290
|
# @see the `==` method
|
|
@@ -217,7 +296,7 @@ module OpenApiOpenAIClient
|
|
|
217
296
|
# Calculates hash code according to all attributes.
|
|
218
297
|
# @return [Integer] Hash code
|
|
219
298
|
def hash
|
|
220
|
-
[id, choices, created, model, system_fingerprint, object].hash
|
|
299
|
+
[id, choices, created, model, service_tier, system_fingerprint, object, usage].hash
|
|
221
300
|
end
|
|
222
301
|
|
|
223
302
|
# Builds the object from hash
|
|
@@ -243,61 +322,6 @@ module OpenApiOpenAIClient
|
|
|
243
322
|
new(transformed_hash)
|
|
244
323
|
end
|
|
245
324
|
|
|
246
|
-
# Deserializes the data based on type
|
|
247
|
-
# @param string type Data type
|
|
248
|
-
# @param string value Value to be deserialized
|
|
249
|
-
# @return [Object] Deserialized data
|
|
250
|
-
def self._deserialize(type, value)
|
|
251
|
-
case type.to_sym
|
|
252
|
-
when :Time
|
|
253
|
-
Time.parse(value)
|
|
254
|
-
when :Date
|
|
255
|
-
Date.parse(value)
|
|
256
|
-
when :String
|
|
257
|
-
value.to_s
|
|
258
|
-
when :Integer
|
|
259
|
-
value.to_i
|
|
260
|
-
when :Float
|
|
261
|
-
value.to_f
|
|
262
|
-
when :Boolean
|
|
263
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
264
|
-
true
|
|
265
|
-
else
|
|
266
|
-
false
|
|
267
|
-
end
|
|
268
|
-
when :Object
|
|
269
|
-
# generic object (usually a Hash), return directly
|
|
270
|
-
value
|
|
271
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
272
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
273
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
274
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
275
|
-
k_type = Regexp.last_match[:k_type]
|
|
276
|
-
v_type = Regexp.last_match[:v_type]
|
|
277
|
-
{}.tap do |hash|
|
|
278
|
-
value.each do |k, v|
|
|
279
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
280
|
-
end
|
|
281
|
-
end
|
|
282
|
-
else # model
|
|
283
|
-
# models (e.g. Pet) or oneOf
|
|
284
|
-
klass = OpenApiOpenAIClient.const_get(type)
|
|
285
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
286
|
-
end
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
# Returns the string representation of the object
|
|
290
|
-
# @return [String] String presentation of the object
|
|
291
|
-
def to_s
|
|
292
|
-
to_hash.to_s
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
296
|
-
# @return [Hash] Returns the object in the form of hash
|
|
297
|
-
def to_body
|
|
298
|
-
to_hash
|
|
299
|
-
end
|
|
300
|
-
|
|
301
325
|
# Returns the object in the form of hash
|
|
302
326
|
# @return [Hash] Returns the object in the form of hash
|
|
303
327
|
def to_hash
|
|
@@ -314,24 +338,6 @@ module OpenApiOpenAIClient
|
|
|
314
338
|
hash
|
|
315
339
|
end
|
|
316
340
|
|
|
317
|
-
# Outputs non-array value in the form of hash
|
|
318
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
319
|
-
# @param [Object] value Any valid value
|
|
320
|
-
# @return [Hash] Returns the value in the form of hash
|
|
321
|
-
def _to_hash(value)
|
|
322
|
-
if value.is_a?(Array)
|
|
323
|
-
value.compact.map { |v| _to_hash(v) }
|
|
324
|
-
elsif value.is_a?(Hash)
|
|
325
|
-
{}.tap do |hash|
|
|
326
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
327
|
-
end
|
|
328
|
-
elsif value.respond_to? :to_hash
|
|
329
|
-
value.to_hash
|
|
330
|
-
else
|
|
331
|
-
value
|
|
332
|
-
end
|
|
333
|
-
end
|
|
334
|
-
|
|
335
341
|
end
|
|
336
342
|
|
|
337
343
|
end
|
|
@@ -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
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module OpenApiOpenAIClient
|
|
17
|
-
class CreateChatCompletionStreamResponseChoicesInner
|
|
17
|
+
class CreateChatCompletionStreamResponseChoicesInner < ApiModelBase
|
|
18
18
|
attr_accessor :delta
|
|
19
19
|
|
|
20
20
|
attr_accessor :logprobs
|
|
@@ -57,9 +57,14 @@ module OpenApiOpenAIClient
|
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
# Returns attribute mapping this model knows about
|
|
61
|
+
def self.acceptable_attribute_map
|
|
62
|
+
attribute_map
|
|
63
|
+
end
|
|
64
|
+
|
|
60
65
|
# Returns all the JSON keys this model knows about
|
|
61
66
|
def self.acceptable_attributes
|
|
62
|
-
|
|
67
|
+
acceptable_attribute_map.values
|
|
63
68
|
end
|
|
64
69
|
|
|
65
70
|
# Attribute type mapping.
|
|
@@ -88,9 +93,10 @@ module OpenApiOpenAIClient
|
|
|
88
93
|
end
|
|
89
94
|
|
|
90
95
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
96
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
91
97
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
92
|
-
if (!
|
|
93
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiOpenAIClient::CreateChatCompletionStreamResponseChoicesInner`. Please check the name to make sure it's valid. List of attributes: " +
|
|
98
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
99
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiOpenAIClient::CreateChatCompletionStreamResponseChoicesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
94
100
|
end
|
|
95
101
|
h[k.to_sym] = v
|
|
96
102
|
}
|
|
@@ -145,6 +151,16 @@ module OpenApiOpenAIClient
|
|
|
145
151
|
true
|
|
146
152
|
end
|
|
147
153
|
|
|
154
|
+
# Custom attribute writer method with validation
|
|
155
|
+
# @param [Object] delta Value to be assigned
|
|
156
|
+
def delta=(delta)
|
|
157
|
+
if delta.nil?
|
|
158
|
+
fail ArgumentError, 'delta cannot be nil'
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
@delta = delta
|
|
162
|
+
end
|
|
163
|
+
|
|
148
164
|
# Custom attribute writer method checking allowed values (enum).
|
|
149
165
|
# @param [Object] finish_reason Object to be assigned
|
|
150
166
|
def finish_reason=(finish_reason)
|
|
@@ -155,6 +171,16 @@ module OpenApiOpenAIClient
|
|
|
155
171
|
@finish_reason = finish_reason
|
|
156
172
|
end
|
|
157
173
|
|
|
174
|
+
# Custom attribute writer method with validation
|
|
175
|
+
# @param [Object] index Value to be assigned
|
|
176
|
+
def index=(index)
|
|
177
|
+
if index.nil?
|
|
178
|
+
fail ArgumentError, 'index cannot be nil'
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
@index = index
|
|
182
|
+
end
|
|
183
|
+
|
|
158
184
|
# Checks equality by comparing each attribute.
|
|
159
185
|
# @param [Object] Object to be compared
|
|
160
186
|
def ==(o)
|
|
@@ -201,61 +227,6 @@ module OpenApiOpenAIClient
|
|
|
201
227
|
new(transformed_hash)
|
|
202
228
|
end
|
|
203
229
|
|
|
204
|
-
# Deserializes the data based on type
|
|
205
|
-
# @param string type Data type
|
|
206
|
-
# @param string value Value to be deserialized
|
|
207
|
-
# @return [Object] Deserialized data
|
|
208
|
-
def self._deserialize(type, value)
|
|
209
|
-
case type.to_sym
|
|
210
|
-
when :Time
|
|
211
|
-
Time.parse(value)
|
|
212
|
-
when :Date
|
|
213
|
-
Date.parse(value)
|
|
214
|
-
when :String
|
|
215
|
-
value.to_s
|
|
216
|
-
when :Integer
|
|
217
|
-
value.to_i
|
|
218
|
-
when :Float
|
|
219
|
-
value.to_f
|
|
220
|
-
when :Boolean
|
|
221
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
222
|
-
true
|
|
223
|
-
else
|
|
224
|
-
false
|
|
225
|
-
end
|
|
226
|
-
when :Object
|
|
227
|
-
# generic object (usually a Hash), return directly
|
|
228
|
-
value
|
|
229
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
230
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
231
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
232
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
233
|
-
k_type = Regexp.last_match[:k_type]
|
|
234
|
-
v_type = Regexp.last_match[:v_type]
|
|
235
|
-
{}.tap do |hash|
|
|
236
|
-
value.each do |k, v|
|
|
237
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
else # model
|
|
241
|
-
# models (e.g. Pet) or oneOf
|
|
242
|
-
klass = OpenApiOpenAIClient.const_get(type)
|
|
243
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
244
|
-
end
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
# Returns the string representation of the object
|
|
248
|
-
# @return [String] String presentation of the object
|
|
249
|
-
def to_s
|
|
250
|
-
to_hash.to_s
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
254
|
-
# @return [Hash] Returns the object in the form of hash
|
|
255
|
-
def to_body
|
|
256
|
-
to_hash
|
|
257
|
-
end
|
|
258
|
-
|
|
259
230
|
# Returns the object in the form of hash
|
|
260
231
|
# @return [Hash] Returns the object in the form of hash
|
|
261
232
|
def to_hash
|
|
@@ -272,24 +243,6 @@ module OpenApiOpenAIClient
|
|
|
272
243
|
hash
|
|
273
244
|
end
|
|
274
245
|
|
|
275
|
-
# Outputs non-array value in the form of hash
|
|
276
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
277
|
-
# @param [Object] value Any valid value
|
|
278
|
-
# @return [Hash] Returns the value in the form of hash
|
|
279
|
-
def _to_hash(value)
|
|
280
|
-
if value.is_a?(Array)
|
|
281
|
-
value.compact.map { |v| _to_hash(v) }
|
|
282
|
-
elsif value.is_a?(Hash)
|
|
283
|
-
{}.tap do |hash|
|
|
284
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
285
|
-
end
|
|
286
|
-
elsif value.respond_to? :to_hash
|
|
287
|
-
value.to_hash
|
|
288
|
-
else
|
|
289
|
-
value
|
|
290
|
-
end
|
|
291
|
-
end
|
|
292
|
-
|
|
293
246
|
end
|
|
294
247
|
|
|
295
248
|
end
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OpenAI API
|
|
3
|
+
|
|
4
|
+
#The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.3.0
|
|
7
|
+
Contact: blah+oapicf@cliffano.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module OpenApiOpenAIClient
|
|
17
|
+
# An optional field that will only be present when you set `stream_options: {\"include_usage\": true}` in your request. When present, it contains a null value except for the last chunk which contains the token usage statistics for the entire request.
|
|
18
|
+
class CreateChatCompletionStreamResponseUsage < ApiModelBase
|
|
19
|
+
# Number of tokens in the generated completion.
|
|
20
|
+
attr_accessor :completion_tokens
|
|
21
|
+
|
|
22
|
+
# Number of tokens in the prompt.
|
|
23
|
+
attr_accessor :prompt_tokens
|
|
24
|
+
|
|
25
|
+
# Total number of tokens used in the request (prompt + completion).
|
|
26
|
+
attr_accessor :total_tokens
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'completion_tokens' => :'completion_tokens',
|
|
32
|
+
:'prompt_tokens' => :'prompt_tokens',
|
|
33
|
+
:'total_tokens' => :'total_tokens'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns attribute mapping this model knows about
|
|
38
|
+
def self.acceptable_attribute_map
|
|
39
|
+
attribute_map
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Returns all the JSON keys this model knows about
|
|
43
|
+
def self.acceptable_attributes
|
|
44
|
+
acceptable_attribute_map.values
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
def self.openapi_types
|
|
49
|
+
{
|
|
50
|
+
:'completion_tokens' => :'Integer',
|
|
51
|
+
:'prompt_tokens' => :'Integer',
|
|
52
|
+
:'total_tokens' => :'Integer'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenApiOpenAIClient::CreateChatCompletionStreamResponseUsage` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiOpenAIClient::CreateChatCompletionStreamResponseUsage`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
|
+
end
|
|
75
|
+
h[k.to_sym] = v
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'completion_tokens')
|
|
79
|
+
self.completion_tokens = attributes[:'completion_tokens']
|
|
80
|
+
else
|
|
81
|
+
self.completion_tokens = nil
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'prompt_tokens')
|
|
85
|
+
self.prompt_tokens = attributes[:'prompt_tokens']
|
|
86
|
+
else
|
|
87
|
+
self.prompt_tokens = nil
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'total_tokens')
|
|
91
|
+
self.total_tokens = attributes[:'total_tokens']
|
|
92
|
+
else
|
|
93
|
+
self.total_tokens = nil
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
98
|
+
# @return Array for valid properties with the reasons
|
|
99
|
+
def list_invalid_properties
|
|
100
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
101
|
+
invalid_properties = Array.new
|
|
102
|
+
if @completion_tokens.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "completion_tokens", completion_tokens cannot be nil.')
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if @prompt_tokens.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "prompt_tokens", prompt_tokens cannot be nil.')
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if @total_tokens.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "total_tokens", total_tokens cannot be nil.')
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
invalid_properties
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Check to see if the all the properties in the model are valid
|
|
118
|
+
# @return true if the model is valid
|
|
119
|
+
def valid?
|
|
120
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
121
|
+
return false if @completion_tokens.nil?
|
|
122
|
+
return false if @prompt_tokens.nil?
|
|
123
|
+
return false if @total_tokens.nil?
|
|
124
|
+
true
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Custom attribute writer method with validation
|
|
128
|
+
# @param [Object] completion_tokens Value to be assigned
|
|
129
|
+
def completion_tokens=(completion_tokens)
|
|
130
|
+
if completion_tokens.nil?
|
|
131
|
+
fail ArgumentError, 'completion_tokens cannot be nil'
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
@completion_tokens = completion_tokens
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Custom attribute writer method with validation
|
|
138
|
+
# @param [Object] prompt_tokens Value to be assigned
|
|
139
|
+
def prompt_tokens=(prompt_tokens)
|
|
140
|
+
if prompt_tokens.nil?
|
|
141
|
+
fail ArgumentError, 'prompt_tokens cannot be nil'
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
@prompt_tokens = prompt_tokens
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Custom attribute writer method with validation
|
|
148
|
+
# @param [Object] total_tokens Value to be assigned
|
|
149
|
+
def total_tokens=(total_tokens)
|
|
150
|
+
if total_tokens.nil?
|
|
151
|
+
fail ArgumentError, 'total_tokens cannot be nil'
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
@total_tokens = total_tokens
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Checks equality by comparing each attribute.
|
|
158
|
+
# @param [Object] Object to be compared
|
|
159
|
+
def ==(o)
|
|
160
|
+
return true if self.equal?(o)
|
|
161
|
+
self.class == o.class &&
|
|
162
|
+
completion_tokens == o.completion_tokens &&
|
|
163
|
+
prompt_tokens == o.prompt_tokens &&
|
|
164
|
+
total_tokens == o.total_tokens
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# @see the `==` method
|
|
168
|
+
# @param [Object] Object to be compared
|
|
169
|
+
def eql?(o)
|
|
170
|
+
self == o
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Calculates hash code according to all attributes.
|
|
174
|
+
# @return [Integer] Hash code
|
|
175
|
+
def hash
|
|
176
|
+
[completion_tokens, prompt_tokens, total_tokens].hash
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Builds the object from hash
|
|
180
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
181
|
+
# @return [Object] Returns the model itself
|
|
182
|
+
def self.build_from_hash(attributes)
|
|
183
|
+
return nil unless attributes.is_a?(Hash)
|
|
184
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
185
|
+
transformed_hash = {}
|
|
186
|
+
openapi_types.each_pair do |key, type|
|
|
187
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
188
|
+
transformed_hash["#{key}"] = nil
|
|
189
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
190
|
+
# check to ensure the input is an array given that the attribute
|
|
191
|
+
# is documented as an array but the input is not
|
|
192
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
193
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
194
|
+
end
|
|
195
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
196
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
new(transformed_hash)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the object in the form of hash
|
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
|
204
|
+
def to_hash
|
|
205
|
+
hash = {}
|
|
206
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
207
|
+
value = self.send(attr)
|
|
208
|
+
if value.nil?
|
|
209
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
210
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
hash[param] = _to_hash(value)
|
|
214
|
+
end
|
|
215
|
+
hash
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|