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,1141 @@
|
|
1
|
+
# LiteLLMClient::AssistantsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**add_messages_threads_thread_id_messages_post**](AssistantsApi.md#add_messages_threads_thread_id_messages_post) | **POST** /threads/{thread_id}/messages | Add Messages |
|
8
|
+
| [**add_messages_v1_threads_thread_id_messages_post**](AssistantsApi.md#add_messages_v1_threads_thread_id_messages_post) | **POST** /v1/threads/{thread_id}/messages | Add Messages |
|
9
|
+
| [**create_assistant_assistants_post**](AssistantsApi.md#create_assistant_assistants_post) | **POST** /assistants | Create Assistant |
|
10
|
+
| [**create_assistant_v1_assistants_post**](AssistantsApi.md#create_assistant_v1_assistants_post) | **POST** /v1/assistants | Create Assistant |
|
11
|
+
| [**create_threads_threads_post**](AssistantsApi.md#create_threads_threads_post) | **POST** /threads | Create Threads |
|
12
|
+
| [**create_threads_v1_threads_post**](AssistantsApi.md#create_threads_v1_threads_post) | **POST** /v1/threads | Create Threads |
|
13
|
+
| [**delete_assistant_assistants_assistant_id_delete**](AssistantsApi.md#delete_assistant_assistants_assistant_id_delete) | **DELETE** /assistants/{assistant_id} | Delete Assistant |
|
14
|
+
| [**delete_assistant_v1_assistants_assistant_id_delete**](AssistantsApi.md#delete_assistant_v1_assistants_assistant_id_delete) | **DELETE** /v1/assistants/{assistant_id} | Delete Assistant |
|
15
|
+
| [**get_assistants_assistants_get**](AssistantsApi.md#get_assistants_assistants_get) | **GET** /assistants | Get Assistants |
|
16
|
+
| [**get_assistants_v1_assistants_get**](AssistantsApi.md#get_assistants_v1_assistants_get) | **GET** /v1/assistants | Get Assistants |
|
17
|
+
| [**get_messages_threads_thread_id_messages_get**](AssistantsApi.md#get_messages_threads_thread_id_messages_get) | **GET** /threads/{thread_id}/messages | Get Messages |
|
18
|
+
| [**get_messages_v1_threads_thread_id_messages_get**](AssistantsApi.md#get_messages_v1_threads_thread_id_messages_get) | **GET** /v1/threads/{thread_id}/messages | Get Messages |
|
19
|
+
| [**get_thread_threads_thread_id_get**](AssistantsApi.md#get_thread_threads_thread_id_get) | **GET** /threads/{thread_id} | Get Thread |
|
20
|
+
| [**get_thread_v1_threads_thread_id_get**](AssistantsApi.md#get_thread_v1_threads_thread_id_get) | **GET** /v1/threads/{thread_id} | Get Thread |
|
21
|
+
| [**run_thread_threads_thread_id_runs_post**](AssistantsApi.md#run_thread_threads_thread_id_runs_post) | **POST** /threads/{thread_id}/runs | Run Thread |
|
22
|
+
| [**run_thread_v1_threads_thread_id_runs_post**](AssistantsApi.md#run_thread_v1_threads_thread_id_runs_post) | **POST** /v1/threads/{thread_id}/runs | Run Thread |
|
23
|
+
|
24
|
+
|
25
|
+
## add_messages_threads_thread_id_messages_post
|
26
|
+
|
27
|
+
> Object add_messages_threads_thread_id_messages_post(thread_id)
|
28
|
+
|
29
|
+
Add Messages
|
30
|
+
|
31
|
+
Create a message. API Reference - https://platform.openai.com/docs/api-reference/messages/createMessage
|
32
|
+
|
33
|
+
### Examples
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
require 'time'
|
37
|
+
require 'litellm_client'
|
38
|
+
# setup authorization
|
39
|
+
LiteLLMClient.configure do |config|
|
40
|
+
# Configure API key authorization: APIKeyHeader
|
41
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
42
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
43
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
44
|
+
end
|
45
|
+
|
46
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
47
|
+
thread_id = 'thread_id_example' # String |
|
48
|
+
|
49
|
+
begin
|
50
|
+
# Add Messages
|
51
|
+
result = api_instance.add_messages_threads_thread_id_messages_post(thread_id)
|
52
|
+
p result
|
53
|
+
rescue LiteLLMClient::ApiError => e
|
54
|
+
puts "Error when calling AssistantsApi->add_messages_threads_thread_id_messages_post: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
#### Using the add_messages_threads_thread_id_messages_post_with_http_info variant
|
59
|
+
|
60
|
+
This returns an Array which contains the response data, status code and headers.
|
61
|
+
|
62
|
+
> <Array(Object, Integer, Hash)> add_messages_threads_thread_id_messages_post_with_http_info(thread_id)
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
begin
|
66
|
+
# Add Messages
|
67
|
+
data, status_code, headers = api_instance.add_messages_threads_thread_id_messages_post_with_http_info(thread_id)
|
68
|
+
p status_code # => 2xx
|
69
|
+
p headers # => { ... }
|
70
|
+
p data # => Object
|
71
|
+
rescue LiteLLMClient::ApiError => e
|
72
|
+
puts "Error when calling AssistantsApi->add_messages_threads_thread_id_messages_post_with_http_info: #{e}"
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
76
|
+
### Parameters
|
77
|
+
|
78
|
+
| Name | Type | Description | Notes |
|
79
|
+
| ---- | ---- | ----------- | ----- |
|
80
|
+
| **thread_id** | **String** | | |
|
81
|
+
|
82
|
+
### Return type
|
83
|
+
|
84
|
+
**Object**
|
85
|
+
|
86
|
+
### Authorization
|
87
|
+
|
88
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
89
|
+
|
90
|
+
### HTTP request headers
|
91
|
+
|
92
|
+
- **Content-Type**: Not defined
|
93
|
+
- **Accept**: application/json
|
94
|
+
|
95
|
+
|
96
|
+
## add_messages_v1_threads_thread_id_messages_post
|
97
|
+
|
98
|
+
> Object add_messages_v1_threads_thread_id_messages_post(thread_id)
|
99
|
+
|
100
|
+
Add Messages
|
101
|
+
|
102
|
+
Create a message. API Reference - https://platform.openai.com/docs/api-reference/messages/createMessage
|
103
|
+
|
104
|
+
### Examples
|
105
|
+
|
106
|
+
```ruby
|
107
|
+
require 'time'
|
108
|
+
require 'litellm_client'
|
109
|
+
# setup authorization
|
110
|
+
LiteLLMClient.configure do |config|
|
111
|
+
# Configure API key authorization: APIKeyHeader
|
112
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
113
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
114
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
115
|
+
end
|
116
|
+
|
117
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
118
|
+
thread_id = 'thread_id_example' # String |
|
119
|
+
|
120
|
+
begin
|
121
|
+
# Add Messages
|
122
|
+
result = api_instance.add_messages_v1_threads_thread_id_messages_post(thread_id)
|
123
|
+
p result
|
124
|
+
rescue LiteLLMClient::ApiError => e
|
125
|
+
puts "Error when calling AssistantsApi->add_messages_v1_threads_thread_id_messages_post: #{e}"
|
126
|
+
end
|
127
|
+
```
|
128
|
+
|
129
|
+
#### Using the add_messages_v1_threads_thread_id_messages_post_with_http_info variant
|
130
|
+
|
131
|
+
This returns an Array which contains the response data, status code and headers.
|
132
|
+
|
133
|
+
> <Array(Object, Integer, Hash)> add_messages_v1_threads_thread_id_messages_post_with_http_info(thread_id)
|
134
|
+
|
135
|
+
```ruby
|
136
|
+
begin
|
137
|
+
# Add Messages
|
138
|
+
data, status_code, headers = api_instance.add_messages_v1_threads_thread_id_messages_post_with_http_info(thread_id)
|
139
|
+
p status_code # => 2xx
|
140
|
+
p headers # => { ... }
|
141
|
+
p data # => Object
|
142
|
+
rescue LiteLLMClient::ApiError => e
|
143
|
+
puts "Error when calling AssistantsApi->add_messages_v1_threads_thread_id_messages_post_with_http_info: #{e}"
|
144
|
+
end
|
145
|
+
```
|
146
|
+
|
147
|
+
### Parameters
|
148
|
+
|
149
|
+
| Name | Type | Description | Notes |
|
150
|
+
| ---- | ---- | ----------- | ----- |
|
151
|
+
| **thread_id** | **String** | | |
|
152
|
+
|
153
|
+
### Return type
|
154
|
+
|
155
|
+
**Object**
|
156
|
+
|
157
|
+
### Authorization
|
158
|
+
|
159
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
160
|
+
|
161
|
+
### HTTP request headers
|
162
|
+
|
163
|
+
- **Content-Type**: Not defined
|
164
|
+
- **Accept**: application/json
|
165
|
+
|
166
|
+
|
167
|
+
## create_assistant_assistants_post
|
168
|
+
|
169
|
+
> Object create_assistant_assistants_post
|
170
|
+
|
171
|
+
Create Assistant
|
172
|
+
|
173
|
+
Create assistant API Reference docs - https://platform.openai.com/docs/api-reference/assistants/createAssistant
|
174
|
+
|
175
|
+
### Examples
|
176
|
+
|
177
|
+
```ruby
|
178
|
+
require 'time'
|
179
|
+
require 'litellm_client'
|
180
|
+
# setup authorization
|
181
|
+
LiteLLMClient.configure do |config|
|
182
|
+
# Configure API key authorization: APIKeyHeader
|
183
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
184
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
185
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
186
|
+
end
|
187
|
+
|
188
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
189
|
+
|
190
|
+
begin
|
191
|
+
# Create Assistant
|
192
|
+
result = api_instance.create_assistant_assistants_post
|
193
|
+
p result
|
194
|
+
rescue LiteLLMClient::ApiError => e
|
195
|
+
puts "Error when calling AssistantsApi->create_assistant_assistants_post: #{e}"
|
196
|
+
end
|
197
|
+
```
|
198
|
+
|
199
|
+
#### Using the create_assistant_assistants_post_with_http_info variant
|
200
|
+
|
201
|
+
This returns an Array which contains the response data, status code and headers.
|
202
|
+
|
203
|
+
> <Array(Object, Integer, Hash)> create_assistant_assistants_post_with_http_info
|
204
|
+
|
205
|
+
```ruby
|
206
|
+
begin
|
207
|
+
# Create Assistant
|
208
|
+
data, status_code, headers = api_instance.create_assistant_assistants_post_with_http_info
|
209
|
+
p status_code # => 2xx
|
210
|
+
p headers # => { ... }
|
211
|
+
p data # => Object
|
212
|
+
rescue LiteLLMClient::ApiError => e
|
213
|
+
puts "Error when calling AssistantsApi->create_assistant_assistants_post_with_http_info: #{e}"
|
214
|
+
end
|
215
|
+
```
|
216
|
+
|
217
|
+
### Parameters
|
218
|
+
|
219
|
+
This endpoint does not need any parameter.
|
220
|
+
|
221
|
+
### Return type
|
222
|
+
|
223
|
+
**Object**
|
224
|
+
|
225
|
+
### Authorization
|
226
|
+
|
227
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
228
|
+
|
229
|
+
### HTTP request headers
|
230
|
+
|
231
|
+
- **Content-Type**: Not defined
|
232
|
+
- **Accept**: application/json
|
233
|
+
|
234
|
+
|
235
|
+
## create_assistant_v1_assistants_post
|
236
|
+
|
237
|
+
> Object create_assistant_v1_assistants_post
|
238
|
+
|
239
|
+
Create Assistant
|
240
|
+
|
241
|
+
Create assistant API Reference docs - https://platform.openai.com/docs/api-reference/assistants/createAssistant
|
242
|
+
|
243
|
+
### Examples
|
244
|
+
|
245
|
+
```ruby
|
246
|
+
require 'time'
|
247
|
+
require 'litellm_client'
|
248
|
+
# setup authorization
|
249
|
+
LiteLLMClient.configure do |config|
|
250
|
+
# Configure API key authorization: APIKeyHeader
|
251
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
252
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
253
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
254
|
+
end
|
255
|
+
|
256
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
257
|
+
|
258
|
+
begin
|
259
|
+
# Create Assistant
|
260
|
+
result = api_instance.create_assistant_v1_assistants_post
|
261
|
+
p result
|
262
|
+
rescue LiteLLMClient::ApiError => e
|
263
|
+
puts "Error when calling AssistantsApi->create_assistant_v1_assistants_post: #{e}"
|
264
|
+
end
|
265
|
+
```
|
266
|
+
|
267
|
+
#### Using the create_assistant_v1_assistants_post_with_http_info variant
|
268
|
+
|
269
|
+
This returns an Array which contains the response data, status code and headers.
|
270
|
+
|
271
|
+
> <Array(Object, Integer, Hash)> create_assistant_v1_assistants_post_with_http_info
|
272
|
+
|
273
|
+
```ruby
|
274
|
+
begin
|
275
|
+
# Create Assistant
|
276
|
+
data, status_code, headers = api_instance.create_assistant_v1_assistants_post_with_http_info
|
277
|
+
p status_code # => 2xx
|
278
|
+
p headers # => { ... }
|
279
|
+
p data # => Object
|
280
|
+
rescue LiteLLMClient::ApiError => e
|
281
|
+
puts "Error when calling AssistantsApi->create_assistant_v1_assistants_post_with_http_info: #{e}"
|
282
|
+
end
|
283
|
+
```
|
284
|
+
|
285
|
+
### Parameters
|
286
|
+
|
287
|
+
This endpoint does not need any parameter.
|
288
|
+
|
289
|
+
### Return type
|
290
|
+
|
291
|
+
**Object**
|
292
|
+
|
293
|
+
### Authorization
|
294
|
+
|
295
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
296
|
+
|
297
|
+
### HTTP request headers
|
298
|
+
|
299
|
+
- **Content-Type**: Not defined
|
300
|
+
- **Accept**: application/json
|
301
|
+
|
302
|
+
|
303
|
+
## create_threads_threads_post
|
304
|
+
|
305
|
+
> Object create_threads_threads_post
|
306
|
+
|
307
|
+
Create Threads
|
308
|
+
|
309
|
+
Create a thread. API Reference - https://platform.openai.com/docs/api-reference/threads/createThread
|
310
|
+
|
311
|
+
### Examples
|
312
|
+
|
313
|
+
```ruby
|
314
|
+
require 'time'
|
315
|
+
require 'litellm_client'
|
316
|
+
# setup authorization
|
317
|
+
LiteLLMClient.configure do |config|
|
318
|
+
# Configure API key authorization: APIKeyHeader
|
319
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
320
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
321
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
322
|
+
end
|
323
|
+
|
324
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
325
|
+
|
326
|
+
begin
|
327
|
+
# Create Threads
|
328
|
+
result = api_instance.create_threads_threads_post
|
329
|
+
p result
|
330
|
+
rescue LiteLLMClient::ApiError => e
|
331
|
+
puts "Error when calling AssistantsApi->create_threads_threads_post: #{e}"
|
332
|
+
end
|
333
|
+
```
|
334
|
+
|
335
|
+
#### Using the create_threads_threads_post_with_http_info variant
|
336
|
+
|
337
|
+
This returns an Array which contains the response data, status code and headers.
|
338
|
+
|
339
|
+
> <Array(Object, Integer, Hash)> create_threads_threads_post_with_http_info
|
340
|
+
|
341
|
+
```ruby
|
342
|
+
begin
|
343
|
+
# Create Threads
|
344
|
+
data, status_code, headers = api_instance.create_threads_threads_post_with_http_info
|
345
|
+
p status_code # => 2xx
|
346
|
+
p headers # => { ... }
|
347
|
+
p data # => Object
|
348
|
+
rescue LiteLLMClient::ApiError => e
|
349
|
+
puts "Error when calling AssistantsApi->create_threads_threads_post_with_http_info: #{e}"
|
350
|
+
end
|
351
|
+
```
|
352
|
+
|
353
|
+
### Parameters
|
354
|
+
|
355
|
+
This endpoint does not need any parameter.
|
356
|
+
|
357
|
+
### Return type
|
358
|
+
|
359
|
+
**Object**
|
360
|
+
|
361
|
+
### Authorization
|
362
|
+
|
363
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
364
|
+
|
365
|
+
### HTTP request headers
|
366
|
+
|
367
|
+
- **Content-Type**: Not defined
|
368
|
+
- **Accept**: application/json
|
369
|
+
|
370
|
+
|
371
|
+
## create_threads_v1_threads_post
|
372
|
+
|
373
|
+
> Object create_threads_v1_threads_post
|
374
|
+
|
375
|
+
Create Threads
|
376
|
+
|
377
|
+
Create a thread. API Reference - https://platform.openai.com/docs/api-reference/threads/createThread
|
378
|
+
|
379
|
+
### Examples
|
380
|
+
|
381
|
+
```ruby
|
382
|
+
require 'time'
|
383
|
+
require 'litellm_client'
|
384
|
+
# setup authorization
|
385
|
+
LiteLLMClient.configure do |config|
|
386
|
+
# Configure API key authorization: APIKeyHeader
|
387
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
388
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
389
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
390
|
+
end
|
391
|
+
|
392
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
393
|
+
|
394
|
+
begin
|
395
|
+
# Create Threads
|
396
|
+
result = api_instance.create_threads_v1_threads_post
|
397
|
+
p result
|
398
|
+
rescue LiteLLMClient::ApiError => e
|
399
|
+
puts "Error when calling AssistantsApi->create_threads_v1_threads_post: #{e}"
|
400
|
+
end
|
401
|
+
```
|
402
|
+
|
403
|
+
#### Using the create_threads_v1_threads_post_with_http_info variant
|
404
|
+
|
405
|
+
This returns an Array which contains the response data, status code and headers.
|
406
|
+
|
407
|
+
> <Array(Object, Integer, Hash)> create_threads_v1_threads_post_with_http_info
|
408
|
+
|
409
|
+
```ruby
|
410
|
+
begin
|
411
|
+
# Create Threads
|
412
|
+
data, status_code, headers = api_instance.create_threads_v1_threads_post_with_http_info
|
413
|
+
p status_code # => 2xx
|
414
|
+
p headers # => { ... }
|
415
|
+
p data # => Object
|
416
|
+
rescue LiteLLMClient::ApiError => e
|
417
|
+
puts "Error when calling AssistantsApi->create_threads_v1_threads_post_with_http_info: #{e}"
|
418
|
+
end
|
419
|
+
```
|
420
|
+
|
421
|
+
### Parameters
|
422
|
+
|
423
|
+
This endpoint does not need any parameter.
|
424
|
+
|
425
|
+
### Return type
|
426
|
+
|
427
|
+
**Object**
|
428
|
+
|
429
|
+
### Authorization
|
430
|
+
|
431
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
432
|
+
|
433
|
+
### HTTP request headers
|
434
|
+
|
435
|
+
- **Content-Type**: Not defined
|
436
|
+
- **Accept**: application/json
|
437
|
+
|
438
|
+
|
439
|
+
## delete_assistant_assistants_assistant_id_delete
|
440
|
+
|
441
|
+
> Object delete_assistant_assistants_assistant_id_delete(assistant_id)
|
442
|
+
|
443
|
+
Delete Assistant
|
444
|
+
|
445
|
+
Delete assistant API Reference docs - https://platform.openai.com/docs/api-reference/assistants/createAssistant
|
446
|
+
|
447
|
+
### Examples
|
448
|
+
|
449
|
+
```ruby
|
450
|
+
require 'time'
|
451
|
+
require 'litellm_client'
|
452
|
+
# setup authorization
|
453
|
+
LiteLLMClient.configure do |config|
|
454
|
+
# Configure API key authorization: APIKeyHeader
|
455
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
456
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
457
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
458
|
+
end
|
459
|
+
|
460
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
461
|
+
assistant_id = 'assistant_id_example' # String |
|
462
|
+
|
463
|
+
begin
|
464
|
+
# Delete Assistant
|
465
|
+
result = api_instance.delete_assistant_assistants_assistant_id_delete(assistant_id)
|
466
|
+
p result
|
467
|
+
rescue LiteLLMClient::ApiError => e
|
468
|
+
puts "Error when calling AssistantsApi->delete_assistant_assistants_assistant_id_delete: #{e}"
|
469
|
+
end
|
470
|
+
```
|
471
|
+
|
472
|
+
#### Using the delete_assistant_assistants_assistant_id_delete_with_http_info variant
|
473
|
+
|
474
|
+
This returns an Array which contains the response data, status code and headers.
|
475
|
+
|
476
|
+
> <Array(Object, Integer, Hash)> delete_assistant_assistants_assistant_id_delete_with_http_info(assistant_id)
|
477
|
+
|
478
|
+
```ruby
|
479
|
+
begin
|
480
|
+
# Delete Assistant
|
481
|
+
data, status_code, headers = api_instance.delete_assistant_assistants_assistant_id_delete_with_http_info(assistant_id)
|
482
|
+
p status_code # => 2xx
|
483
|
+
p headers # => { ... }
|
484
|
+
p data # => Object
|
485
|
+
rescue LiteLLMClient::ApiError => e
|
486
|
+
puts "Error when calling AssistantsApi->delete_assistant_assistants_assistant_id_delete_with_http_info: #{e}"
|
487
|
+
end
|
488
|
+
```
|
489
|
+
|
490
|
+
### Parameters
|
491
|
+
|
492
|
+
| Name | Type | Description | Notes |
|
493
|
+
| ---- | ---- | ----------- | ----- |
|
494
|
+
| **assistant_id** | **String** | | |
|
495
|
+
|
496
|
+
### Return type
|
497
|
+
|
498
|
+
**Object**
|
499
|
+
|
500
|
+
### Authorization
|
501
|
+
|
502
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
503
|
+
|
504
|
+
### HTTP request headers
|
505
|
+
|
506
|
+
- **Content-Type**: Not defined
|
507
|
+
- **Accept**: application/json
|
508
|
+
|
509
|
+
|
510
|
+
## delete_assistant_v1_assistants_assistant_id_delete
|
511
|
+
|
512
|
+
> Object delete_assistant_v1_assistants_assistant_id_delete(assistant_id)
|
513
|
+
|
514
|
+
Delete Assistant
|
515
|
+
|
516
|
+
Delete assistant API Reference docs - https://platform.openai.com/docs/api-reference/assistants/createAssistant
|
517
|
+
|
518
|
+
### Examples
|
519
|
+
|
520
|
+
```ruby
|
521
|
+
require 'time'
|
522
|
+
require 'litellm_client'
|
523
|
+
# setup authorization
|
524
|
+
LiteLLMClient.configure do |config|
|
525
|
+
# Configure API key authorization: APIKeyHeader
|
526
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
527
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
528
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
529
|
+
end
|
530
|
+
|
531
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
532
|
+
assistant_id = 'assistant_id_example' # String |
|
533
|
+
|
534
|
+
begin
|
535
|
+
# Delete Assistant
|
536
|
+
result = api_instance.delete_assistant_v1_assistants_assistant_id_delete(assistant_id)
|
537
|
+
p result
|
538
|
+
rescue LiteLLMClient::ApiError => e
|
539
|
+
puts "Error when calling AssistantsApi->delete_assistant_v1_assistants_assistant_id_delete: #{e}"
|
540
|
+
end
|
541
|
+
```
|
542
|
+
|
543
|
+
#### Using the delete_assistant_v1_assistants_assistant_id_delete_with_http_info variant
|
544
|
+
|
545
|
+
This returns an Array which contains the response data, status code and headers.
|
546
|
+
|
547
|
+
> <Array(Object, Integer, Hash)> delete_assistant_v1_assistants_assistant_id_delete_with_http_info(assistant_id)
|
548
|
+
|
549
|
+
```ruby
|
550
|
+
begin
|
551
|
+
# Delete Assistant
|
552
|
+
data, status_code, headers = api_instance.delete_assistant_v1_assistants_assistant_id_delete_with_http_info(assistant_id)
|
553
|
+
p status_code # => 2xx
|
554
|
+
p headers # => { ... }
|
555
|
+
p data # => Object
|
556
|
+
rescue LiteLLMClient::ApiError => e
|
557
|
+
puts "Error when calling AssistantsApi->delete_assistant_v1_assistants_assistant_id_delete_with_http_info: #{e}"
|
558
|
+
end
|
559
|
+
```
|
560
|
+
|
561
|
+
### Parameters
|
562
|
+
|
563
|
+
| Name | Type | Description | Notes |
|
564
|
+
| ---- | ---- | ----------- | ----- |
|
565
|
+
| **assistant_id** | **String** | | |
|
566
|
+
|
567
|
+
### Return type
|
568
|
+
|
569
|
+
**Object**
|
570
|
+
|
571
|
+
### Authorization
|
572
|
+
|
573
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
574
|
+
|
575
|
+
### HTTP request headers
|
576
|
+
|
577
|
+
- **Content-Type**: Not defined
|
578
|
+
- **Accept**: application/json
|
579
|
+
|
580
|
+
|
581
|
+
## get_assistants_assistants_get
|
582
|
+
|
583
|
+
> Object get_assistants_assistants_get
|
584
|
+
|
585
|
+
Get Assistants
|
586
|
+
|
587
|
+
Returns a list of assistants. API Reference docs - https://platform.openai.com/docs/api-reference/assistants/listAssistants
|
588
|
+
|
589
|
+
### Examples
|
590
|
+
|
591
|
+
```ruby
|
592
|
+
require 'time'
|
593
|
+
require 'litellm_client'
|
594
|
+
# setup authorization
|
595
|
+
LiteLLMClient.configure do |config|
|
596
|
+
# Configure API key authorization: APIKeyHeader
|
597
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
598
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
599
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
600
|
+
end
|
601
|
+
|
602
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
603
|
+
|
604
|
+
begin
|
605
|
+
# Get Assistants
|
606
|
+
result = api_instance.get_assistants_assistants_get
|
607
|
+
p result
|
608
|
+
rescue LiteLLMClient::ApiError => e
|
609
|
+
puts "Error when calling AssistantsApi->get_assistants_assistants_get: #{e}"
|
610
|
+
end
|
611
|
+
```
|
612
|
+
|
613
|
+
#### Using the get_assistants_assistants_get_with_http_info variant
|
614
|
+
|
615
|
+
This returns an Array which contains the response data, status code and headers.
|
616
|
+
|
617
|
+
> <Array(Object, Integer, Hash)> get_assistants_assistants_get_with_http_info
|
618
|
+
|
619
|
+
```ruby
|
620
|
+
begin
|
621
|
+
# Get Assistants
|
622
|
+
data, status_code, headers = api_instance.get_assistants_assistants_get_with_http_info
|
623
|
+
p status_code # => 2xx
|
624
|
+
p headers # => { ... }
|
625
|
+
p data # => Object
|
626
|
+
rescue LiteLLMClient::ApiError => e
|
627
|
+
puts "Error when calling AssistantsApi->get_assistants_assistants_get_with_http_info: #{e}"
|
628
|
+
end
|
629
|
+
```
|
630
|
+
|
631
|
+
### Parameters
|
632
|
+
|
633
|
+
This endpoint does not need any parameter.
|
634
|
+
|
635
|
+
### Return type
|
636
|
+
|
637
|
+
**Object**
|
638
|
+
|
639
|
+
### Authorization
|
640
|
+
|
641
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
642
|
+
|
643
|
+
### HTTP request headers
|
644
|
+
|
645
|
+
- **Content-Type**: Not defined
|
646
|
+
- **Accept**: application/json
|
647
|
+
|
648
|
+
|
649
|
+
## get_assistants_v1_assistants_get
|
650
|
+
|
651
|
+
> Object get_assistants_v1_assistants_get
|
652
|
+
|
653
|
+
Get Assistants
|
654
|
+
|
655
|
+
Returns a list of assistants. API Reference docs - https://platform.openai.com/docs/api-reference/assistants/listAssistants
|
656
|
+
|
657
|
+
### Examples
|
658
|
+
|
659
|
+
```ruby
|
660
|
+
require 'time'
|
661
|
+
require 'litellm_client'
|
662
|
+
# setup authorization
|
663
|
+
LiteLLMClient.configure do |config|
|
664
|
+
# Configure API key authorization: APIKeyHeader
|
665
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
666
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
667
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
668
|
+
end
|
669
|
+
|
670
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
671
|
+
|
672
|
+
begin
|
673
|
+
# Get Assistants
|
674
|
+
result = api_instance.get_assistants_v1_assistants_get
|
675
|
+
p result
|
676
|
+
rescue LiteLLMClient::ApiError => e
|
677
|
+
puts "Error when calling AssistantsApi->get_assistants_v1_assistants_get: #{e}"
|
678
|
+
end
|
679
|
+
```
|
680
|
+
|
681
|
+
#### Using the get_assistants_v1_assistants_get_with_http_info variant
|
682
|
+
|
683
|
+
This returns an Array which contains the response data, status code and headers.
|
684
|
+
|
685
|
+
> <Array(Object, Integer, Hash)> get_assistants_v1_assistants_get_with_http_info
|
686
|
+
|
687
|
+
```ruby
|
688
|
+
begin
|
689
|
+
# Get Assistants
|
690
|
+
data, status_code, headers = api_instance.get_assistants_v1_assistants_get_with_http_info
|
691
|
+
p status_code # => 2xx
|
692
|
+
p headers # => { ... }
|
693
|
+
p data # => Object
|
694
|
+
rescue LiteLLMClient::ApiError => e
|
695
|
+
puts "Error when calling AssistantsApi->get_assistants_v1_assistants_get_with_http_info: #{e}"
|
696
|
+
end
|
697
|
+
```
|
698
|
+
|
699
|
+
### Parameters
|
700
|
+
|
701
|
+
This endpoint does not need any parameter.
|
702
|
+
|
703
|
+
### Return type
|
704
|
+
|
705
|
+
**Object**
|
706
|
+
|
707
|
+
### Authorization
|
708
|
+
|
709
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
710
|
+
|
711
|
+
### HTTP request headers
|
712
|
+
|
713
|
+
- **Content-Type**: Not defined
|
714
|
+
- **Accept**: application/json
|
715
|
+
|
716
|
+
|
717
|
+
## get_messages_threads_thread_id_messages_get
|
718
|
+
|
719
|
+
> Object get_messages_threads_thread_id_messages_get(thread_id)
|
720
|
+
|
721
|
+
Get Messages
|
722
|
+
|
723
|
+
Returns a list of messages for a given thread. API Reference - https://platform.openai.com/docs/api-reference/messages/listMessages
|
724
|
+
|
725
|
+
### Examples
|
726
|
+
|
727
|
+
```ruby
|
728
|
+
require 'time'
|
729
|
+
require 'litellm_client'
|
730
|
+
# setup authorization
|
731
|
+
LiteLLMClient.configure do |config|
|
732
|
+
# Configure API key authorization: APIKeyHeader
|
733
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
734
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
735
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
736
|
+
end
|
737
|
+
|
738
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
739
|
+
thread_id = 'thread_id_example' # String |
|
740
|
+
|
741
|
+
begin
|
742
|
+
# Get Messages
|
743
|
+
result = api_instance.get_messages_threads_thread_id_messages_get(thread_id)
|
744
|
+
p result
|
745
|
+
rescue LiteLLMClient::ApiError => e
|
746
|
+
puts "Error when calling AssistantsApi->get_messages_threads_thread_id_messages_get: #{e}"
|
747
|
+
end
|
748
|
+
```
|
749
|
+
|
750
|
+
#### Using the get_messages_threads_thread_id_messages_get_with_http_info variant
|
751
|
+
|
752
|
+
This returns an Array which contains the response data, status code and headers.
|
753
|
+
|
754
|
+
> <Array(Object, Integer, Hash)> get_messages_threads_thread_id_messages_get_with_http_info(thread_id)
|
755
|
+
|
756
|
+
```ruby
|
757
|
+
begin
|
758
|
+
# Get Messages
|
759
|
+
data, status_code, headers = api_instance.get_messages_threads_thread_id_messages_get_with_http_info(thread_id)
|
760
|
+
p status_code # => 2xx
|
761
|
+
p headers # => { ... }
|
762
|
+
p data # => Object
|
763
|
+
rescue LiteLLMClient::ApiError => e
|
764
|
+
puts "Error when calling AssistantsApi->get_messages_threads_thread_id_messages_get_with_http_info: #{e}"
|
765
|
+
end
|
766
|
+
```
|
767
|
+
|
768
|
+
### Parameters
|
769
|
+
|
770
|
+
| Name | Type | Description | Notes |
|
771
|
+
| ---- | ---- | ----------- | ----- |
|
772
|
+
| **thread_id** | **String** | | |
|
773
|
+
|
774
|
+
### Return type
|
775
|
+
|
776
|
+
**Object**
|
777
|
+
|
778
|
+
### Authorization
|
779
|
+
|
780
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
781
|
+
|
782
|
+
### HTTP request headers
|
783
|
+
|
784
|
+
- **Content-Type**: Not defined
|
785
|
+
- **Accept**: application/json
|
786
|
+
|
787
|
+
|
788
|
+
## get_messages_v1_threads_thread_id_messages_get
|
789
|
+
|
790
|
+
> Object get_messages_v1_threads_thread_id_messages_get(thread_id)
|
791
|
+
|
792
|
+
Get Messages
|
793
|
+
|
794
|
+
Returns a list of messages for a given thread. API Reference - https://platform.openai.com/docs/api-reference/messages/listMessages
|
795
|
+
|
796
|
+
### Examples
|
797
|
+
|
798
|
+
```ruby
|
799
|
+
require 'time'
|
800
|
+
require 'litellm_client'
|
801
|
+
# setup authorization
|
802
|
+
LiteLLMClient.configure do |config|
|
803
|
+
# Configure API key authorization: APIKeyHeader
|
804
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
805
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
806
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
807
|
+
end
|
808
|
+
|
809
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
810
|
+
thread_id = 'thread_id_example' # String |
|
811
|
+
|
812
|
+
begin
|
813
|
+
# Get Messages
|
814
|
+
result = api_instance.get_messages_v1_threads_thread_id_messages_get(thread_id)
|
815
|
+
p result
|
816
|
+
rescue LiteLLMClient::ApiError => e
|
817
|
+
puts "Error when calling AssistantsApi->get_messages_v1_threads_thread_id_messages_get: #{e}"
|
818
|
+
end
|
819
|
+
```
|
820
|
+
|
821
|
+
#### Using the get_messages_v1_threads_thread_id_messages_get_with_http_info variant
|
822
|
+
|
823
|
+
This returns an Array which contains the response data, status code and headers.
|
824
|
+
|
825
|
+
> <Array(Object, Integer, Hash)> get_messages_v1_threads_thread_id_messages_get_with_http_info(thread_id)
|
826
|
+
|
827
|
+
```ruby
|
828
|
+
begin
|
829
|
+
# Get Messages
|
830
|
+
data, status_code, headers = api_instance.get_messages_v1_threads_thread_id_messages_get_with_http_info(thread_id)
|
831
|
+
p status_code # => 2xx
|
832
|
+
p headers # => { ... }
|
833
|
+
p data # => Object
|
834
|
+
rescue LiteLLMClient::ApiError => e
|
835
|
+
puts "Error when calling AssistantsApi->get_messages_v1_threads_thread_id_messages_get_with_http_info: #{e}"
|
836
|
+
end
|
837
|
+
```
|
838
|
+
|
839
|
+
### Parameters
|
840
|
+
|
841
|
+
| Name | Type | Description | Notes |
|
842
|
+
| ---- | ---- | ----------- | ----- |
|
843
|
+
| **thread_id** | **String** | | |
|
844
|
+
|
845
|
+
### Return type
|
846
|
+
|
847
|
+
**Object**
|
848
|
+
|
849
|
+
### Authorization
|
850
|
+
|
851
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
852
|
+
|
853
|
+
### HTTP request headers
|
854
|
+
|
855
|
+
- **Content-Type**: Not defined
|
856
|
+
- **Accept**: application/json
|
857
|
+
|
858
|
+
|
859
|
+
## get_thread_threads_thread_id_get
|
860
|
+
|
861
|
+
> Object get_thread_threads_thread_id_get(thread_id)
|
862
|
+
|
863
|
+
Get Thread
|
864
|
+
|
865
|
+
Retrieves a thread. API Reference - https://platform.openai.com/docs/api-reference/threads/getThread
|
866
|
+
|
867
|
+
### Examples
|
868
|
+
|
869
|
+
```ruby
|
870
|
+
require 'time'
|
871
|
+
require 'litellm_client'
|
872
|
+
# setup authorization
|
873
|
+
LiteLLMClient.configure do |config|
|
874
|
+
# Configure API key authorization: APIKeyHeader
|
875
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
876
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
877
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
878
|
+
end
|
879
|
+
|
880
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
881
|
+
thread_id = 'thread_id_example' # String |
|
882
|
+
|
883
|
+
begin
|
884
|
+
# Get Thread
|
885
|
+
result = api_instance.get_thread_threads_thread_id_get(thread_id)
|
886
|
+
p result
|
887
|
+
rescue LiteLLMClient::ApiError => e
|
888
|
+
puts "Error when calling AssistantsApi->get_thread_threads_thread_id_get: #{e}"
|
889
|
+
end
|
890
|
+
```
|
891
|
+
|
892
|
+
#### Using the get_thread_threads_thread_id_get_with_http_info variant
|
893
|
+
|
894
|
+
This returns an Array which contains the response data, status code and headers.
|
895
|
+
|
896
|
+
> <Array(Object, Integer, Hash)> get_thread_threads_thread_id_get_with_http_info(thread_id)
|
897
|
+
|
898
|
+
```ruby
|
899
|
+
begin
|
900
|
+
# Get Thread
|
901
|
+
data, status_code, headers = api_instance.get_thread_threads_thread_id_get_with_http_info(thread_id)
|
902
|
+
p status_code # => 2xx
|
903
|
+
p headers # => { ... }
|
904
|
+
p data # => Object
|
905
|
+
rescue LiteLLMClient::ApiError => e
|
906
|
+
puts "Error when calling AssistantsApi->get_thread_threads_thread_id_get_with_http_info: #{e}"
|
907
|
+
end
|
908
|
+
```
|
909
|
+
|
910
|
+
### Parameters
|
911
|
+
|
912
|
+
| Name | Type | Description | Notes |
|
913
|
+
| ---- | ---- | ----------- | ----- |
|
914
|
+
| **thread_id** | **String** | | |
|
915
|
+
|
916
|
+
### Return type
|
917
|
+
|
918
|
+
**Object**
|
919
|
+
|
920
|
+
### Authorization
|
921
|
+
|
922
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
923
|
+
|
924
|
+
### HTTP request headers
|
925
|
+
|
926
|
+
- **Content-Type**: Not defined
|
927
|
+
- **Accept**: application/json
|
928
|
+
|
929
|
+
|
930
|
+
## get_thread_v1_threads_thread_id_get
|
931
|
+
|
932
|
+
> Object get_thread_v1_threads_thread_id_get(thread_id)
|
933
|
+
|
934
|
+
Get Thread
|
935
|
+
|
936
|
+
Retrieves a thread. API Reference - https://platform.openai.com/docs/api-reference/threads/getThread
|
937
|
+
|
938
|
+
### Examples
|
939
|
+
|
940
|
+
```ruby
|
941
|
+
require 'time'
|
942
|
+
require 'litellm_client'
|
943
|
+
# setup authorization
|
944
|
+
LiteLLMClient.configure do |config|
|
945
|
+
# Configure API key authorization: APIKeyHeader
|
946
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
947
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
948
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
949
|
+
end
|
950
|
+
|
951
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
952
|
+
thread_id = 'thread_id_example' # String |
|
953
|
+
|
954
|
+
begin
|
955
|
+
# Get Thread
|
956
|
+
result = api_instance.get_thread_v1_threads_thread_id_get(thread_id)
|
957
|
+
p result
|
958
|
+
rescue LiteLLMClient::ApiError => e
|
959
|
+
puts "Error when calling AssistantsApi->get_thread_v1_threads_thread_id_get: #{e}"
|
960
|
+
end
|
961
|
+
```
|
962
|
+
|
963
|
+
#### Using the get_thread_v1_threads_thread_id_get_with_http_info variant
|
964
|
+
|
965
|
+
This returns an Array which contains the response data, status code and headers.
|
966
|
+
|
967
|
+
> <Array(Object, Integer, Hash)> get_thread_v1_threads_thread_id_get_with_http_info(thread_id)
|
968
|
+
|
969
|
+
```ruby
|
970
|
+
begin
|
971
|
+
# Get Thread
|
972
|
+
data, status_code, headers = api_instance.get_thread_v1_threads_thread_id_get_with_http_info(thread_id)
|
973
|
+
p status_code # => 2xx
|
974
|
+
p headers # => { ... }
|
975
|
+
p data # => Object
|
976
|
+
rescue LiteLLMClient::ApiError => e
|
977
|
+
puts "Error when calling AssistantsApi->get_thread_v1_threads_thread_id_get_with_http_info: #{e}"
|
978
|
+
end
|
979
|
+
```
|
980
|
+
|
981
|
+
### Parameters
|
982
|
+
|
983
|
+
| Name | Type | Description | Notes |
|
984
|
+
| ---- | ---- | ----------- | ----- |
|
985
|
+
| **thread_id** | **String** | | |
|
986
|
+
|
987
|
+
### Return type
|
988
|
+
|
989
|
+
**Object**
|
990
|
+
|
991
|
+
### Authorization
|
992
|
+
|
993
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
994
|
+
|
995
|
+
### HTTP request headers
|
996
|
+
|
997
|
+
- **Content-Type**: Not defined
|
998
|
+
- **Accept**: application/json
|
999
|
+
|
1000
|
+
|
1001
|
+
## run_thread_threads_thread_id_runs_post
|
1002
|
+
|
1003
|
+
> Object run_thread_threads_thread_id_runs_post(thread_id)
|
1004
|
+
|
1005
|
+
Run Thread
|
1006
|
+
|
1007
|
+
Create a run. API Reference: https://platform.openai.com/docs/api-reference/runs/createRun
|
1008
|
+
|
1009
|
+
### Examples
|
1010
|
+
|
1011
|
+
```ruby
|
1012
|
+
require 'time'
|
1013
|
+
require 'litellm_client'
|
1014
|
+
# setup authorization
|
1015
|
+
LiteLLMClient.configure do |config|
|
1016
|
+
# Configure API key authorization: APIKeyHeader
|
1017
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
1018
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1019
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
1023
|
+
thread_id = 'thread_id_example' # String |
|
1024
|
+
|
1025
|
+
begin
|
1026
|
+
# Run Thread
|
1027
|
+
result = api_instance.run_thread_threads_thread_id_runs_post(thread_id)
|
1028
|
+
p result
|
1029
|
+
rescue LiteLLMClient::ApiError => e
|
1030
|
+
puts "Error when calling AssistantsApi->run_thread_threads_thread_id_runs_post: #{e}"
|
1031
|
+
end
|
1032
|
+
```
|
1033
|
+
|
1034
|
+
#### Using the run_thread_threads_thread_id_runs_post_with_http_info variant
|
1035
|
+
|
1036
|
+
This returns an Array which contains the response data, status code and headers.
|
1037
|
+
|
1038
|
+
> <Array(Object, Integer, Hash)> run_thread_threads_thread_id_runs_post_with_http_info(thread_id)
|
1039
|
+
|
1040
|
+
```ruby
|
1041
|
+
begin
|
1042
|
+
# Run Thread
|
1043
|
+
data, status_code, headers = api_instance.run_thread_threads_thread_id_runs_post_with_http_info(thread_id)
|
1044
|
+
p status_code # => 2xx
|
1045
|
+
p headers # => { ... }
|
1046
|
+
p data # => Object
|
1047
|
+
rescue LiteLLMClient::ApiError => e
|
1048
|
+
puts "Error when calling AssistantsApi->run_thread_threads_thread_id_runs_post_with_http_info: #{e}"
|
1049
|
+
end
|
1050
|
+
```
|
1051
|
+
|
1052
|
+
### Parameters
|
1053
|
+
|
1054
|
+
| Name | Type | Description | Notes |
|
1055
|
+
| ---- | ---- | ----------- | ----- |
|
1056
|
+
| **thread_id** | **String** | | |
|
1057
|
+
|
1058
|
+
### Return type
|
1059
|
+
|
1060
|
+
**Object**
|
1061
|
+
|
1062
|
+
### Authorization
|
1063
|
+
|
1064
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
1065
|
+
|
1066
|
+
### HTTP request headers
|
1067
|
+
|
1068
|
+
- **Content-Type**: Not defined
|
1069
|
+
- **Accept**: application/json
|
1070
|
+
|
1071
|
+
|
1072
|
+
## run_thread_v1_threads_thread_id_runs_post
|
1073
|
+
|
1074
|
+
> Object run_thread_v1_threads_thread_id_runs_post(thread_id)
|
1075
|
+
|
1076
|
+
Run Thread
|
1077
|
+
|
1078
|
+
Create a run. API Reference: https://platform.openai.com/docs/api-reference/runs/createRun
|
1079
|
+
|
1080
|
+
### Examples
|
1081
|
+
|
1082
|
+
```ruby
|
1083
|
+
require 'time'
|
1084
|
+
require 'litellm_client'
|
1085
|
+
# setup authorization
|
1086
|
+
LiteLLMClient.configure do |config|
|
1087
|
+
# Configure API key authorization: APIKeyHeader
|
1088
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
1089
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1090
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
api_instance = LiteLLMClient::AssistantsApi.new
|
1094
|
+
thread_id = 'thread_id_example' # String |
|
1095
|
+
|
1096
|
+
begin
|
1097
|
+
# Run Thread
|
1098
|
+
result = api_instance.run_thread_v1_threads_thread_id_runs_post(thread_id)
|
1099
|
+
p result
|
1100
|
+
rescue LiteLLMClient::ApiError => e
|
1101
|
+
puts "Error when calling AssistantsApi->run_thread_v1_threads_thread_id_runs_post: #{e}"
|
1102
|
+
end
|
1103
|
+
```
|
1104
|
+
|
1105
|
+
#### Using the run_thread_v1_threads_thread_id_runs_post_with_http_info variant
|
1106
|
+
|
1107
|
+
This returns an Array which contains the response data, status code and headers.
|
1108
|
+
|
1109
|
+
> <Array(Object, Integer, Hash)> run_thread_v1_threads_thread_id_runs_post_with_http_info(thread_id)
|
1110
|
+
|
1111
|
+
```ruby
|
1112
|
+
begin
|
1113
|
+
# Run Thread
|
1114
|
+
data, status_code, headers = api_instance.run_thread_v1_threads_thread_id_runs_post_with_http_info(thread_id)
|
1115
|
+
p status_code # => 2xx
|
1116
|
+
p headers # => { ... }
|
1117
|
+
p data # => Object
|
1118
|
+
rescue LiteLLMClient::ApiError => e
|
1119
|
+
puts "Error when calling AssistantsApi->run_thread_v1_threads_thread_id_runs_post_with_http_info: #{e}"
|
1120
|
+
end
|
1121
|
+
```
|
1122
|
+
|
1123
|
+
### Parameters
|
1124
|
+
|
1125
|
+
| Name | Type | Description | Notes |
|
1126
|
+
| ---- | ---- | ----------- | ----- |
|
1127
|
+
| **thread_id** | **String** | | |
|
1128
|
+
|
1129
|
+
### Return type
|
1130
|
+
|
1131
|
+
**Object**
|
1132
|
+
|
1133
|
+
### Authorization
|
1134
|
+
|
1135
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
1136
|
+
|
1137
|
+
### HTTP request headers
|
1138
|
+
|
1139
|
+
- **Content-Type**: Not defined
|
1140
|
+
- **Accept**: application/json
|
1141
|
+
|