litellm_client 1.0.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 +7 -0
- data/Gemfile +9 -0
- data/README.md +741 -0
- data/Rakefile +10 -0
- data/docs/AddTeamCallback.md +22 -0
- data/docs/Annotations.md +15 -0
- data/docs/AnthropicPassThroughApi.md +367 -0
- data/docs/ApiBase.md +15 -0
- data/docs/ApiKey.md +15 -0
- data/docs/ApiVersion.md +15 -0
- data/docs/ApplyGuardrailRequest.md +24 -0
- data/docs/ApplyGuardrailResponse.md +18 -0
- data/docs/AssemblyAIEUPassThroughApi.md +357 -0
- data/docs/AssemblyAIPassThroughApi.md +357 -0
- data/docs/AssistantsApi.md +1141 -0
- data/docs/AudioApi.md +289 -0
- data/docs/AuditLogResponse.md +34 -0
- data/docs/AuditLoggingApi.md +173 -0
- data/docs/AwsAccessKeyId.md +15 -0
- data/docs/AwsRegionName.md +15 -0
- data/docs/AwsSecretAccessKey.md +15 -0
- data/docs/AzurePassThroughApi.md +367 -0
- data/docs/BaseModel.md +15 -0
- data/docs/BatchApi.md +913 -0
- data/docs/BatchSize.md +15 -0
- data/docs/BedrockPassThroughApi.md +367 -0
- data/docs/BlockKeyRequest.md +18 -0
- data/docs/BlockTeamRequest.md +18 -0
- data/docs/BlockUsers.md +18 -0
- data/docs/BodyTestModelConnectionHealthTestConnectionPost.md +20 -0
- data/docs/BreakdownMetrics.md +24 -0
- data/docs/BudgetConfig.md +24 -0
- data/docs/BudgetDeleteRequest.md +18 -0
- data/docs/BudgetDuration.md +15 -0
- data/docs/BudgetManagementApi.md +436 -0
- data/docs/BudgetNewRequest.md +34 -0
- data/docs/BudgetRequest.md +18 -0
- data/docs/BudgetSpendTrackingApi.md +694 -0
- data/docs/Bytes.md +15 -0
- data/docs/CacheControl.md +18 -0
- data/docs/CachePingResponse.md +28 -0
- data/docs/CachingApi.md +421 -0
- data/docs/CallTypes.md +15 -0
- data/docs/ChatCompletionAnnotation.md +20 -0
- data/docs/ChatCompletionAnnotationURLCitation.md +24 -0
- data/docs/ChatCompletionAudioResponse.md +24 -0
- data/docs/ChatCompletionCachedContent.md +18 -0
- data/docs/ChatCompletionRedactedThinkingBlock.md +22 -0
- data/docs/ChatCompletionThinkingBlock.md +24 -0
- data/docs/ChatCompletionTokenLogprob.md +24 -0
- data/docs/ChatCompletionsApi.md +299 -0
- data/docs/ChoiceLogprobs.md +18 -0
- data/docs/Choices.md +26 -0
- data/docs/Choices1Inner.md +26 -0
- data/docs/CoherePassThroughApi.md +367 -0
- data/docs/CompletionsApi.md +299 -0
- data/docs/ConfigurableClientsideAuthParams.md +15 -0
- data/docs/ConfigurableClientsideAuthParamsAnyOfInner.md +18 -0
- data/docs/ConfigurableClientsideParamsCustomAuth.md +18 -0
- data/docs/Content.md +15 -0
- data/docs/Content1.md +15 -0
- data/docs/CreateCredentialItem.md +24 -0
- data/docs/CreateGuardrailRequest.md +18 -0
- data/docs/CreatedAt.md +15 -0
- data/docs/CreatedBy.md +15 -0
- data/docs/CredentialItem.md +22 -0
- data/docs/CredentialManagementApi.md +444 -0
- data/docs/CustomLlmProvider.md +15 -0
- data/docs/CustomLlmProvider1.md +15 -0
- data/docs/CustomerManagementApi.md +508 -0
- data/docs/DailySpendData.md +22 -0
- data/docs/DailySpendMetadata.md +40 -0
- data/docs/DefaultApi.md +811 -0
- data/docs/DefaultInternalUserParams.md +24 -0
- data/docs/DefaultTeamSSOParams.md +26 -0
- data/docs/DefaultTeamSettingsResponse.md +20 -0
- data/docs/DeleteCustomerRequest.md +18 -0
- data/docs/DeleteOrganizationRequest.md +18 -0
- data/docs/DeleteTeamRequest.md +18 -0
- data/docs/DeleteUserRequest.md +18 -0
- data/docs/Deployment.md +22 -0
- data/docs/Description.md +15 -0
- data/docs/Destructivehint.md +15 -0
- data/docs/EmailEvent.md +15 -0
- data/docs/EmailEventSettings.md +20 -0
- data/docs/EmailEventSettingsResponse.md +18 -0
- data/docs/EmailEventSettingsUpdateRequest.md +18 -0
- data/docs/EmailManagementApi.md +217 -0
- data/docs/EmbeddingsApi.md +299 -0
- data/docs/Endtime.md +15 -0
- data/docs/ErrorResponse.md +18 -0
- data/docs/Expires.md +15 -0
- data/docs/FilesApi.md +1165 -0
- data/docs/FineTuningApi.md +607 -0
- data/docs/FunctionCall.md +20 -0
- data/docs/GenerateKeyRequest.md +74 -0
- data/docs/GenerateKeyResponse.md +88 -0
- data/docs/GetTeamMemberPermissionsResponse.md +22 -0
- data/docs/GoogleAIStudioPassThroughApi.md +332 -0
- data/docs/Guardrail.md +28 -0
- data/docs/GuardrailInfoLiteLLMParamsResponse.md +24 -0
- data/docs/GuardrailInfoResponse.md +30 -0
- data/docs/GuardrailsApi.md +791 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/HealthApi.md +820 -0
- data/docs/Hyperparameters.md +22 -0
- data/docs/IPAddress.md +18 -0
- data/docs/Id.md +15 -0
- data/docs/Idempotenthint.md +15 -0
- data/docs/ImagesApi.md +455 -0
- data/docs/InputCostPerPixel.md +15 -0
- data/docs/InputCostPerSecond.md +15 -0
- data/docs/InputCostPerToken.md +15 -0
- data/docs/Integrations.md +15 -0
- data/docs/InternalUserManagementApi.md +475 -0
- data/docs/InternalUserSettingsResponse.md +20 -0
- data/docs/KeyHealthResponse.md +20 -0
- data/docs/KeyListResponseObject.md +24 -0
- data/docs/KeyListResponseObjectKeysInner.md +134 -0
- data/docs/KeyManagementApi.md +780 -0
- data/docs/KeyMetadata.md +20 -0
- data/docs/KeyMetricWithMetadata.md +20 -0
- data/docs/KeyRequest.md +20 -0
- data/docs/LakeraCategoryThresholds.md +20 -0
- data/docs/LangfusePassThroughApi.md +332 -0
- data/docs/LearningRateMultiplier.md +15 -0
- data/docs/ListGuardrailsResponse.md +18 -0
- data/docs/ListMCPToolsRestAPIResponseObject.md +26 -0
- data/docs/ListMCPToolsRestAPIResponseObjectAnnotations.md +26 -0
- data/docs/ListMCPToolsRestAPIResponseObjectMcpInfo.md +22 -0
- data/docs/LiteLLMBudgetTable.md +32 -0
- data/docs/LiteLLMEndUserTable.md +30 -0
- data/docs/LiteLLMFineTuningJobCreate.md +32 -0
- data/docs/LiteLLMFineTuningJobCreateHyperparameters.md +22 -0
- data/docs/LiteLLMMCPServerTable.md +38 -0
- data/docs/LiteLLMManagedVectorStore.md +32 -0
- data/docs/LiteLLMManagedVectorStoreListResponse.md +26 -0
- data/docs/LiteLLMModelTable.md +26 -0
- data/docs/LiteLLMObjectPermissionBase.md +20 -0
- data/docs/LiteLLMObjectPermissionTable.md +22 -0
- data/docs/LiteLLMOrganizationMembershipTable.md +34 -0
- data/docs/LiteLLMOrganizationTableUpdate.md +32 -0
- data/docs/LiteLLMOrganizationTableWithMembers.md +48 -0
- data/docs/LiteLLMParams.md +88 -0
- data/docs/LiteLLMSpendLogs.md +54 -0
- data/docs/LiteLLMTeamMembership.md +24 -0
- data/docs/LiteLLMTeamTable.md +62 -0
- data/docs/LiteLLMUserTable.md +56 -0
- data/docs/LiteLLMUserTableWithKeyCount.md +58 -0
- data/docs/LiteLLMVerificationToken.md +80 -0
- data/docs/LitellmCredentialName.md +15 -0
- data/docs/LitellmParams.md +92 -0
- data/docs/LitellmTraceId.md +15 -0
- data/docs/LitellmUserRoles.md +15 -0
- data/docs/LlmUtilsApi.md +219 -0
- data/docs/LoggingCallbackStatus.md +22 -0
- data/docs/Logprobs.md +18 -0
- data/docs/MCPInfo.md +22 -0
- data/docs/MaxBudget.md +15 -0
- data/docs/MaxFileSizeMb.md +15 -0
- data/docs/MaxRetries.md +15 -0
- data/docs/McpApi.md +519 -0
- data/docs/Member.md +22 -0
- data/docs/Member1.md +22 -0
- data/docs/Member2.md +22 -0
- data/docs/MergeReasoningContentInChoices.md +15 -0
- data/docs/Message.md +34 -0
- data/docs/MessageAudio.md +24 -0
- data/docs/MessageFunctionCall.md +20 -0
- data/docs/Messages.md +15 -0
- data/docs/MetricWithMetadata.md +20 -0
- data/docs/MistralPassThroughApi.md +367 -0
- data/docs/MockResponse.md +28 -0
- data/docs/Mode.md +15 -0
- data/docs/Mode1.md +15 -0
- data/docs/Model.md +15 -0
- data/docs/ModelAliases.md +15 -0
- data/docs/ModelInfo.md +15 -0
- data/docs/ModelInfoDelete.md +18 -0
- data/docs/ModelManagementApi.md +679 -0
- data/docs/ModelResponse.md +28 -0
- data/docs/ModerationsApi.md +145 -0
- data/docs/NEpochs.md +15 -0
- data/docs/Name.md +15 -0
- data/docs/NewCustomerRequest.md +46 -0
- data/docs/NewMCPServerRequest.md +30 -0
- data/docs/NewOrganizationRequest.md +42 -0
- data/docs/NewOrganizationResponse.md +44 -0
- data/docs/NewTeamRequest.md +52 -0
- data/docs/NewUserRequest.md +76 -0
- data/docs/NewUserResponse.md +96 -0
- data/docs/OpenAIPassThroughApi.md +367 -0
- data/docs/Openworldhint.md +15 -0
- data/docs/OrgMember.md +22 -0
- data/docs/Organization.md +15 -0
- data/docs/OrganizationAddMemberResponse.md +22 -0
- data/docs/OrganizationManagementApi.md +652 -0
- data/docs/OrganizationMemberAddRequest.md +22 -0
- data/docs/OrganizationMemberDeleteRequest.md +22 -0
- data/docs/OrganizationMemberUpdateRequest.md +26 -0
- data/docs/OrganizationRequest.md +18 -0
- data/docs/OutputCostPerPixel.md +15 -0
- data/docs/OutputCostPerSecond.md +15 -0
- data/docs/OutputCostPerToken.md +15 -0
- data/docs/PaginatedAuditLogResponse.md +26 -0
- data/docs/PassThroughApi.md +4562 -0
- data/docs/PassThroughEndpointResponse.md +18 -0
- data/docs/PassThroughGenericEndpoint.md +22 -0
- data/docs/PatchGuardrailLitellmParams.md +20 -0
- data/docs/PatchGuardrailRequest.md +22 -0
- data/docs/PiiAction.md +15 -0
- data/docs/PiiEntityType.md +15 -0
- data/docs/ProviderBudgetResponse.md +18 -0
- data/docs/ProviderBudgetResponseObject.md +24 -0
- data/docs/ProviderSpecificFields.md +15 -0
- data/docs/RawRequestTypedDict.md +24 -0
- data/docs/Readonlyhint.md +15 -0
- data/docs/ReasoningContent.md +15 -0
- data/docs/RegenerateKeyRequest.md +76 -0
- data/docs/RegionName.md +15 -0
- data/docs/RerankApi.md +208 -0
- data/docs/Resources.md +15 -0
- data/docs/Response.md +15 -0
- data/docs/ResponsesApi.md +577 -0
- data/docs/Rpm.md +15 -0
- data/docs/SCIMGroup.md +28 -0
- data/docs/SCIMListResponse.md +26 -0
- data/docs/SCIMMember.md +20 -0
- data/docs/SCIMPatchOp.md +20 -0
- data/docs/SCIMPatchOperation.md +22 -0
- data/docs/SCIMUser.md +36 -0
- data/docs/SCIMUserEmail.md +22 -0
- data/docs/SCIMUserGroup.md +22 -0
- data/docs/SCIMUserName.md +28 -0
- data/docs/SCIMV2Api.md +889 -0
- data/docs/SSOConfig.md +40 -0
- data/docs/SSOSettingsApi.md +430 -0
- data/docs/SSOSettingsResponse.md +20 -0
- data/docs/Seed.md +15 -0
- data/docs/Service.md +15 -0
- data/docs/SpendAnalyticsPaginatedResponse.md +20 -0
- data/docs/SpendCalculateRequest.md +22 -0
- data/docs/SpendMetrics.md +34 -0
- data/docs/Starttime.md +15 -0
- data/docs/StreamTimeout.md +15 -0
- data/docs/Suffix.md +15 -0
- data/docs/SystemFingerprint.md +15 -0
- data/docs/TagConfig.md +30 -0
- data/docs/TagDeleteRequest.md +18 -0
- data/docs/TagInfoRequest.md +18 -0
- data/docs/TagManagementApi.md +450 -0
- data/docs/TagNewRequest.md +24 -0
- data/docs/TagUpdateRequest.md +24 -0
- data/docs/TeamAddMemberResponse.md +66 -0
- data/docs/TeamId.md +15 -0
- data/docs/TeamListResponse.md +26 -0
- data/docs/TeamManagementApi.md +1433 -0
- data/docs/TeamMemberAddRequest.md +22 -0
- data/docs/TeamMemberDeleteRequest.md +22 -0
- data/docs/TeamMemberUpdateRequest.md +26 -0
- data/docs/TeamMemberUpdateResponse.md +24 -0
- data/docs/TeamModelAddRequest.md +20 -0
- data/docs/TeamModelDeleteRequest.md +20 -0
- data/docs/TeamPublicModelName.md +15 -0
- data/docs/ThinkingBlocks.md +15 -0
- data/docs/ThinkingBlocksAnyOfInner.md +26 -0
- data/docs/Tier.md +15 -0
- data/docs/Timeout.md +15 -0
- data/docs/Title.md +15 -0
- data/docs/TokenCountRequest.md +22 -0
- data/docs/TokenCountResponse.md +24 -0
- data/docs/ToolAnnotations.md +26 -0
- data/docs/ToolCalls.md +15 -0
- data/docs/TopLogprob.md +22 -0
- data/docs/Tpm.md +15 -0
- data/docs/TransformRequestBody.md +20 -0
- data/docs/UiDiscoveryEndpoints.md +20 -0
- data/docs/UpdateCustomerRequest.md +30 -0
- data/docs/UpdateDeployment.md +22 -0
- data/docs/UpdateGuardrailRequest.md +18 -0
- data/docs/UpdateKeyRequest.md +74 -0
- data/docs/UpdateLiteLLMParams.md +88 -0
- data/docs/UpdateMCPServerRequest.md +30 -0
- data/docs/UpdateTeamMemberPermissionsRequest.md +20 -0
- data/docs/UpdateTeamRequest.md +44 -0
- data/docs/UpdateUserRequest.md +66 -0
- data/docs/UpdatedAt.md +15 -0
- data/docs/UpdatedBy.md +15 -0
- data/docs/UseInPassThrough.md +15 -0
- data/docs/UseLitellmProxy.md +15 -0
- data/docs/UserAPIKeyAuth.md +134 -0
- data/docs/UserListResponse.md +26 -0
- data/docs/VLLMPassThroughApi.md +367 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/ValidationFile.md +15 -0
- data/docs/VectorStoreDeleteRequest.md +18 -0
- data/docs/VectorStoreManagementApi.md +227 -0
- data/docs/VectorStoreMetadata.md +15 -0
- data/docs/VertexAIPassThroughApi.md +692 -0
- data/docs/VertexCredentials.md +15 -0
- data/docs/VertexLocation.md +15 -0
- data/docs/VertexProject.md +15 -0
- data/docs/WatsonxRegionName.md +15 -0
- data/git_push.sh +57 -0
- data/lib/litellm_client/api/anthropic_pass_through_api.rb +337 -0
- data/lib/litellm_client/api/assembly_ai_pass_through_api.rb +327 -0
- data/lib/litellm_client/api/assembly_aieu_pass_through_api.rb +327 -0
- data/lib/litellm_client/api/assistants_api.rb +994 -0
- data/lib/litellm_client/api/audio_api.rb +274 -0
- data/lib/litellm_client/api/audit_logging_api.rb +187 -0
- data/lib/litellm_client/api/azure_pass_through_api.rb +337 -0
- data/lib/litellm_client/api/batch_api.rb +792 -0
- data/lib/litellm_client/api/bedrock_pass_through_api.rb +337 -0
- data/lib/litellm_client/api/budget_management_api.rb +415 -0
- data/lib/litellm_client/api/budget_spend_tracking_api.rb +649 -0
- data/lib/litellm_client/api/caching_api.rb +364 -0
- data/lib/litellm_client/api/chat_completions_api.rb +260 -0
- data/lib/litellm_client/api/cohere_pass_through_api.rb +337 -0
- data/lib/litellm_client/api/completions_api.rb +260 -0
- data/lib/litellm_client/api/credential_management_api.rb +415 -0
- data/lib/litellm_client/api/customer_management_api.rb +483 -0
- data/lib/litellm_client/api/default_api.rb +728 -0
- data/lib/litellm_client/api/email_management_api.rb +204 -0
- data/lib/litellm_client/api/embeddings_api.rb +260 -0
- data/lib/litellm_client/api/files_api.rb +1064 -0
- data/lib/litellm_client/api/fine_tuning_api.rb +570 -0
- data/lib/litellm_client/api/google_ai_studio_pass_through_api.rb +337 -0
- data/lib/litellm_client/api/guardrails_api.rb +723 -0
- data/lib/litellm_client/api/health_api.rb +723 -0
- data/lib/litellm_client/api/images_api.rb +419 -0
- data/lib/litellm_client/api/internal_user_management_api.rb +472 -0
- data/lib/litellm_client/api/key_management_api.rb +735 -0
- data/lib/litellm_client/api/langfuse_pass_through_api.rb +337 -0
- data/lib/litellm_client/api/llm_utils_api.rb +218 -0
- data/lib/litellm_client/api/mcp_api.rb +467 -0
- data/lib/litellm_client/api/mistral_pass_through_api.rb +337 -0
- data/lib/litellm_client/api/model_management_api.rb +618 -0
- data/lib/litellm_client/api/moderations_api.rb +136 -0
- data/lib/litellm_client/api/open_ai_pass_through_api.rb +337 -0
- data/lib/litellm_client/api/organization_management_api.rb +619 -0
- data/lib/litellm_client/api/pass_through_api.rb +4097 -0
- data/lib/litellm_client/api/rerank_api.rb +187 -0
- data/lib/litellm_client/api/responses_api.rb +514 -0
- data/lib/litellm_client/api/scimv2_api.rb +862 -0
- data/lib/litellm_client/api/sso_settings_api.rb +397 -0
- data/lib/litellm_client/api/tag_management_api.rb +429 -0
- data/lib/litellm_client/api/team_management_api.rb +1339 -0
- data/lib/litellm_client/api/vector_store_management_api.rb +221 -0
- data/lib/litellm_client/api/vertex_ai_pass_through_api.rb +652 -0
- data/lib/litellm_client/api/vllm_pass_through_api.rb +337 -0
- data/lib/litellm_client/api_client.rb +393 -0
- data/lib/litellm_client/api_error.rb +58 -0
- data/lib/litellm_client/configuration.rb +308 -0
- data/lib/litellm_client/models/add_team_callback.rb +309 -0
- data/lib/litellm_client/models/annotations.rb +104 -0
- data/lib/litellm_client/models/api_base.rb +104 -0
- data/lib/litellm_client/models/api_key.rb +104 -0
- data/lib/litellm_client/models/api_version.rb +104 -0
- data/lib/litellm_client/models/apply_guardrail_request.rb +285 -0
- data/lib/litellm_client/models/apply_guardrail_response.rb +237 -0
- data/lib/litellm_client/models/audit_log_response.rb +418 -0
- data/lib/litellm_client/models/aws_access_key_id.rb +104 -0
- data/lib/litellm_client/models/aws_region_name.rb +104 -0
- data/lib/litellm_client/models/aws_secret_access_key.rb +104 -0
- data/lib/litellm_client/models/base_model.rb +104 -0
- data/lib/litellm_client/models/batch_size.rb +104 -0
- data/lib/litellm_client/models/block_key_request.rb +237 -0
- data/lib/litellm_client/models/block_team_request.rb +237 -0
- data/lib/litellm_client/models/block_users.rb +239 -0
- data/lib/litellm_client/models/body_test_model_connection_health_test_connection_post.rb +267 -0
- data/lib/litellm_client/models/breakdown_metrics.rb +256 -0
- data/lib/litellm_client/models/budget_config.rb +251 -0
- data/lib/litellm_client/models/budget_delete_request.rb +237 -0
- data/lib/litellm_client/models/budget_duration.rb +104 -0
- data/lib/litellm_client/models/budget_new_request.rb +303 -0
- data/lib/litellm_client/models/budget_request.rb +239 -0
- data/lib/litellm_client/models/bytes.rb +104 -0
- data/lib/litellm_client/models/cache_control.rb +104 -0
- data/lib/litellm_client/models/cache_ping_response.rb +305 -0
- data/lib/litellm_client/models/call_types.rb +102 -0
- data/lib/litellm_client/models/chat_completion_annotation.rb +263 -0
- data/lib/litellm_client/models/chat_completion_annotation_url_citation.rb +247 -0
- data/lib/litellm_client/models/chat_completion_audio_response.rb +315 -0
- data/lib/litellm_client/models/chat_completion_cached_content.rb +261 -0
- data/lib/litellm_client/models/chat_completion_redacted_thinking_block.rb +280 -0
- data/lib/litellm_client/models/chat_completion_thinking_block.rb +289 -0
- data/lib/litellm_client/models/chat_completion_token_logprob.rb +300 -0
- data/lib/litellm_client/models/choice_logprobs.rb +220 -0
- data/lib/litellm_client/models/choices.rb +307 -0
- data/lib/litellm_client/models/choices1_inner.rb +104 -0
- data/lib/litellm_client/models/configurable_clientside_auth_params.rb +104 -0
- data/lib/litellm_client/models/configurable_clientside_auth_params_any_of_inner.rb +104 -0
- data/lib/litellm_client/models/configurable_clientside_params_custom_auth.rb +237 -0
- data/lib/litellm_client/models/content.rb +104 -0
- data/lib/litellm_client/models/content1.rb +104 -0
- data/lib/litellm_client/models/create_credential_item.rb +287 -0
- data/lib/litellm_client/models/create_guardrail_request.rb +237 -0
- data/lib/litellm_client/models/created_at.rb +104 -0
- data/lib/litellm_client/models/created_by.rb +104 -0
- data/lib/litellm_client/models/credential_item.rb +293 -0
- data/lib/litellm_client/models/custom_llm_provider.rb +104 -0
- data/lib/litellm_client/models/custom_llm_provider1.rb +104 -0
- data/lib/litellm_client/models/daily_spend_data.rb +272 -0
- data/lib/litellm_client/models/daily_spend_metadata.rb +343 -0
- data/lib/litellm_client/models/default_internal_user_params.rb +288 -0
- data/lib/litellm_client/models/default_team_settings_response.rb +268 -0
- data/lib/litellm_client/models/default_team_sso_params.rb +264 -0
- data/lib/litellm_client/models/delete_customer_request.rb +240 -0
- data/lib/litellm_client/models/delete_organization_request.rb +239 -0
- data/lib/litellm_client/models/delete_team_request.rb +239 -0
- data/lib/litellm_client/models/delete_user_request.rb +239 -0
- data/lib/litellm_client/models/deployment.rb +289 -0
- data/lib/litellm_client/models/description.rb +104 -0
- data/lib/litellm_client/models/destructivehint.rb +104 -0
- data/lib/litellm_client/models/email_event.rb +40 -0
- data/lib/litellm_client/models/email_event_settings.rb +285 -0
- data/lib/litellm_client/models/email_event_settings_response.rb +239 -0
- data/lib/litellm_client/models/email_event_settings_update_request.rb +239 -0
- data/lib/litellm_client/models/endtime.rb +104 -0
- data/lib/litellm_client/models/error_response.rb +239 -0
- data/lib/litellm_client/models/expires.rb +104 -0
- data/lib/litellm_client/models/function_call.rb +246 -0
- data/lib/litellm_client/models/generate_key_request.rb +527 -0
- data/lib/litellm_client/models/generate_key_response.rb +613 -0
- data/lib/litellm_client/models/get_team_member_permissions_response.rb +278 -0
- data/lib/litellm_client/models/guardrail.rb +271 -0
- data/lib/litellm_client/models/guardrail_info_lite_llm_params_response.rb +286 -0
- data/lib/litellm_client/models/guardrail_info_response.rb +334 -0
- data/lib/litellm_client/models/http_validation_error.rb +222 -0
- data/lib/litellm_client/models/hyperparameters.rb +241 -0
- data/lib/litellm_client/models/id.rb +104 -0
- data/lib/litellm_client/models/idempotenthint.rb +104 -0
- data/lib/litellm_client/models/input_cost_per_pixel.rb +104 -0
- data/lib/litellm_client/models/input_cost_per_second.rb +104 -0
- data/lib/litellm_client/models/input_cost_per_token.rb +104 -0
- data/lib/litellm_client/models/integrations.rb +104 -0
- data/lib/litellm_client/models/internal_user_settings_response.rb +268 -0
- data/lib/litellm_client/models/ip_address.rb +237 -0
- data/lib/litellm_client/models/key_health_response.rb +264 -0
- data/lib/litellm_client/models/key_list_response_object.rb +252 -0
- data/lib/litellm_client/models/key_list_response_object_keys_inner.rb +104 -0
- data/lib/litellm_client/models/key_metadata.rb +232 -0
- data/lib/litellm_client/models/key_metric_with_metadata.rb +247 -0
- data/lib/litellm_client/models/key_request.rb +235 -0
- data/lib/litellm_client/models/lakera_category_thresholds.rb +229 -0
- data/lib/litellm_client/models/learning_rate_multiplier.rb +104 -0
- data/lib/litellm_client/models/list_guardrails_response.rb +239 -0
- data/lib/litellm_client/models/list_mcp_tools_rest_api_response_object.rb +293 -0
- data/lib/litellm_client/models/list_mcp_tools_rest_api_response_object_annotations.rb +104 -0
- data/lib/litellm_client/models/list_mcp_tools_rest_api_response_object_mcp_info.rb +104 -0
- data/lib/litellm_client/models/lite_llm_budget_table.rb +294 -0
- data/lib/litellm_client/models/lite_llm_end_user_table.rb +348 -0
- data/lib/litellm_client/models/lite_llm_fine_tuning_job_create.rb +317 -0
- data/lib/litellm_client/models/lite_llm_fine_tuning_job_create_hyperparameters.rb +104 -0
- data/lib/litellm_client/models/lite_llm_managed_vector_store.rb +290 -0
- data/lib/litellm_client/models/lite_llm_managed_vector_store_list_response.rb +296 -0
- data/lib/litellm_client/models/lite_llm_model_table.rb +293 -0
- data/lib/litellm_client/models/lite_llm_object_permission_base.rb +235 -0
- data/lib/litellm_client/models/lite_llm_object_permission_table.rb +262 -0
- data/lib/litellm_client/models/lite_llm_organization_membership_table.rb +367 -0
- data/lib/litellm_client/models/lite_llm_organization_table_update.rb +296 -0
- data/lib/litellm_client/models/lite_llm_organization_table_with_members.rb +477 -0
- data/lib/litellm_client/models/lite_llm_params.rb +553 -0
- data/lib/litellm_client/models/lite_llm_spend_logs.rb +457 -0
- data/lib/litellm_client/models/lite_llm_team_membership.rb +285 -0
- data/lib/litellm_client/models/lite_llm_team_table.rb +466 -0
- data/lib/litellm_client/models/lite_llm_user_table.rb +438 -0
- data/lib/litellm_client/models/lite_llm_user_table_with_key_count.rb +449 -0
- data/lib/litellm_client/models/lite_llm_verification_token.rb +546 -0
- data/lib/litellm_client/models/lite_llmmcp_server_table.rb +424 -0
- data/lib/litellm_client/models/litellm_credential_name.rb +104 -0
- data/lib/litellm_client/models/litellm_params.rb +632 -0
- data/lib/litellm_client/models/litellm_trace_id.rb +104 -0
- data/lib/litellm_client/models/litellm_user_roles.rb +45 -0
- data/lib/litellm_client/models/logging_callback_status.rb +275 -0
- data/lib/litellm_client/models/logprobs.rb +105 -0
- data/lib/litellm_client/models/max_budget.rb +104 -0
- data/lib/litellm_client/models/max_file_size_mb.rb +104 -0
- data/lib/litellm_client/models/max_retries.rb +104 -0
- data/lib/litellm_client/models/mcp_info.rb +240 -0
- data/lib/litellm_client/models/member.rb +281 -0
- data/lib/litellm_client/models/member1.rb +104 -0
- data/lib/litellm_client/models/member2.rb +104 -0
- data/lib/litellm_client/models/merge_reasoning_content_in_choices.rb +104 -0
- data/lib/litellm_client/models/message.rb +384 -0
- data/lib/litellm_client/models/message_audio.rb +104 -0
- data/lib/litellm_client/models/message_function_call.rb +104 -0
- data/lib/litellm_client/models/messages.rb +105 -0
- data/lib/litellm_client/models/metric_with_metadata.rb +248 -0
- data/lib/litellm_client/models/mock_response.rb +106 -0
- data/lib/litellm_client/models/mode.rb +104 -0
- data/lib/litellm_client/models/mode1.rb +105 -0
- data/lib/litellm_client/models/model.rb +104 -0
- data/lib/litellm_client/models/model_aliases.rb +104 -0
- data/lib/litellm_client/models/model_info.rb +104 -0
- data/lib/litellm_client/models/model_info_delete.rb +237 -0
- data/lib/litellm_client/models/model_response.rb +335 -0
- data/lib/litellm_client/models/n_epochs.rb +104 -0
- data/lib/litellm_client/models/name.rb +104 -0
- data/lib/litellm_client/models/new_customer_request.rb +415 -0
- data/lib/litellm_client/models/new_mcp_server_request.rb +357 -0
- data/lib/litellm_client/models/new_organization_request.rb +362 -0
- data/lib/litellm_client/models/new_organization_response.rb +470 -0
- data/lib/litellm_client/models/new_team_request.rb +406 -0
- data/lib/litellm_client/models/new_user_request.rb +570 -0
- data/lib/litellm_client/models/new_user_response.rb +689 -0
- data/lib/litellm_client/models/openworldhint.rb +104 -0
- data/lib/litellm_client/models/org_member.rb +281 -0
- data/lib/litellm_client/models/organization.rb +104 -0
- data/lib/litellm_client/models/organization_add_member_response.rb +293 -0
- data/lib/litellm_client/models/organization_member_add_request.rb +273 -0
- data/lib/litellm_client/models/organization_member_delete_request.rb +257 -0
- data/lib/litellm_client/models/organization_member_update_request.rb +299 -0
- data/lib/litellm_client/models/organization_request.rb +239 -0
- data/lib/litellm_client/models/output_cost_per_pixel.rb +104 -0
- data/lib/litellm_client/models/output_cost_per_second.rb +104 -0
- data/lib/litellm_client/models/output_cost_per_token.rb +104 -0
- data/lib/litellm_client/models/paginated_audit_log_response.rb +348 -0
- data/lib/litellm_client/models/pass_through_endpoint_response.rb +239 -0
- data/lib/litellm_client/models/pass_through_generic_endpoint.rb +294 -0
- data/lib/litellm_client/models/patch_guardrail_litellm_params.rb +233 -0
- data/lib/litellm_client/models/patch_guardrail_request.rb +243 -0
- data/lib/litellm_client/models/pii_action.rb +40 -0
- data/lib/litellm_client/models/pii_entity_type.rb +77 -0
- data/lib/litellm_client/models/provider_budget_response.rb +223 -0
- data/lib/litellm_client/models/provider_budget_response_object.rb +256 -0
- data/lib/litellm_client/models/provider_specific_fields.rb +104 -0
- data/lib/litellm_client/models/raw_request_typed_dict.rb +255 -0
- data/lib/litellm_client/models/readonlyhint.rb +104 -0
- data/lib/litellm_client/models/reasoning_content.rb +104 -0
- data/lib/litellm_client/models/regenerate_key_request.rb +537 -0
- data/lib/litellm_client/models/region_name.rb +104 -0
- data/lib/litellm_client/models/resources.rb +104 -0
- data/lib/litellm_client/models/response.rb +105 -0
- data/lib/litellm_client/models/rpm.rb +104 -0
- data/lib/litellm_client/models/scim_group.rb +309 -0
- data/lib/litellm_client/models/scim_list_response.rb +294 -0
- data/lib/litellm_client/models/scim_member.rb +247 -0
- data/lib/litellm_client/models/scim_patch_op.rb +250 -0
- data/lib/litellm_client/models/scim_patch_operation.rb +257 -0
- data/lib/litellm_client/models/scim_user.rb +368 -0
- data/lib/litellm_client/models/scim_user_email.rb +257 -0
- data/lib/litellm_client/models/scim_user_group.rb +257 -0
- data/lib/litellm_client/models/scim_user_name.rb +303 -0
- data/lib/litellm_client/models/seed.rb +104 -0
- data/lib/litellm_client/models/service.rb +104 -0
- data/lib/litellm_client/models/spend_analytics_paginated_response.rb +248 -0
- data/lib/litellm_client/models/spend_calculate_request.rb +245 -0
- data/lib/litellm_client/models/spend_metrics.rb +310 -0
- data/lib/litellm_client/models/sso_config.rb +332 -0
- data/lib/litellm_client/models/sso_settings_response.rb +268 -0
- data/lib/litellm_client/models/starttime.rb +104 -0
- data/lib/litellm_client/models/stream_timeout.rb +105 -0
- data/lib/litellm_client/models/suffix.rb +104 -0
- data/lib/litellm_client/models/system_fingerprint.rb +104 -0
- data/lib/litellm_client/models/tag_config.rb +333 -0
- data/lib/litellm_client/models/tag_delete_request.rb +237 -0
- data/lib/litellm_client/models/tag_info_request.rb +239 -0
- data/lib/litellm_client/models/tag_new_request.rb +271 -0
- data/lib/litellm_client/models/tag_update_request.rb +271 -0
- data/lib/litellm_client/models/team_add_member_response.rb +522 -0
- data/lib/litellm_client/models/team_id.rb +104 -0
- data/lib/litellm_client/models/team_list_response.rb +344 -0
- data/lib/litellm_client/models/team_member_add_request.rb +273 -0
- data/lib/litellm_client/models/team_member_delete_request.rb +257 -0
- data/lib/litellm_client/models/team_member_update_request.rb +311 -0
- data/lib/litellm_client/models/team_member_update_response.rb +283 -0
- data/lib/litellm_client/models/team_model_add_request.rb +266 -0
- data/lib/litellm_client/models/team_model_delete_request.rb +266 -0
- data/lib/litellm_client/models/team_public_model_name.rb +104 -0
- data/lib/litellm_client/models/thinking_blocks.rb +104 -0
- data/lib/litellm_client/models/thinking_blocks_any_of_inner.rb +104 -0
- data/lib/litellm_client/models/tier.rb +104 -0
- data/lib/litellm_client/models/timeout.rb +105 -0
- data/lib/litellm_client/models/title.rb +104 -0
- data/lib/litellm_client/models/token_count_request.rb +259 -0
- data/lib/litellm_client/models/token_count_response.rb +315 -0
- data/lib/litellm_client/models/tool_annotations.rb +257 -0
- data/lib/litellm_client/models/tool_calls.rb +104 -0
- data/lib/litellm_client/models/top_logprob.rb +272 -0
- data/lib/litellm_client/models/tpm.rb +104 -0
- data/lib/litellm_client/models/transform_request_body.rb +287 -0
- data/lib/litellm_client/models/ui_discovery_endpoints.rb +249 -0
- data/lib/litellm_client/models/update_customer_request.rb +333 -0
- data/lib/litellm_client/models/update_deployment.rb +241 -0
- data/lib/litellm_client/models/update_guardrail_request.rb +237 -0
- data/lib/litellm_client/models/update_key_request.rb +543 -0
- data/lib/litellm_client/models/update_lite_llm_params.rb +535 -0
- data/lib/litellm_client/models/update_mcp_server_request.rb +373 -0
- data/lib/litellm_client/models/update_team_member_permissions_request.rb +266 -0
- data/lib/litellm_client/models/update_team_request.rb +378 -0
- data/lib/litellm_client/models/update_user_request.rb +515 -0
- data/lib/litellm_client/models/updated_at.rb +104 -0
- data/lib/litellm_client/models/updated_by.rb +104 -0
- data/lib/litellm_client/models/use_in_pass_through.rb +104 -0
- data/lib/litellm_client/models/use_litellm_proxy.rb +104 -0
- data/lib/litellm_client/models/user_api_key_auth.rb +861 -0
- data/lib/litellm_client/models/user_list_response.rb +344 -0
- data/lib/litellm_client/models/validation_error.rb +291 -0
- data/lib/litellm_client/models/validation_error_loc_inner.rb +104 -0
- data/lib/litellm_client/models/validation_file.rb +104 -0
- data/lib/litellm_client/models/vector_store_delete_request.rb +237 -0
- data/lib/litellm_client/models/vector_store_metadata.rb +104 -0
- data/lib/litellm_client/models/vertex_credentials.rb +105 -0
- data/lib/litellm_client/models/vertex_location.rb +104 -0
- data/lib/litellm_client/models/vertex_project.rb +104 -0
- data/lib/litellm_client/models/watsonx_region_name.rb +104 -0
- data/lib/litellm_client/version.rb +15 -0
- data/lib/litellm_client.rb +339 -0
- data/litellm_client.gemspec +39 -0
- data/spec/api/anthropic_pass_through_api_spec.rb +95 -0
- data/spec/api/assembly_ai_pass_through_api_spec.rb +90 -0
- data/spec/api/assembly_aieu_pass_through_api_spec.rb +90 -0
- data/spec/api/assistants_api_spec.rb +221 -0
- data/spec/api/audio_api_spec.rb +81 -0
- data/spec/api/audit_logging_api_spec.rb +69 -0
- data/spec/api/azure_pass_through_api_spec.rb +95 -0
- data/spec/api/batch_api_spec.rb +191 -0
- data/spec/api/bedrock_pass_through_api_spec.rb +95 -0
- data/spec/api/budget_management_api_spec.rb +106 -0
- data/spec/api/budget_spend_tracking_api_spec.rb +158 -0
- data/spec/api/caching_api_spec.rb +101 -0
- data/spec/api/chat_completions_api_spec.rb +83 -0
- data/spec/api/cohere_pass_through_api_spec.rb +95 -0
- data/spec/api/completions_api_spec.rb +83 -0
- data/spec/api/credential_management_api_spec.rb +109 -0
- data/spec/api/customer_management_api_spec.rb +118 -0
- data/spec/api/default_api_spec.rb +168 -0
- data/spec/api/email_management_api_spec.rb +69 -0
- data/spec/api/embeddings_api_spec.rb +83 -0
- data/spec/api/files_api_spec.rb +242 -0
- data/spec/api/fine_tuning_api_spec.rb +139 -0
- data/spec/api/google_ai_studio_pass_through_api_spec.rb +95 -0
- data/spec/api/guardrails_api_spec.rb +165 -0
- data/spec/api/health_api_spec.rb +170 -0
- data/spec/api/images_api_spec.rb +110 -0
- data/spec/api/internal_user_management_api_spec.rb +121 -0
- data/spec/api/key_management_api_spec.rb +173 -0
- data/spec/api/langfuse_pass_through_api_spec.rb +95 -0
- data/spec/api/llm_utils_api_spec.rb +69 -0
- data/spec/api/mcp_api_spec.rb +120 -0
- data/spec/api/mistral_pass_through_api_spec.rb +95 -0
- data/spec/api/model_management_api_spec.rb +150 -0
- data/spec/api/moderations_api_spec.rb +57 -0
- data/spec/api/open_ai_pass_through_api_spec.rb +95 -0
- data/spec/api/organization_management_api_spec.rb +142 -0
- data/spec/api/pass_through_api_spec.rb +805 -0
- data/spec/api/rerank_api_spec.rb +65 -0
- data/spec/api/responses_api_spec.rb +129 -0
- data/spec/api/scimv2_api_spec.rb +187 -0
- data/spec/api/sso_settings_api_spec.rb +104 -0
- data/spec/api/tag_management_api_spec.rb +112 -0
- data/spec/api/team_management_api_spec.rb +283 -0
- data/spec/api/vector_store_management_api_spec.rb +72 -0
- data/spec/api/vertex_ai_pass_through_api_spec.rb +155 -0
- data/spec/api/vllm_pass_through_api_spec.rb +95 -0
- data/spec/models/add_team_callback_spec.rb +52 -0
- data/spec/models/annotations_spec.rb +21 -0
- data/spec/models/api_base_spec.rb +21 -0
- data/spec/models/api_key_spec.rb +21 -0
- data/spec/models/api_version_spec.rb +21 -0
- data/spec/models/apply_guardrail_request_spec.rb +54 -0
- data/spec/models/apply_guardrail_response_spec.rb +36 -0
- data/spec/models/audit_log_response_spec.rb +84 -0
- data/spec/models/aws_access_key_id_spec.rb +21 -0
- data/spec/models/aws_region_name_spec.rb +21 -0
- data/spec/models/aws_secret_access_key_spec.rb +21 -0
- data/spec/models/base_model_spec.rb +21 -0
- data/spec/models/batch_size_spec.rb +21 -0
- data/spec/models/block_key_request_spec.rb +36 -0
- data/spec/models/block_team_request_spec.rb +36 -0
- data/spec/models/block_users_spec.rb +36 -0
- data/spec/models/body_test_model_connection_health_test_connection_post_spec.rb +46 -0
- data/spec/models/breakdown_metrics_spec.rb +54 -0
- data/spec/models/budget_config_spec.rb +54 -0
- data/spec/models/budget_delete_request_spec.rb +36 -0
- data/spec/models/budget_duration_spec.rb +21 -0
- data/spec/models/budget_new_request_spec.rb +84 -0
- data/spec/models/budget_request_spec.rb +36 -0
- data/spec/models/bytes_spec.rb +21 -0
- data/spec/models/cache_control_spec.rb +21 -0
- data/spec/models/cache_ping_response_spec.rb +66 -0
- data/spec/models/call_types_spec.rb +30 -0
- data/spec/models/chat_completion_annotation_spec.rb +46 -0
- data/spec/models/chat_completion_annotation_url_citation_spec.rb +54 -0
- data/spec/models/chat_completion_audio_response_spec.rb +54 -0
- data/spec/models/chat_completion_cached_content_spec.rb +40 -0
- data/spec/models/chat_completion_redacted_thinking_block_spec.rb +52 -0
- data/spec/models/chat_completion_thinking_block_spec.rb +58 -0
- data/spec/models/chat_completion_token_logprob_spec.rb +54 -0
- data/spec/models/choice_logprobs_spec.rb +36 -0
- data/spec/models/choices1_inner_spec.rb +21 -0
- data/spec/models/choices_spec.rb +60 -0
- data/spec/models/configurable_clientside_auth_params_any_of_inner_spec.rb +21 -0
- data/spec/models/configurable_clientside_auth_params_spec.rb +21 -0
- data/spec/models/configurable_clientside_params_custom_auth_spec.rb +36 -0
- data/spec/models/content1_spec.rb +21 -0
- data/spec/models/content_spec.rb +21 -0
- data/spec/models/create_credential_item_spec.rb +54 -0
- data/spec/models/create_guardrail_request_spec.rb +36 -0
- data/spec/models/created_at_spec.rb +21 -0
- data/spec/models/created_by_spec.rb +21 -0
- data/spec/models/credential_item_spec.rb +48 -0
- data/spec/models/custom_llm_provider1_spec.rb +21 -0
- data/spec/models/custom_llm_provider_spec.rb +21 -0
- data/spec/models/daily_spend_data_spec.rb +48 -0
- data/spec/models/daily_spend_metadata_spec.rb +102 -0
- data/spec/models/default_internal_user_params_spec.rb +58 -0
- data/spec/models/default_team_settings_response_spec.rb +42 -0
- data/spec/models/default_team_sso_params_spec.rb +60 -0
- data/spec/models/delete_customer_request_spec.rb +36 -0
- data/spec/models/delete_organization_request_spec.rb +36 -0
- data/spec/models/delete_team_request_spec.rb +36 -0
- data/spec/models/delete_user_request_spec.rb +36 -0
- data/spec/models/deployment_spec.rb +48 -0
- data/spec/models/description_spec.rb +21 -0
- data/spec/models/destructivehint_spec.rb +21 -0
- data/spec/models/email_event_settings_response_spec.rb +36 -0
- data/spec/models/email_event_settings_spec.rb +42 -0
- data/spec/models/email_event_settings_update_request_spec.rb +36 -0
- data/spec/models/email_event_spec.rb +30 -0
- data/spec/models/endtime_spec.rb +21 -0
- data/spec/models/error_response_spec.rb +36 -0
- data/spec/models/expires_spec.rb +21 -0
- data/spec/models/function_call_spec.rb +42 -0
- data/spec/models/generate_key_request_spec.rb +204 -0
- data/spec/models/generate_key_response_spec.rb +246 -0
- data/spec/models/get_team_member_permissions_response_spec.rb +48 -0
- data/spec/models/guardrail_info_lite_llm_params_response_spec.rb +54 -0
- data/spec/models/guardrail_info_response_spec.rb +76 -0
- data/spec/models/guardrail_spec.rb +66 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/hyperparameters_spec.rb +48 -0
- data/spec/models/id_spec.rb +21 -0
- data/spec/models/idempotenthint_spec.rb +21 -0
- data/spec/models/input_cost_per_pixel_spec.rb +21 -0
- data/spec/models/input_cost_per_second_spec.rb +21 -0
- data/spec/models/input_cost_per_token_spec.rb +21 -0
- data/spec/models/integrations_spec.rb +21 -0
- data/spec/models/internal_user_settings_response_spec.rb +42 -0
- data/spec/models/ip_address_spec.rb +36 -0
- data/spec/models/key_health_response_spec.rb +46 -0
- data/spec/models/key_list_response_object_keys_inner_spec.rb +21 -0
- data/spec/models/key_list_response_object_spec.rb +54 -0
- data/spec/models/key_metadata_spec.rb +42 -0
- data/spec/models/key_metric_with_metadata_spec.rb +42 -0
- data/spec/models/key_request_spec.rb +42 -0
- data/spec/models/lakera_category_thresholds_spec.rb +42 -0
- data/spec/models/learning_rate_multiplier_spec.rb +21 -0
- data/spec/models/list_guardrails_response_spec.rb +36 -0
- data/spec/models/list_mcp_tools_rest_api_response_object_annotations_spec.rb +21 -0
- data/spec/models/list_mcp_tools_rest_api_response_object_mcp_info_spec.rb +21 -0
- data/spec/models/list_mcp_tools_rest_api_response_object_spec.rb +60 -0
- data/spec/models/lite_llm_budget_table_spec.rb +78 -0
- data/spec/models/lite_llm_end_user_table_spec.rb +76 -0
- data/spec/models/lite_llm_fine_tuning_job_create_hyperparameters_spec.rb +21 -0
- data/spec/models/lite_llm_fine_tuning_job_create_spec.rb +78 -0
- data/spec/models/lite_llm_managed_vector_store_list_response_spec.rb +64 -0
- data/spec/models/lite_llm_managed_vector_store_spec.rb +78 -0
- data/spec/models/lite_llm_model_table_spec.rb +60 -0
- data/spec/models/lite_llm_object_permission_base_spec.rb +42 -0
- data/spec/models/lite_llm_object_permission_table_spec.rb +48 -0
- data/spec/models/lite_llm_organization_membership_table_spec.rb +84 -0
- data/spec/models/lite_llm_organization_table_update_spec.rb +78 -0
- data/spec/models/lite_llm_organization_table_with_members_spec.rb +126 -0
- data/spec/models/lite_llm_params_spec.rb +246 -0
- data/spec/models/lite_llm_spend_logs_spec.rb +144 -0
- data/spec/models/lite_llm_team_membership_spec.rb +54 -0
- data/spec/models/lite_llm_team_table_spec.rb +168 -0
- data/spec/models/lite_llm_user_table_spec.rb +150 -0
- data/spec/models/lite_llm_user_table_with_key_count_spec.rb +156 -0
- data/spec/models/lite_llm_verification_token_spec.rb +222 -0
- data/spec/models/lite_llmmcp_server_table_spec.rb +108 -0
- data/spec/models/litellm_credential_name_spec.rb +21 -0
- data/spec/models/litellm_params_spec.rb +258 -0
- data/spec/models/litellm_trace_id_spec.rb +21 -0
- data/spec/models/litellm_user_roles_spec.rb +30 -0
- data/spec/models/logging_callback_status_spec.rb +52 -0
- data/spec/models/logprobs_spec.rb +21 -0
- data/spec/models/max_budget_spec.rb +21 -0
- data/spec/models/max_file_size_mb_spec.rb +21 -0
- data/spec/models/max_retries_spec.rb +21 -0
- data/spec/models/mcp_info_spec.rb +48 -0
- data/spec/models/member1_spec.rb +21 -0
- data/spec/models/member2_spec.rb +21 -0
- data/spec/models/member_spec.rb +52 -0
- data/spec/models/merge_reasoning_content_in_choices_spec.rb +21 -0
- data/spec/models/message_audio_spec.rb +21 -0
- data/spec/models/message_function_call_spec.rb +21 -0
- data/spec/models/message_spec.rb +88 -0
- data/spec/models/messages_spec.rb +21 -0
- data/spec/models/metric_with_metadata_spec.rb +42 -0
- data/spec/models/mock_response_spec.rb +21 -0
- data/spec/models/mode1_spec.rb +21 -0
- data/spec/models/mode_spec.rb +21 -0
- data/spec/models/model_aliases_spec.rb +21 -0
- data/spec/models/model_info_delete_spec.rb +36 -0
- data/spec/models/model_info_spec.rb +21 -0
- data/spec/models/model_response_spec.rb +66 -0
- data/spec/models/model_spec.rb +21 -0
- data/spec/models/n_epochs_spec.rb +21 -0
- data/spec/models/name_spec.rb +21 -0
- data/spec/models/new_customer_request_spec.rb +124 -0
- data/spec/models/new_mcp_server_request_spec.rb +84 -0
- data/spec/models/new_organization_request_spec.rb +108 -0
- data/spec/models/new_organization_response_spec.rb +114 -0
- data/spec/models/new_team_request_spec.rb +138 -0
- data/spec/models/new_user_request_spec.rb +214 -0
- data/spec/models/new_user_response_spec.rb +274 -0
- data/spec/models/openworldhint_spec.rb +21 -0
- data/spec/models/org_member_spec.rb +52 -0
- data/spec/models/organization_add_member_response_spec.rb +48 -0
- data/spec/models/organization_member_add_request_spec.rb +48 -0
- data/spec/models/organization_member_delete_request_spec.rb +48 -0
- data/spec/models/organization_member_update_request_spec.rb +60 -0
- data/spec/models/organization_request_spec.rb +36 -0
- data/spec/models/organization_spec.rb +21 -0
- data/spec/models/output_cost_per_pixel_spec.rb +21 -0
- data/spec/models/output_cost_per_second_spec.rb +21 -0
- data/spec/models/output_cost_per_token_spec.rb +21 -0
- data/spec/models/paginated_audit_log_response_spec.rb +60 -0
- data/spec/models/pass_through_endpoint_response_spec.rb +36 -0
- data/spec/models/pass_through_generic_endpoint_spec.rb +48 -0
- data/spec/models/patch_guardrail_litellm_params_spec.rb +42 -0
- data/spec/models/patch_guardrail_request_spec.rb +48 -0
- data/spec/models/pii_action_spec.rb +30 -0
- data/spec/models/pii_entity_type_spec.rb +30 -0
- data/spec/models/provider_budget_response_object_spec.rb +54 -0
- data/spec/models/provider_budget_response_spec.rb +36 -0
- data/spec/models/provider_specific_fields_spec.rb +21 -0
- data/spec/models/raw_request_typed_dict_spec.rb +54 -0
- data/spec/models/readonlyhint_spec.rb +21 -0
- data/spec/models/reasoning_content_spec.rb +21 -0
- data/spec/models/regenerate_key_request_spec.rb +210 -0
- data/spec/models/region_name_spec.rb +21 -0
- data/spec/models/resources_spec.rb +21 -0
- data/spec/models/response_spec.rb +21 -0
- data/spec/models/rpm_spec.rb +21 -0
- data/spec/models/scim_group_spec.rb +66 -0
- data/spec/models/scim_list_response_spec.rb +60 -0
- data/spec/models/scim_member_spec.rb +42 -0
- data/spec/models/scim_patch_op_spec.rb +42 -0
- data/spec/models/scim_patch_operation_spec.rb +48 -0
- data/spec/models/scim_user_email_spec.rb +48 -0
- data/spec/models/scim_user_group_spec.rb +48 -0
- data/spec/models/scim_user_name_spec.rb +66 -0
- data/spec/models/scim_user_spec.rb +90 -0
- data/spec/models/seed_spec.rb +21 -0
- data/spec/models/service_spec.rb +21 -0
- data/spec/models/spend_analytics_paginated_response_spec.rb +42 -0
- data/spec/models/spend_calculate_request_spec.rb +48 -0
- data/spec/models/spend_metrics_spec.rb +84 -0
- data/spec/models/sso_config_spec.rb +102 -0
- data/spec/models/sso_settings_response_spec.rb +42 -0
- data/spec/models/starttime_spec.rb +21 -0
- data/spec/models/stream_timeout_spec.rb +21 -0
- data/spec/models/suffix_spec.rb +21 -0
- data/spec/models/system_fingerprint_spec.rb +21 -0
- data/spec/models/tag_config_spec.rb +72 -0
- data/spec/models/tag_delete_request_spec.rb +36 -0
- data/spec/models/tag_info_request_spec.rb +36 -0
- data/spec/models/tag_new_request_spec.rb +54 -0
- data/spec/models/tag_update_request_spec.rb +54 -0
- data/spec/models/team_add_member_response_spec.rb +180 -0
- data/spec/models/team_id_spec.rb +21 -0
- data/spec/models/team_list_response_spec.rb +60 -0
- data/spec/models/team_member_add_request_spec.rb +48 -0
- data/spec/models/team_member_delete_request_spec.rb +48 -0
- data/spec/models/team_member_update_request_spec.rb +64 -0
- data/spec/models/team_member_update_response_spec.rb +54 -0
- data/spec/models/team_model_add_request_spec.rb +42 -0
- data/spec/models/team_model_delete_request_spec.rb +42 -0
- data/spec/models/team_public_model_name_spec.rb +21 -0
- data/spec/models/thinking_blocks_any_of_inner_spec.rb +21 -0
- data/spec/models/thinking_blocks_spec.rb +21 -0
- data/spec/models/tier_spec.rb +21 -0
- data/spec/models/timeout_spec.rb +21 -0
- data/spec/models/title_spec.rb +21 -0
- data/spec/models/token_count_request_spec.rb +48 -0
- data/spec/models/token_count_response_spec.rb +54 -0
- data/spec/models/tool_annotations_spec.rb +60 -0
- data/spec/models/tool_calls_spec.rb +21 -0
- data/spec/models/top_logprob_spec.rb +48 -0
- data/spec/models/tpm_spec.rb +21 -0
- data/spec/models/transform_request_body_spec.rb +42 -0
- data/spec/models/ui_discovery_endpoints_spec.rb +42 -0
- data/spec/models/update_customer_request_spec.rb +76 -0
- data/spec/models/update_deployment_spec.rb +48 -0
- data/spec/models/update_guardrail_request_spec.rb +36 -0
- data/spec/models/update_key_request_spec.rb +204 -0
- data/spec/models/update_lite_llm_params_spec.rb +246 -0
- data/spec/models/update_mcp_server_request_spec.rb +84 -0
- data/spec/models/update_team_member_permissions_request_spec.rb +42 -0
- data/spec/models/update_team_request_spec.rb +114 -0
- data/spec/models/update_user_request_spec.rb +184 -0
- data/spec/models/updated_at_spec.rb +21 -0
- data/spec/models/updated_by_spec.rb +21 -0
- data/spec/models/use_in_pass_through_spec.rb +21 -0
- data/spec/models/use_litellm_proxy_spec.rb +21 -0
- data/spec/models/user_api_key_auth_spec.rb +388 -0
- data/spec/models/user_list_response_spec.rb +60 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/validation_file_spec.rb +21 -0
- data/spec/models/vector_store_delete_request_spec.rb +36 -0
- data/spec/models/vector_store_metadata_spec.rb +21 -0
- data/spec/models/vertex_credentials_spec.rb +21 -0
- data/spec/models/vertex_location_spec.rb +21 -0
- data/spec/models/vertex_project_spec.rb +21 -0
- data/spec/models/watsonx_region_name_spec.rb +21 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1298 -0
@@ -0,0 +1,1064 @@
|
|
1
|
+
=begin
|
2
|
+
#LiteLLM API
|
3
|
+
|
4
|
+
#Proxy Server to call 100+ LLMs in the OpenAI format. [**Customize Swagger Docs**](https://docs.litellm.ai/docs/proxy/enterprise#swagger-docs---custom-routes--branding) 👉 [```LiteLLM Admin Panel on /ui```](/ui/). Create, Edit Keys with SSO 💸 [```LiteLLM Model Cost Map```](https://models.litellm.ai/).
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.72.6
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module LiteLLMClient
|
16
|
+
class FilesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create File
|
23
|
+
# Upload a file that can be used across - Assistants API, Batch API This is the equivalent of POST https://api.openai.com/v1/files Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/create Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" -F purpose=\"batch\" -F file=\"@mydata.jsonl\" ```
|
24
|
+
# @param purpose [String]
|
25
|
+
# @param file [File]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :provider
|
28
|
+
# @option opts [String] :target_model_names (default to '')
|
29
|
+
# @option opts [String] :custom_llm_provider (default to 'openai')
|
30
|
+
# @return [Object]
|
31
|
+
def create_file_files_post(purpose, file, opts = {})
|
32
|
+
data, _status_code, _headers = create_file_files_post_with_http_info(purpose, file, opts)
|
33
|
+
data
|
34
|
+
end
|
35
|
+
|
36
|
+
# Create File
|
37
|
+
# Upload a file that can be used across - Assistants API, Batch API This is the equivalent of POST https://api.openai.com/v1/files Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/create Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" -F purpose=\"batch\" -F file=\"@mydata.jsonl\" ```
|
38
|
+
# @param purpose [String]
|
39
|
+
# @param file [File]
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :provider
|
42
|
+
# @option opts [String] :target_model_names (default to '')
|
43
|
+
# @option opts [String] :custom_llm_provider (default to 'openai')
|
44
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
45
|
+
def create_file_files_post_with_http_info(purpose, file, opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.create_file_files_post ...'
|
48
|
+
end
|
49
|
+
# verify the required parameter 'purpose' is set
|
50
|
+
if @api_client.config.client_side_validation && purpose.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'purpose' when calling FilesApi.create_file_files_post"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'file' is set
|
54
|
+
if @api_client.config.client_side_validation && file.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling FilesApi.create_file_files_post"
|
56
|
+
end
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/files'
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = opts[:query_params] || {}
|
62
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
63
|
+
|
64
|
+
# header parameters
|
65
|
+
header_params = opts[:header_params] || {}
|
66
|
+
# HTTP header 'Accept' (if needed)
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
70
|
+
if !content_type.nil?
|
71
|
+
header_params['Content-Type'] = content_type
|
72
|
+
end
|
73
|
+
|
74
|
+
# form parameters
|
75
|
+
form_params = opts[:form_params] || {}
|
76
|
+
form_params['purpose'] = purpose
|
77
|
+
form_params['file'] = file
|
78
|
+
form_params['target_model_names'] = opts[:'target_model_names'] if !opts[:'target_model_names'].nil?
|
79
|
+
form_params['custom_llm_provider'] = opts[:'custom_llm_provider'] if !opts[:'custom_llm_provider'].nil?
|
80
|
+
|
81
|
+
# http body (model)
|
82
|
+
post_body = opts[:debug_body]
|
83
|
+
|
84
|
+
# return_type
|
85
|
+
return_type = opts[:debug_return_type] || 'Object'
|
86
|
+
|
87
|
+
# auth_names
|
88
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
89
|
+
|
90
|
+
new_options = opts.merge(
|
91
|
+
:operation => :"FilesApi.create_file_files_post",
|
92
|
+
:header_params => header_params,
|
93
|
+
:query_params => query_params,
|
94
|
+
:form_params => form_params,
|
95
|
+
:body => post_body,
|
96
|
+
:auth_names => auth_names,
|
97
|
+
:return_type => return_type
|
98
|
+
)
|
99
|
+
|
100
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
101
|
+
if @api_client.config.debugging
|
102
|
+
@api_client.config.logger.debug "API called: FilesApi#create_file_files_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
103
|
+
end
|
104
|
+
return data, status_code, headers
|
105
|
+
end
|
106
|
+
|
107
|
+
# Create File
|
108
|
+
# Upload a file that can be used across - Assistants API, Batch API This is the equivalent of POST https://api.openai.com/v1/files Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/create Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" -F purpose=\"batch\" -F file=\"@mydata.jsonl\" ```
|
109
|
+
# @param provider [String]
|
110
|
+
# @param purpose [String]
|
111
|
+
# @param file [File]
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @option opts [String] :target_model_names (default to '')
|
114
|
+
# @option opts [String] :custom_llm_provider (default to 'openai')
|
115
|
+
# @return [Object]
|
116
|
+
def create_file_provider_v1_files_post(provider, purpose, file, opts = {})
|
117
|
+
data, _status_code, _headers = create_file_provider_v1_files_post_with_http_info(provider, purpose, file, opts)
|
118
|
+
data
|
119
|
+
end
|
120
|
+
|
121
|
+
# Create File
|
122
|
+
# Upload a file that can be used across - Assistants API, Batch API This is the equivalent of POST https://api.openai.com/v1/files Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/create Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" -F purpose=\"batch\" -F file=\"@mydata.jsonl\" ```
|
123
|
+
# @param provider [String]
|
124
|
+
# @param purpose [String]
|
125
|
+
# @param file [File]
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @option opts [String] :target_model_names (default to '')
|
128
|
+
# @option opts [String] :custom_llm_provider (default to 'openai')
|
129
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
130
|
+
def create_file_provider_v1_files_post_with_http_info(provider, purpose, file, opts = {})
|
131
|
+
if @api_client.config.debugging
|
132
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.create_file_provider_v1_files_post ...'
|
133
|
+
end
|
134
|
+
# verify the required parameter 'purpose' is set
|
135
|
+
if @api_client.config.client_side_validation && purpose.nil?
|
136
|
+
fail ArgumentError, "Missing the required parameter 'purpose' when calling FilesApi.create_file_provider_v1_files_post"
|
137
|
+
end
|
138
|
+
# verify the required parameter 'file' is set
|
139
|
+
if @api_client.config.client_side_validation && file.nil?
|
140
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling FilesApi.create_file_provider_v1_files_post"
|
141
|
+
end
|
142
|
+
# resource path
|
143
|
+
local_var_path = '/{provider}/v1/files'.sub('{' + 'provider' + '}', CGI.escape(provider.to_s))
|
144
|
+
|
145
|
+
# query parameters
|
146
|
+
query_params = opts[:query_params] || {}
|
147
|
+
|
148
|
+
# header parameters
|
149
|
+
header_params = opts[:header_params] || {}
|
150
|
+
# HTTP header 'Accept' (if needed)
|
151
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
152
|
+
# HTTP header 'Content-Type'
|
153
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
154
|
+
if !content_type.nil?
|
155
|
+
header_params['Content-Type'] = content_type
|
156
|
+
end
|
157
|
+
|
158
|
+
# form parameters
|
159
|
+
form_params = opts[:form_params] || {}
|
160
|
+
form_params['purpose'] = purpose
|
161
|
+
form_params['file'] = file
|
162
|
+
form_params['target_model_names'] = opts[:'target_model_names'] if !opts[:'target_model_names'].nil?
|
163
|
+
form_params['custom_llm_provider'] = opts[:'custom_llm_provider'] if !opts[:'custom_llm_provider'].nil?
|
164
|
+
|
165
|
+
# http body (model)
|
166
|
+
post_body = opts[:debug_body]
|
167
|
+
|
168
|
+
# return_type
|
169
|
+
return_type = opts[:debug_return_type] || 'Object'
|
170
|
+
|
171
|
+
# auth_names
|
172
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
173
|
+
|
174
|
+
new_options = opts.merge(
|
175
|
+
:operation => :"FilesApi.create_file_provider_v1_files_post",
|
176
|
+
:header_params => header_params,
|
177
|
+
:query_params => query_params,
|
178
|
+
:form_params => form_params,
|
179
|
+
:body => post_body,
|
180
|
+
:auth_names => auth_names,
|
181
|
+
:return_type => return_type
|
182
|
+
)
|
183
|
+
|
184
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
185
|
+
if @api_client.config.debugging
|
186
|
+
@api_client.config.logger.debug "API called: FilesApi#create_file_provider_v1_files_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
187
|
+
end
|
188
|
+
return data, status_code, headers
|
189
|
+
end
|
190
|
+
|
191
|
+
# Create File
|
192
|
+
# Upload a file that can be used across - Assistants API, Batch API This is the equivalent of POST https://api.openai.com/v1/files Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/create Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" -F purpose=\"batch\" -F file=\"@mydata.jsonl\" ```
|
193
|
+
# @param purpose [String]
|
194
|
+
# @param file [File]
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @option opts [String] :provider
|
197
|
+
# @option opts [String] :target_model_names (default to '')
|
198
|
+
# @option opts [String] :custom_llm_provider (default to 'openai')
|
199
|
+
# @return [Object]
|
200
|
+
def create_file_v1_files_post(purpose, file, opts = {})
|
201
|
+
data, _status_code, _headers = create_file_v1_files_post_with_http_info(purpose, file, opts)
|
202
|
+
data
|
203
|
+
end
|
204
|
+
|
205
|
+
# Create File
|
206
|
+
# Upload a file that can be used across - Assistants API, Batch API This is the equivalent of POST https://api.openai.com/v1/files Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/create Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" -F purpose=\"batch\" -F file=\"@mydata.jsonl\" ```
|
207
|
+
# @param purpose [String]
|
208
|
+
# @param file [File]
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @option opts [String] :provider
|
211
|
+
# @option opts [String] :target_model_names (default to '')
|
212
|
+
# @option opts [String] :custom_llm_provider (default to 'openai')
|
213
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
214
|
+
def create_file_v1_files_post_with_http_info(purpose, file, opts = {})
|
215
|
+
if @api_client.config.debugging
|
216
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.create_file_v1_files_post ...'
|
217
|
+
end
|
218
|
+
# verify the required parameter 'purpose' is set
|
219
|
+
if @api_client.config.client_side_validation && purpose.nil?
|
220
|
+
fail ArgumentError, "Missing the required parameter 'purpose' when calling FilesApi.create_file_v1_files_post"
|
221
|
+
end
|
222
|
+
# verify the required parameter 'file' is set
|
223
|
+
if @api_client.config.client_side_validation && file.nil?
|
224
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling FilesApi.create_file_v1_files_post"
|
225
|
+
end
|
226
|
+
# resource path
|
227
|
+
local_var_path = '/v1/files'
|
228
|
+
|
229
|
+
# query parameters
|
230
|
+
query_params = opts[:query_params] || {}
|
231
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
232
|
+
|
233
|
+
# header parameters
|
234
|
+
header_params = opts[:header_params] || {}
|
235
|
+
# HTTP header 'Accept' (if needed)
|
236
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
237
|
+
# HTTP header 'Content-Type'
|
238
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
239
|
+
if !content_type.nil?
|
240
|
+
header_params['Content-Type'] = content_type
|
241
|
+
end
|
242
|
+
|
243
|
+
# form parameters
|
244
|
+
form_params = opts[:form_params] || {}
|
245
|
+
form_params['purpose'] = purpose
|
246
|
+
form_params['file'] = file
|
247
|
+
form_params['target_model_names'] = opts[:'target_model_names'] if !opts[:'target_model_names'].nil?
|
248
|
+
form_params['custom_llm_provider'] = opts[:'custom_llm_provider'] if !opts[:'custom_llm_provider'].nil?
|
249
|
+
|
250
|
+
# http body (model)
|
251
|
+
post_body = opts[:debug_body]
|
252
|
+
|
253
|
+
# return_type
|
254
|
+
return_type = opts[:debug_return_type] || 'Object'
|
255
|
+
|
256
|
+
# auth_names
|
257
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
258
|
+
|
259
|
+
new_options = opts.merge(
|
260
|
+
:operation => :"FilesApi.create_file_v1_files_post",
|
261
|
+
:header_params => header_params,
|
262
|
+
:query_params => query_params,
|
263
|
+
:form_params => form_params,
|
264
|
+
:body => post_body,
|
265
|
+
:auth_names => auth_names,
|
266
|
+
:return_type => return_type
|
267
|
+
)
|
268
|
+
|
269
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
270
|
+
if @api_client.config.debugging
|
271
|
+
@api_client.config.logger.debug "API called: FilesApi#create_file_v1_files_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
272
|
+
end
|
273
|
+
return data, status_code, headers
|
274
|
+
end
|
275
|
+
|
276
|
+
# Delete File
|
277
|
+
# Deletes a specified file. that can be used across - Assistants API, Batch API This is the equivalent of DELETE https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/delete Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -X DELETE -H \"Authorization: Bearer $OPENAI_API_KEY\" ```
|
278
|
+
# @param file_id [String]
|
279
|
+
# @param [Hash] opts the optional parameters
|
280
|
+
# @option opts [String] :provider
|
281
|
+
# @return [Object]
|
282
|
+
def delete_file_files_file_id_delete(file_id, opts = {})
|
283
|
+
data, _status_code, _headers = delete_file_files_file_id_delete_with_http_info(file_id, opts)
|
284
|
+
data
|
285
|
+
end
|
286
|
+
|
287
|
+
# Delete File
|
288
|
+
# Deletes a specified file. that can be used across - Assistants API, Batch API This is the equivalent of DELETE https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/delete Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -X DELETE -H \"Authorization: Bearer $OPENAI_API_KEY\" ```
|
289
|
+
# @param file_id [String]
|
290
|
+
# @param [Hash] opts the optional parameters
|
291
|
+
# @option opts [String] :provider
|
292
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
293
|
+
def delete_file_files_file_id_delete_with_http_info(file_id, opts = {})
|
294
|
+
if @api_client.config.debugging
|
295
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.delete_file_files_file_id_delete ...'
|
296
|
+
end
|
297
|
+
# verify the required parameter 'file_id' is set
|
298
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
299
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.delete_file_files_file_id_delete"
|
300
|
+
end
|
301
|
+
# resource path
|
302
|
+
local_var_path = '/files/{file_id}'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
303
|
+
|
304
|
+
# query parameters
|
305
|
+
query_params = opts[:query_params] || {}
|
306
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
307
|
+
|
308
|
+
# header parameters
|
309
|
+
header_params = opts[:header_params] || {}
|
310
|
+
# HTTP header 'Accept' (if needed)
|
311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
312
|
+
|
313
|
+
# form parameters
|
314
|
+
form_params = opts[:form_params] || {}
|
315
|
+
|
316
|
+
# http body (model)
|
317
|
+
post_body = opts[:debug_body]
|
318
|
+
|
319
|
+
# return_type
|
320
|
+
return_type = opts[:debug_return_type] || 'Object'
|
321
|
+
|
322
|
+
# auth_names
|
323
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
324
|
+
|
325
|
+
new_options = opts.merge(
|
326
|
+
:operation => :"FilesApi.delete_file_files_file_id_delete",
|
327
|
+
:header_params => header_params,
|
328
|
+
:query_params => query_params,
|
329
|
+
:form_params => form_params,
|
330
|
+
:body => post_body,
|
331
|
+
:auth_names => auth_names,
|
332
|
+
:return_type => return_type
|
333
|
+
)
|
334
|
+
|
335
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
336
|
+
if @api_client.config.debugging
|
337
|
+
@api_client.config.logger.debug "API called: FilesApi#delete_file_files_file_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
338
|
+
end
|
339
|
+
return data, status_code, headers
|
340
|
+
end
|
341
|
+
|
342
|
+
# Delete File
|
343
|
+
# Deletes a specified file. that can be used across - Assistants API, Batch API This is the equivalent of DELETE https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/delete Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -X DELETE -H \"Authorization: Bearer $OPENAI_API_KEY\" ```
|
344
|
+
# @param file_id [String]
|
345
|
+
# @param provider [String]
|
346
|
+
# @param [Hash] opts the optional parameters
|
347
|
+
# @return [Object]
|
348
|
+
def delete_file_provider_v1_files_file_id_delete(file_id, provider, opts = {})
|
349
|
+
data, _status_code, _headers = delete_file_provider_v1_files_file_id_delete_with_http_info(file_id, provider, opts)
|
350
|
+
data
|
351
|
+
end
|
352
|
+
|
353
|
+
# Delete File
|
354
|
+
# Deletes a specified file. that can be used across - Assistants API, Batch API This is the equivalent of DELETE https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/delete Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -X DELETE -H \"Authorization: Bearer $OPENAI_API_KEY\" ```
|
355
|
+
# @param file_id [String]
|
356
|
+
# @param provider [String]
|
357
|
+
# @param [Hash] opts the optional parameters
|
358
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
359
|
+
def delete_file_provider_v1_files_file_id_delete_with_http_info(file_id, provider, opts = {})
|
360
|
+
if @api_client.config.debugging
|
361
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.delete_file_provider_v1_files_file_id_delete ...'
|
362
|
+
end
|
363
|
+
# verify the required parameter 'file_id' is set
|
364
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
365
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.delete_file_provider_v1_files_file_id_delete"
|
366
|
+
end
|
367
|
+
# resource path
|
368
|
+
local_var_path = '/{provider}/v1/files/{file_id}'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s)).sub('{' + 'provider' + '}', CGI.escape(provider.to_s))
|
369
|
+
|
370
|
+
# query parameters
|
371
|
+
query_params = opts[:query_params] || {}
|
372
|
+
|
373
|
+
# header parameters
|
374
|
+
header_params = opts[:header_params] || {}
|
375
|
+
# HTTP header 'Accept' (if needed)
|
376
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
377
|
+
|
378
|
+
# form parameters
|
379
|
+
form_params = opts[:form_params] || {}
|
380
|
+
|
381
|
+
# http body (model)
|
382
|
+
post_body = opts[:debug_body]
|
383
|
+
|
384
|
+
# return_type
|
385
|
+
return_type = opts[:debug_return_type] || 'Object'
|
386
|
+
|
387
|
+
# auth_names
|
388
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
389
|
+
|
390
|
+
new_options = opts.merge(
|
391
|
+
:operation => :"FilesApi.delete_file_provider_v1_files_file_id_delete",
|
392
|
+
:header_params => header_params,
|
393
|
+
:query_params => query_params,
|
394
|
+
:form_params => form_params,
|
395
|
+
:body => post_body,
|
396
|
+
:auth_names => auth_names,
|
397
|
+
:return_type => return_type
|
398
|
+
)
|
399
|
+
|
400
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
401
|
+
if @api_client.config.debugging
|
402
|
+
@api_client.config.logger.debug "API called: FilesApi#delete_file_provider_v1_files_file_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
403
|
+
end
|
404
|
+
return data, status_code, headers
|
405
|
+
end
|
406
|
+
|
407
|
+
# Delete File
|
408
|
+
# Deletes a specified file. that can be used across - Assistants API, Batch API This is the equivalent of DELETE https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/delete Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -X DELETE -H \"Authorization: Bearer $OPENAI_API_KEY\" ```
|
409
|
+
# @param file_id [String]
|
410
|
+
# @param [Hash] opts the optional parameters
|
411
|
+
# @option opts [String] :provider
|
412
|
+
# @return [Object]
|
413
|
+
def delete_file_v1_files_file_id_delete(file_id, opts = {})
|
414
|
+
data, _status_code, _headers = delete_file_v1_files_file_id_delete_with_http_info(file_id, opts)
|
415
|
+
data
|
416
|
+
end
|
417
|
+
|
418
|
+
# Delete File
|
419
|
+
# Deletes a specified file. that can be used across - Assistants API, Batch API This is the equivalent of DELETE https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/delete Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -X DELETE -H \"Authorization: Bearer $OPENAI_API_KEY\" ```
|
420
|
+
# @param file_id [String]
|
421
|
+
# @param [Hash] opts the optional parameters
|
422
|
+
# @option opts [String] :provider
|
423
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
424
|
+
def delete_file_v1_files_file_id_delete_with_http_info(file_id, opts = {})
|
425
|
+
if @api_client.config.debugging
|
426
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.delete_file_v1_files_file_id_delete ...'
|
427
|
+
end
|
428
|
+
# verify the required parameter 'file_id' is set
|
429
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
430
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.delete_file_v1_files_file_id_delete"
|
431
|
+
end
|
432
|
+
# resource path
|
433
|
+
local_var_path = '/v1/files/{file_id}'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
434
|
+
|
435
|
+
# query parameters
|
436
|
+
query_params = opts[:query_params] || {}
|
437
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
438
|
+
|
439
|
+
# header parameters
|
440
|
+
header_params = opts[:header_params] || {}
|
441
|
+
# HTTP header 'Accept' (if needed)
|
442
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
443
|
+
|
444
|
+
# form parameters
|
445
|
+
form_params = opts[:form_params] || {}
|
446
|
+
|
447
|
+
# http body (model)
|
448
|
+
post_body = opts[:debug_body]
|
449
|
+
|
450
|
+
# return_type
|
451
|
+
return_type = opts[:debug_return_type] || 'Object'
|
452
|
+
|
453
|
+
# auth_names
|
454
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
455
|
+
|
456
|
+
new_options = opts.merge(
|
457
|
+
:operation => :"FilesApi.delete_file_v1_files_file_id_delete",
|
458
|
+
:header_params => header_params,
|
459
|
+
:query_params => query_params,
|
460
|
+
:form_params => form_params,
|
461
|
+
:body => post_body,
|
462
|
+
:auth_names => auth_names,
|
463
|
+
:return_type => return_type
|
464
|
+
)
|
465
|
+
|
466
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
467
|
+
if @api_client.config.debugging
|
468
|
+
@api_client.config.logger.debug "API called: FilesApi#delete_file_v1_files_file_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
469
|
+
end
|
470
|
+
return data, status_code, headers
|
471
|
+
end
|
472
|
+
|
473
|
+
# Get File Content
|
474
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id}/content Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve-contents Example Curl ``` curl http://localhost:4000/v1/files/file-abc123/content -H \"Authorization: Bearer sk-1234\" ```
|
475
|
+
# @param file_id [String]
|
476
|
+
# @param [Hash] opts the optional parameters
|
477
|
+
# @option opts [String] :provider
|
478
|
+
# @return [Object]
|
479
|
+
def get_file_content_files_file_id_content_get(file_id, opts = {})
|
480
|
+
data, _status_code, _headers = get_file_content_files_file_id_content_get_with_http_info(file_id, opts)
|
481
|
+
data
|
482
|
+
end
|
483
|
+
|
484
|
+
# Get File Content
|
485
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id}/content Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve-contents Example Curl ``` curl http://localhost:4000/v1/files/file-abc123/content -H \"Authorization: Bearer sk-1234\" ```
|
486
|
+
# @param file_id [String]
|
487
|
+
# @param [Hash] opts the optional parameters
|
488
|
+
# @option opts [String] :provider
|
489
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
490
|
+
def get_file_content_files_file_id_content_get_with_http_info(file_id, opts = {})
|
491
|
+
if @api_client.config.debugging
|
492
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.get_file_content_files_file_id_content_get ...'
|
493
|
+
end
|
494
|
+
# verify the required parameter 'file_id' is set
|
495
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
496
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.get_file_content_files_file_id_content_get"
|
497
|
+
end
|
498
|
+
# resource path
|
499
|
+
local_var_path = '/files/{file_id}/content'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
500
|
+
|
501
|
+
# query parameters
|
502
|
+
query_params = opts[:query_params] || {}
|
503
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
504
|
+
|
505
|
+
# header parameters
|
506
|
+
header_params = opts[:header_params] || {}
|
507
|
+
# HTTP header 'Accept' (if needed)
|
508
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
509
|
+
|
510
|
+
# form parameters
|
511
|
+
form_params = opts[:form_params] || {}
|
512
|
+
|
513
|
+
# http body (model)
|
514
|
+
post_body = opts[:debug_body]
|
515
|
+
|
516
|
+
# return_type
|
517
|
+
return_type = opts[:debug_return_type] || 'Object'
|
518
|
+
|
519
|
+
# auth_names
|
520
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
521
|
+
|
522
|
+
new_options = opts.merge(
|
523
|
+
:operation => :"FilesApi.get_file_content_files_file_id_content_get",
|
524
|
+
:header_params => header_params,
|
525
|
+
:query_params => query_params,
|
526
|
+
:form_params => form_params,
|
527
|
+
:body => post_body,
|
528
|
+
:auth_names => auth_names,
|
529
|
+
:return_type => return_type
|
530
|
+
)
|
531
|
+
|
532
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
533
|
+
if @api_client.config.debugging
|
534
|
+
@api_client.config.logger.debug "API called: FilesApi#get_file_content_files_file_id_content_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
535
|
+
end
|
536
|
+
return data, status_code, headers
|
537
|
+
end
|
538
|
+
|
539
|
+
# Get File Content
|
540
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id}/content Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve-contents Example Curl ``` curl http://localhost:4000/v1/files/file-abc123/content -H \"Authorization: Bearer sk-1234\" ```
|
541
|
+
# @param file_id [String]
|
542
|
+
# @param provider [String]
|
543
|
+
# @param [Hash] opts the optional parameters
|
544
|
+
# @return [Object]
|
545
|
+
def get_file_content_provider_v1_files_file_id_content_get(file_id, provider, opts = {})
|
546
|
+
data, _status_code, _headers = get_file_content_provider_v1_files_file_id_content_get_with_http_info(file_id, provider, opts)
|
547
|
+
data
|
548
|
+
end
|
549
|
+
|
550
|
+
# Get File Content
|
551
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id}/content Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve-contents Example Curl ``` curl http://localhost:4000/v1/files/file-abc123/content -H \"Authorization: Bearer sk-1234\" ```
|
552
|
+
# @param file_id [String]
|
553
|
+
# @param provider [String]
|
554
|
+
# @param [Hash] opts the optional parameters
|
555
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
556
|
+
def get_file_content_provider_v1_files_file_id_content_get_with_http_info(file_id, provider, opts = {})
|
557
|
+
if @api_client.config.debugging
|
558
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.get_file_content_provider_v1_files_file_id_content_get ...'
|
559
|
+
end
|
560
|
+
# verify the required parameter 'file_id' is set
|
561
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
562
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.get_file_content_provider_v1_files_file_id_content_get"
|
563
|
+
end
|
564
|
+
# resource path
|
565
|
+
local_var_path = '/{provider}/v1/files/{file_id}/content'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s)).sub('{' + 'provider' + '}', CGI.escape(provider.to_s))
|
566
|
+
|
567
|
+
# query parameters
|
568
|
+
query_params = opts[:query_params] || {}
|
569
|
+
|
570
|
+
# header parameters
|
571
|
+
header_params = opts[:header_params] || {}
|
572
|
+
# HTTP header 'Accept' (if needed)
|
573
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
574
|
+
|
575
|
+
# form parameters
|
576
|
+
form_params = opts[:form_params] || {}
|
577
|
+
|
578
|
+
# http body (model)
|
579
|
+
post_body = opts[:debug_body]
|
580
|
+
|
581
|
+
# return_type
|
582
|
+
return_type = opts[:debug_return_type] || 'Object'
|
583
|
+
|
584
|
+
# auth_names
|
585
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
586
|
+
|
587
|
+
new_options = opts.merge(
|
588
|
+
:operation => :"FilesApi.get_file_content_provider_v1_files_file_id_content_get",
|
589
|
+
:header_params => header_params,
|
590
|
+
:query_params => query_params,
|
591
|
+
:form_params => form_params,
|
592
|
+
:body => post_body,
|
593
|
+
:auth_names => auth_names,
|
594
|
+
:return_type => return_type
|
595
|
+
)
|
596
|
+
|
597
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
598
|
+
if @api_client.config.debugging
|
599
|
+
@api_client.config.logger.debug "API called: FilesApi#get_file_content_provider_v1_files_file_id_content_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
600
|
+
end
|
601
|
+
return data, status_code, headers
|
602
|
+
end
|
603
|
+
|
604
|
+
# Get File Content
|
605
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id}/content Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve-contents Example Curl ``` curl http://localhost:4000/v1/files/file-abc123/content -H \"Authorization: Bearer sk-1234\" ```
|
606
|
+
# @param file_id [String]
|
607
|
+
# @param [Hash] opts the optional parameters
|
608
|
+
# @option opts [String] :provider
|
609
|
+
# @return [Object]
|
610
|
+
def get_file_content_v1_files_file_id_content_get(file_id, opts = {})
|
611
|
+
data, _status_code, _headers = get_file_content_v1_files_file_id_content_get_with_http_info(file_id, opts)
|
612
|
+
data
|
613
|
+
end
|
614
|
+
|
615
|
+
# Get File Content
|
616
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id}/content Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve-contents Example Curl ``` curl http://localhost:4000/v1/files/file-abc123/content -H \"Authorization: Bearer sk-1234\" ```
|
617
|
+
# @param file_id [String]
|
618
|
+
# @param [Hash] opts the optional parameters
|
619
|
+
# @option opts [String] :provider
|
620
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
621
|
+
def get_file_content_v1_files_file_id_content_get_with_http_info(file_id, opts = {})
|
622
|
+
if @api_client.config.debugging
|
623
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.get_file_content_v1_files_file_id_content_get ...'
|
624
|
+
end
|
625
|
+
# verify the required parameter 'file_id' is set
|
626
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
627
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.get_file_content_v1_files_file_id_content_get"
|
628
|
+
end
|
629
|
+
# resource path
|
630
|
+
local_var_path = '/v1/files/{file_id}/content'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
631
|
+
|
632
|
+
# query parameters
|
633
|
+
query_params = opts[:query_params] || {}
|
634
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
635
|
+
|
636
|
+
# header parameters
|
637
|
+
header_params = opts[:header_params] || {}
|
638
|
+
# HTTP header 'Accept' (if needed)
|
639
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
640
|
+
|
641
|
+
# form parameters
|
642
|
+
form_params = opts[:form_params] || {}
|
643
|
+
|
644
|
+
# http body (model)
|
645
|
+
post_body = opts[:debug_body]
|
646
|
+
|
647
|
+
# return_type
|
648
|
+
return_type = opts[:debug_return_type] || 'Object'
|
649
|
+
|
650
|
+
# auth_names
|
651
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
652
|
+
|
653
|
+
new_options = opts.merge(
|
654
|
+
:operation => :"FilesApi.get_file_content_v1_files_file_id_content_get",
|
655
|
+
:header_params => header_params,
|
656
|
+
:query_params => query_params,
|
657
|
+
:form_params => form_params,
|
658
|
+
:body => post_body,
|
659
|
+
:auth_names => auth_names,
|
660
|
+
:return_type => return_type
|
661
|
+
)
|
662
|
+
|
663
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
664
|
+
if @api_client.config.debugging
|
665
|
+
@api_client.config.logger.debug "API called: FilesApi#get_file_content_v1_files_file_id_content_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
666
|
+
end
|
667
|
+
return data, status_code, headers
|
668
|
+
end
|
669
|
+
|
670
|
+
# Get File
|
671
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -H \"Authorization: Bearer sk-1234\" ```
|
672
|
+
# @param file_id [String]
|
673
|
+
# @param [Hash] opts the optional parameters
|
674
|
+
# @option opts [String] :provider
|
675
|
+
# @return [Object]
|
676
|
+
def get_file_files_file_id_get(file_id, opts = {})
|
677
|
+
data, _status_code, _headers = get_file_files_file_id_get_with_http_info(file_id, opts)
|
678
|
+
data
|
679
|
+
end
|
680
|
+
|
681
|
+
# Get File
|
682
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -H \"Authorization: Bearer sk-1234\" ```
|
683
|
+
# @param file_id [String]
|
684
|
+
# @param [Hash] opts the optional parameters
|
685
|
+
# @option opts [String] :provider
|
686
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
687
|
+
def get_file_files_file_id_get_with_http_info(file_id, opts = {})
|
688
|
+
if @api_client.config.debugging
|
689
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.get_file_files_file_id_get ...'
|
690
|
+
end
|
691
|
+
# verify the required parameter 'file_id' is set
|
692
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
693
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.get_file_files_file_id_get"
|
694
|
+
end
|
695
|
+
# resource path
|
696
|
+
local_var_path = '/files/{file_id}'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
697
|
+
|
698
|
+
# query parameters
|
699
|
+
query_params = opts[:query_params] || {}
|
700
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
701
|
+
|
702
|
+
# header parameters
|
703
|
+
header_params = opts[:header_params] || {}
|
704
|
+
# HTTP header 'Accept' (if needed)
|
705
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
706
|
+
|
707
|
+
# form parameters
|
708
|
+
form_params = opts[:form_params] || {}
|
709
|
+
|
710
|
+
# http body (model)
|
711
|
+
post_body = opts[:debug_body]
|
712
|
+
|
713
|
+
# return_type
|
714
|
+
return_type = opts[:debug_return_type] || 'Object'
|
715
|
+
|
716
|
+
# auth_names
|
717
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
718
|
+
|
719
|
+
new_options = opts.merge(
|
720
|
+
:operation => :"FilesApi.get_file_files_file_id_get",
|
721
|
+
:header_params => header_params,
|
722
|
+
:query_params => query_params,
|
723
|
+
:form_params => form_params,
|
724
|
+
:body => post_body,
|
725
|
+
:auth_names => auth_names,
|
726
|
+
:return_type => return_type
|
727
|
+
)
|
728
|
+
|
729
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
730
|
+
if @api_client.config.debugging
|
731
|
+
@api_client.config.logger.debug "API called: FilesApi#get_file_files_file_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
732
|
+
end
|
733
|
+
return data, status_code, headers
|
734
|
+
end
|
735
|
+
|
736
|
+
# Get File
|
737
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -H \"Authorization: Bearer sk-1234\" ```
|
738
|
+
# @param file_id [String]
|
739
|
+
# @param provider [String]
|
740
|
+
# @param [Hash] opts the optional parameters
|
741
|
+
# @return [Object]
|
742
|
+
def get_file_provider_v1_files_file_id_get(file_id, provider, opts = {})
|
743
|
+
data, _status_code, _headers = get_file_provider_v1_files_file_id_get_with_http_info(file_id, provider, opts)
|
744
|
+
data
|
745
|
+
end
|
746
|
+
|
747
|
+
# Get File
|
748
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -H \"Authorization: Bearer sk-1234\" ```
|
749
|
+
# @param file_id [String]
|
750
|
+
# @param provider [String]
|
751
|
+
# @param [Hash] opts the optional parameters
|
752
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
753
|
+
def get_file_provider_v1_files_file_id_get_with_http_info(file_id, provider, opts = {})
|
754
|
+
if @api_client.config.debugging
|
755
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.get_file_provider_v1_files_file_id_get ...'
|
756
|
+
end
|
757
|
+
# verify the required parameter 'file_id' is set
|
758
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
759
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.get_file_provider_v1_files_file_id_get"
|
760
|
+
end
|
761
|
+
# resource path
|
762
|
+
local_var_path = '/{provider}/v1/files/{file_id}'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s)).sub('{' + 'provider' + '}', CGI.escape(provider.to_s))
|
763
|
+
|
764
|
+
# query parameters
|
765
|
+
query_params = opts[:query_params] || {}
|
766
|
+
|
767
|
+
# header parameters
|
768
|
+
header_params = opts[:header_params] || {}
|
769
|
+
# HTTP header 'Accept' (if needed)
|
770
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
771
|
+
|
772
|
+
# form parameters
|
773
|
+
form_params = opts[:form_params] || {}
|
774
|
+
|
775
|
+
# http body (model)
|
776
|
+
post_body = opts[:debug_body]
|
777
|
+
|
778
|
+
# return_type
|
779
|
+
return_type = opts[:debug_return_type] || 'Object'
|
780
|
+
|
781
|
+
# auth_names
|
782
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
783
|
+
|
784
|
+
new_options = opts.merge(
|
785
|
+
:operation => :"FilesApi.get_file_provider_v1_files_file_id_get",
|
786
|
+
:header_params => header_params,
|
787
|
+
:query_params => query_params,
|
788
|
+
:form_params => form_params,
|
789
|
+
:body => post_body,
|
790
|
+
:auth_names => auth_names,
|
791
|
+
:return_type => return_type
|
792
|
+
)
|
793
|
+
|
794
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
795
|
+
if @api_client.config.debugging
|
796
|
+
@api_client.config.logger.debug "API called: FilesApi#get_file_provider_v1_files_file_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
797
|
+
end
|
798
|
+
return data, status_code, headers
|
799
|
+
end
|
800
|
+
|
801
|
+
# Get File
|
802
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -H \"Authorization: Bearer sk-1234\" ```
|
803
|
+
# @param file_id [String]
|
804
|
+
# @param [Hash] opts the optional parameters
|
805
|
+
# @option opts [String] :provider
|
806
|
+
# @return [Object]
|
807
|
+
def get_file_v1_files_file_id_get(file_id, opts = {})
|
808
|
+
data, _status_code, _headers = get_file_v1_files_file_id_get_with_http_info(file_id, opts)
|
809
|
+
data
|
810
|
+
end
|
811
|
+
|
812
|
+
# Get File
|
813
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve Example Curl ``` curl http://localhost:4000/v1/files/file-abc123 -H \"Authorization: Bearer sk-1234\" ```
|
814
|
+
# @param file_id [String]
|
815
|
+
# @param [Hash] opts the optional parameters
|
816
|
+
# @option opts [String] :provider
|
817
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
818
|
+
def get_file_v1_files_file_id_get_with_http_info(file_id, opts = {})
|
819
|
+
if @api_client.config.debugging
|
820
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.get_file_v1_files_file_id_get ...'
|
821
|
+
end
|
822
|
+
# verify the required parameter 'file_id' is set
|
823
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
824
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.get_file_v1_files_file_id_get"
|
825
|
+
end
|
826
|
+
# resource path
|
827
|
+
local_var_path = '/v1/files/{file_id}'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
828
|
+
|
829
|
+
# query parameters
|
830
|
+
query_params = opts[:query_params] || {}
|
831
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
832
|
+
|
833
|
+
# header parameters
|
834
|
+
header_params = opts[:header_params] || {}
|
835
|
+
# HTTP header 'Accept' (if needed)
|
836
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
837
|
+
|
838
|
+
# form parameters
|
839
|
+
form_params = opts[:form_params] || {}
|
840
|
+
|
841
|
+
# http body (model)
|
842
|
+
post_body = opts[:debug_body]
|
843
|
+
|
844
|
+
# return_type
|
845
|
+
return_type = opts[:debug_return_type] || 'Object'
|
846
|
+
|
847
|
+
# auth_names
|
848
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
849
|
+
|
850
|
+
new_options = opts.merge(
|
851
|
+
:operation => :"FilesApi.get_file_v1_files_file_id_get",
|
852
|
+
:header_params => header_params,
|
853
|
+
:query_params => query_params,
|
854
|
+
:form_params => form_params,
|
855
|
+
:body => post_body,
|
856
|
+
:auth_names => auth_names,
|
857
|
+
:return_type => return_type
|
858
|
+
)
|
859
|
+
|
860
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
861
|
+
if @api_client.config.debugging
|
862
|
+
@api_client.config.logger.debug "API called: FilesApi#get_file_v1_files_file_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
863
|
+
end
|
864
|
+
return data, status_code, headers
|
865
|
+
end
|
866
|
+
|
867
|
+
# List Files
|
868
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/list Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" ```
|
869
|
+
# @param [Hash] opts the optional parameters
|
870
|
+
# @option opts [String] :provider
|
871
|
+
# @option opts [String] :target_model_names
|
872
|
+
# @option opts [String] :purpose
|
873
|
+
# @return [Object]
|
874
|
+
def list_files_files_get(opts = {})
|
875
|
+
data, _status_code, _headers = list_files_files_get_with_http_info(opts)
|
876
|
+
data
|
877
|
+
end
|
878
|
+
|
879
|
+
# List Files
|
880
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/list Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" ```
|
881
|
+
# @param [Hash] opts the optional parameters
|
882
|
+
# @option opts [String] :provider
|
883
|
+
# @option opts [String] :target_model_names
|
884
|
+
# @option opts [String] :purpose
|
885
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
886
|
+
def list_files_files_get_with_http_info(opts = {})
|
887
|
+
if @api_client.config.debugging
|
888
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.list_files_files_get ...'
|
889
|
+
end
|
890
|
+
# resource path
|
891
|
+
local_var_path = '/files'
|
892
|
+
|
893
|
+
# query parameters
|
894
|
+
query_params = opts[:query_params] || {}
|
895
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
896
|
+
query_params[:'target_model_names'] = opts[:'target_model_names'] if !opts[:'target_model_names'].nil?
|
897
|
+
query_params[:'purpose'] = opts[:'purpose'] if !opts[:'purpose'].nil?
|
898
|
+
|
899
|
+
# header parameters
|
900
|
+
header_params = opts[:header_params] || {}
|
901
|
+
# HTTP header 'Accept' (if needed)
|
902
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
903
|
+
|
904
|
+
# form parameters
|
905
|
+
form_params = opts[:form_params] || {}
|
906
|
+
|
907
|
+
# http body (model)
|
908
|
+
post_body = opts[:debug_body]
|
909
|
+
|
910
|
+
# return_type
|
911
|
+
return_type = opts[:debug_return_type] || 'Object'
|
912
|
+
|
913
|
+
# auth_names
|
914
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
915
|
+
|
916
|
+
new_options = opts.merge(
|
917
|
+
:operation => :"FilesApi.list_files_files_get",
|
918
|
+
:header_params => header_params,
|
919
|
+
:query_params => query_params,
|
920
|
+
:form_params => form_params,
|
921
|
+
:body => post_body,
|
922
|
+
:auth_names => auth_names,
|
923
|
+
:return_type => return_type
|
924
|
+
)
|
925
|
+
|
926
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
927
|
+
if @api_client.config.debugging
|
928
|
+
@api_client.config.logger.debug "API called: FilesApi#list_files_files_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
929
|
+
end
|
930
|
+
return data, status_code, headers
|
931
|
+
end
|
932
|
+
|
933
|
+
# List Files
|
934
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/list Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" ```
|
935
|
+
# @param provider [String]
|
936
|
+
# @param [Hash] opts the optional parameters
|
937
|
+
# @option opts [String] :target_model_names
|
938
|
+
# @option opts [String] :purpose
|
939
|
+
# @return [Object]
|
940
|
+
def list_files_provider_v1_files_get(provider, opts = {})
|
941
|
+
data, _status_code, _headers = list_files_provider_v1_files_get_with_http_info(provider, opts)
|
942
|
+
data
|
943
|
+
end
|
944
|
+
|
945
|
+
# List Files
|
946
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/list Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" ```
|
947
|
+
# @param provider [String]
|
948
|
+
# @param [Hash] opts the optional parameters
|
949
|
+
# @option opts [String] :target_model_names
|
950
|
+
# @option opts [String] :purpose
|
951
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
952
|
+
def list_files_provider_v1_files_get_with_http_info(provider, opts = {})
|
953
|
+
if @api_client.config.debugging
|
954
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.list_files_provider_v1_files_get ...'
|
955
|
+
end
|
956
|
+
# resource path
|
957
|
+
local_var_path = '/{provider}/v1/files'.sub('{' + 'provider' + '}', CGI.escape(provider.to_s))
|
958
|
+
|
959
|
+
# query parameters
|
960
|
+
query_params = opts[:query_params] || {}
|
961
|
+
query_params[:'target_model_names'] = opts[:'target_model_names'] if !opts[:'target_model_names'].nil?
|
962
|
+
query_params[:'purpose'] = opts[:'purpose'] if !opts[:'purpose'].nil?
|
963
|
+
|
964
|
+
# header parameters
|
965
|
+
header_params = opts[:header_params] || {}
|
966
|
+
# HTTP header 'Accept' (if needed)
|
967
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
968
|
+
|
969
|
+
# form parameters
|
970
|
+
form_params = opts[:form_params] || {}
|
971
|
+
|
972
|
+
# http body (model)
|
973
|
+
post_body = opts[:debug_body]
|
974
|
+
|
975
|
+
# return_type
|
976
|
+
return_type = opts[:debug_return_type] || 'Object'
|
977
|
+
|
978
|
+
# auth_names
|
979
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
980
|
+
|
981
|
+
new_options = opts.merge(
|
982
|
+
:operation => :"FilesApi.list_files_provider_v1_files_get",
|
983
|
+
:header_params => header_params,
|
984
|
+
:query_params => query_params,
|
985
|
+
:form_params => form_params,
|
986
|
+
:body => post_body,
|
987
|
+
:auth_names => auth_names,
|
988
|
+
:return_type => return_type
|
989
|
+
)
|
990
|
+
|
991
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
992
|
+
if @api_client.config.debugging
|
993
|
+
@api_client.config.logger.debug "API called: FilesApi#list_files_provider_v1_files_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
994
|
+
end
|
995
|
+
return data, status_code, headers
|
996
|
+
end
|
997
|
+
|
998
|
+
# List Files
|
999
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/list Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" ```
|
1000
|
+
# @param [Hash] opts the optional parameters
|
1001
|
+
# @option opts [String] :provider
|
1002
|
+
# @option opts [String] :target_model_names
|
1003
|
+
# @option opts [String] :purpose
|
1004
|
+
# @return [Object]
|
1005
|
+
def list_files_v1_files_get(opts = {})
|
1006
|
+
data, _status_code, _headers = list_files_v1_files_get_with_http_info(opts)
|
1007
|
+
data
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
# List Files
|
1011
|
+
# Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/list Example Curl ``` curl http://localhost:4000/v1/files -H \"Authorization: Bearer sk-1234\" ```
|
1012
|
+
# @param [Hash] opts the optional parameters
|
1013
|
+
# @option opts [String] :provider
|
1014
|
+
# @option opts [String] :target_model_names
|
1015
|
+
# @option opts [String] :purpose
|
1016
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
1017
|
+
def list_files_v1_files_get_with_http_info(opts = {})
|
1018
|
+
if @api_client.config.debugging
|
1019
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.list_files_v1_files_get ...'
|
1020
|
+
end
|
1021
|
+
# resource path
|
1022
|
+
local_var_path = '/v1/files'
|
1023
|
+
|
1024
|
+
# query parameters
|
1025
|
+
query_params = opts[:query_params] || {}
|
1026
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
1027
|
+
query_params[:'target_model_names'] = opts[:'target_model_names'] if !opts[:'target_model_names'].nil?
|
1028
|
+
query_params[:'purpose'] = opts[:'purpose'] if !opts[:'purpose'].nil?
|
1029
|
+
|
1030
|
+
# header parameters
|
1031
|
+
header_params = opts[:header_params] || {}
|
1032
|
+
# HTTP header 'Accept' (if needed)
|
1033
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1034
|
+
|
1035
|
+
# form parameters
|
1036
|
+
form_params = opts[:form_params] || {}
|
1037
|
+
|
1038
|
+
# http body (model)
|
1039
|
+
post_body = opts[:debug_body]
|
1040
|
+
|
1041
|
+
# return_type
|
1042
|
+
return_type = opts[:debug_return_type] || 'Object'
|
1043
|
+
|
1044
|
+
# auth_names
|
1045
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader']
|
1046
|
+
|
1047
|
+
new_options = opts.merge(
|
1048
|
+
:operation => :"FilesApi.list_files_v1_files_get",
|
1049
|
+
:header_params => header_params,
|
1050
|
+
:query_params => query_params,
|
1051
|
+
:form_params => form_params,
|
1052
|
+
:body => post_body,
|
1053
|
+
:auth_names => auth_names,
|
1054
|
+
:return_type => return_type
|
1055
|
+
)
|
1056
|
+
|
1057
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1058
|
+
if @api_client.config.debugging
|
1059
|
+
@api_client.config.logger.debug "API called: FilesApi#list_files_v1_files_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1060
|
+
end
|
1061
|
+
return data, status_code, headers
|
1062
|
+
end
|
1063
|
+
end
|
1064
|
+
end
|