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,1433 @@
|
|
1
|
+
# LiteLLMClient::TeamManagementApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**add_team_callbacks_team_team_id_callback_post**](TeamManagementApi.md#add_team_callbacks_team_team_id_callback_post) | **POST** /team/{team_id}/callback | Add Team Callbacks |
|
8
|
+
| [**block_team_team_block_post**](TeamManagementApi.md#block_team_team_block_post) | **POST** /team/block | Block Team |
|
9
|
+
| [**delete_team_team_delete_post**](TeamManagementApi.md#delete_team_team_delete_post) | **POST** /team/delete | Delete Team |
|
10
|
+
| [**disable_team_logging_team_team_id_disable_logging_post**](TeamManagementApi.md#disable_team_logging_team_team_id_disable_logging_post) | **POST** /team/{team_id}/disable_logging | Disable Team Logging |
|
11
|
+
| [**get_team_callbacks_team_team_id_callback_get**](TeamManagementApi.md#get_team_callbacks_team_team_id_callback_get) | **GET** /team/{team_id}/callback | Get Team Callbacks |
|
12
|
+
| [**get_team_daily_activity_team_daily_activity_get**](TeamManagementApi.md#get_team_daily_activity_team_daily_activity_get) | **GET** /team/daily/activity | Get Team Daily Activity |
|
13
|
+
| [**list_team_team_list_get**](TeamManagementApi.md#list_team_team_list_get) | **GET** /team/list | List Team |
|
14
|
+
| [**list_team_v2_v2_team_list_get**](TeamManagementApi.md#list_team_v2_v2_team_list_get) | **GET** /v2/team/list | List Team V2 |
|
15
|
+
| [**new_team_team_new_post**](TeamManagementApi.md#new_team_team_new_post) | **POST** /team/new | New Team |
|
16
|
+
| [**team_info_team_info_get**](TeamManagementApi.md#team_info_team_info_get) | **GET** /team/info | Team Info |
|
17
|
+
| [**team_member_add_team_member_add_post**](TeamManagementApi.md#team_member_add_team_member_add_post) | **POST** /team/member_add | Team Member Add |
|
18
|
+
| [**team_member_delete_team_member_delete_post**](TeamManagementApi.md#team_member_delete_team_member_delete_post) | **POST** /team/member_delete | Team Member Delete |
|
19
|
+
| [**team_member_permissions_team_permissions_list_get**](TeamManagementApi.md#team_member_permissions_team_permissions_list_get) | **GET** /team/permissions_list | Team Member Permissions |
|
20
|
+
| [**team_member_update_team_member_update_post**](TeamManagementApi.md#team_member_update_team_member_update_post) | **POST** /team/member_update | Team Member Update |
|
21
|
+
| [**team_model_add_team_model_add_post**](TeamManagementApi.md#team_model_add_team_model_add_post) | **POST** /team/model/add | Team Model Add |
|
22
|
+
| [**team_model_delete_team_model_delete_post**](TeamManagementApi.md#team_model_delete_team_model_delete_post) | **POST** /team/model/delete | Team Model Delete |
|
23
|
+
| [**unblock_team_team_unblock_post**](TeamManagementApi.md#unblock_team_team_unblock_post) | **POST** /team/unblock | Unblock Team |
|
24
|
+
| [**update_team_member_permissions_team_permissions_update_post**](TeamManagementApi.md#update_team_member_permissions_team_permissions_update_post) | **POST** /team/permissions_update | Update Team Member Permissions |
|
25
|
+
| [**update_team_team_update_post**](TeamManagementApi.md#update_team_team_update_post) | **POST** /team/update | Update Team |
|
26
|
+
|
27
|
+
|
28
|
+
## add_team_callbacks_team_team_id_callback_post
|
29
|
+
|
30
|
+
> Object add_team_callbacks_team_team_id_callback_post(team_id, add_team_callback, opts)
|
31
|
+
|
32
|
+
Add Team Callbacks
|
33
|
+
|
34
|
+
Add a success/failure callback to a team Use this if if you want different teams to have different success/failure callbacks Parameters: - callback_name (Literal[\"langfuse\", \"langsmith\", \"gcs\"], required): The name of the callback to add - callback_type (Literal[\"success\", \"failure\", \"success_and_failure\"], required): The type of callback to add. One of: - \"success\": Callback for successful LLM calls - \"failure\": Callback for failed LLM calls - \"success_and_failure\": Callback for both successful and failed LLM calls - callback_vars (StandardCallbackDynamicParams, required): A dictionary of variables to pass to the callback - langfuse_public_key: The public key for the Langfuse callback - langfuse_secret_key: The secret key for the Langfuse callback - langfuse_secret: The secret for the Langfuse callback - langfuse_host: The host for the Langfuse callback - gcs_bucket_name: The name of the GCS bucket - gcs_path_service_account: The path to the GCS service account - langsmith_api_key: The API key for the Langsmith callback - langsmith_project: The project for the Langsmith callback - langsmith_base_url: The base URL for the Langsmith callback Example curl: ``` curl -X POST 'http:/localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback' -H 'Content-Type: application/json' -H 'Authorization: Bearer sk-1234' -d '{ \"callback_name\": \"langfuse\", \"callback_type\": \"success\", \"callback_vars\": {\"langfuse_public_key\": \"pk-lf-xxxx1\", \"langfuse_secret_key\": \"sk-xxxxx\"} }' ``` This means for the team where team_id = dbe2f686-a686-4896-864a-4c3924458709, all LLM calls will be logged to langfuse using the public key pk-lf-xxxx1 and the secret key sk-xxxxx
|
35
|
+
|
36
|
+
### Examples
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
require 'time'
|
40
|
+
require 'litellm_client'
|
41
|
+
# setup authorization
|
42
|
+
LiteLLMClient.configure do |config|
|
43
|
+
# Configure API key authorization: APIKeyHeader
|
44
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
45
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
46
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
47
|
+
end
|
48
|
+
|
49
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
50
|
+
team_id = 'team_id_example' # String |
|
51
|
+
add_team_callback = LiteLLMClient::AddTeamCallback.new({callback_name: 'callback_name_example', callback_vars: { key: 'inner_example'}}) # AddTeamCallback |
|
52
|
+
opts = {
|
53
|
+
litellm_changed_by: 'litellm_changed_by_example' # String | The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability
|
54
|
+
}
|
55
|
+
|
56
|
+
begin
|
57
|
+
# Add Team Callbacks
|
58
|
+
result = api_instance.add_team_callbacks_team_team_id_callback_post(team_id, add_team_callback, opts)
|
59
|
+
p result
|
60
|
+
rescue LiteLLMClient::ApiError => e
|
61
|
+
puts "Error when calling TeamManagementApi->add_team_callbacks_team_team_id_callback_post: #{e}"
|
62
|
+
end
|
63
|
+
```
|
64
|
+
|
65
|
+
#### Using the add_team_callbacks_team_team_id_callback_post_with_http_info variant
|
66
|
+
|
67
|
+
This returns an Array which contains the response data, status code and headers.
|
68
|
+
|
69
|
+
> <Array(Object, Integer, Hash)> add_team_callbacks_team_team_id_callback_post_with_http_info(team_id, add_team_callback, opts)
|
70
|
+
|
71
|
+
```ruby
|
72
|
+
begin
|
73
|
+
# Add Team Callbacks
|
74
|
+
data, status_code, headers = api_instance.add_team_callbacks_team_team_id_callback_post_with_http_info(team_id, add_team_callback, opts)
|
75
|
+
p status_code # => 2xx
|
76
|
+
p headers # => { ... }
|
77
|
+
p data # => Object
|
78
|
+
rescue LiteLLMClient::ApiError => e
|
79
|
+
puts "Error when calling TeamManagementApi->add_team_callbacks_team_team_id_callback_post_with_http_info: #{e}"
|
80
|
+
end
|
81
|
+
```
|
82
|
+
|
83
|
+
### Parameters
|
84
|
+
|
85
|
+
| Name | Type | Description | Notes |
|
86
|
+
| ---- | ---- | ----------- | ----- |
|
87
|
+
| **team_id** | **String** | | |
|
88
|
+
| **add_team_callback** | [**AddTeamCallback**](AddTeamCallback.md) | | |
|
89
|
+
| **litellm_changed_by** | **String** | The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability | [optional] |
|
90
|
+
|
91
|
+
### Return type
|
92
|
+
|
93
|
+
**Object**
|
94
|
+
|
95
|
+
### Authorization
|
96
|
+
|
97
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
98
|
+
|
99
|
+
### HTTP request headers
|
100
|
+
|
101
|
+
- **Content-Type**: application/json
|
102
|
+
- **Accept**: application/json
|
103
|
+
|
104
|
+
|
105
|
+
## block_team_team_block_post
|
106
|
+
|
107
|
+
> Object block_team_team_block_post(block_team_request)
|
108
|
+
|
109
|
+
Block Team
|
110
|
+
|
111
|
+
Blocks all calls from keys with this team id. Parameters: - team_id: str - Required. The unique identifier of the team to block. Example: ``` curl --location 'http://0.0.0.0:4000/team/block' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ \"team_id\": \"team-1234\" }' ``` Returns: - The updated team record with blocked=True
|
112
|
+
|
113
|
+
### Examples
|
114
|
+
|
115
|
+
```ruby
|
116
|
+
require 'time'
|
117
|
+
require 'litellm_client'
|
118
|
+
# setup authorization
|
119
|
+
LiteLLMClient.configure do |config|
|
120
|
+
# Configure API key authorization: APIKeyHeader
|
121
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
122
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
123
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
124
|
+
end
|
125
|
+
|
126
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
127
|
+
block_team_request = LiteLLMClient::BlockTeamRequest.new({team_id: 'team_id_example'}) # BlockTeamRequest |
|
128
|
+
|
129
|
+
begin
|
130
|
+
# Block Team
|
131
|
+
result = api_instance.block_team_team_block_post(block_team_request)
|
132
|
+
p result
|
133
|
+
rescue LiteLLMClient::ApiError => e
|
134
|
+
puts "Error when calling TeamManagementApi->block_team_team_block_post: #{e}"
|
135
|
+
end
|
136
|
+
```
|
137
|
+
|
138
|
+
#### Using the block_team_team_block_post_with_http_info variant
|
139
|
+
|
140
|
+
This returns an Array which contains the response data, status code and headers.
|
141
|
+
|
142
|
+
> <Array(Object, Integer, Hash)> block_team_team_block_post_with_http_info(block_team_request)
|
143
|
+
|
144
|
+
```ruby
|
145
|
+
begin
|
146
|
+
# Block Team
|
147
|
+
data, status_code, headers = api_instance.block_team_team_block_post_with_http_info(block_team_request)
|
148
|
+
p status_code # => 2xx
|
149
|
+
p headers # => { ... }
|
150
|
+
p data # => Object
|
151
|
+
rescue LiteLLMClient::ApiError => e
|
152
|
+
puts "Error when calling TeamManagementApi->block_team_team_block_post_with_http_info: #{e}"
|
153
|
+
end
|
154
|
+
```
|
155
|
+
|
156
|
+
### Parameters
|
157
|
+
|
158
|
+
| Name | Type | Description | Notes |
|
159
|
+
| ---- | ---- | ----------- | ----- |
|
160
|
+
| **block_team_request** | [**BlockTeamRequest**](BlockTeamRequest.md) | | |
|
161
|
+
|
162
|
+
### Return type
|
163
|
+
|
164
|
+
**Object**
|
165
|
+
|
166
|
+
### Authorization
|
167
|
+
|
168
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
169
|
+
|
170
|
+
### HTTP request headers
|
171
|
+
|
172
|
+
- **Content-Type**: application/json
|
173
|
+
- **Accept**: application/json
|
174
|
+
|
175
|
+
|
176
|
+
## delete_team_team_delete_post
|
177
|
+
|
178
|
+
> Object delete_team_team_delete_post(delete_team_request, opts)
|
179
|
+
|
180
|
+
Delete Team
|
181
|
+
|
182
|
+
delete team and associated team keys Parameters: - team_ids: List[str] - Required. List of team IDs to delete. Example: [\"team-1234\", \"team-5678\"] ``` curl --location 'http://0.0.0.0:4000/team/delete' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{ \"team_ids\": [\"8d916b1c-510d-4894-a334-1c16a93344f5\"] }' ```
|
183
|
+
|
184
|
+
### Examples
|
185
|
+
|
186
|
+
```ruby
|
187
|
+
require 'time'
|
188
|
+
require 'litellm_client'
|
189
|
+
# setup authorization
|
190
|
+
LiteLLMClient.configure do |config|
|
191
|
+
# Configure API key authorization: APIKeyHeader
|
192
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
193
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
194
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
195
|
+
end
|
196
|
+
|
197
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
198
|
+
delete_team_request = LiteLLMClient::DeleteTeamRequest.new({team_ids: ['team_ids_example']}) # DeleteTeamRequest |
|
199
|
+
opts = {
|
200
|
+
litellm_changed_by: 'litellm_changed_by_example' # String | The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability
|
201
|
+
}
|
202
|
+
|
203
|
+
begin
|
204
|
+
# Delete Team
|
205
|
+
result = api_instance.delete_team_team_delete_post(delete_team_request, opts)
|
206
|
+
p result
|
207
|
+
rescue LiteLLMClient::ApiError => e
|
208
|
+
puts "Error when calling TeamManagementApi->delete_team_team_delete_post: #{e}"
|
209
|
+
end
|
210
|
+
```
|
211
|
+
|
212
|
+
#### Using the delete_team_team_delete_post_with_http_info variant
|
213
|
+
|
214
|
+
This returns an Array which contains the response data, status code and headers.
|
215
|
+
|
216
|
+
> <Array(Object, Integer, Hash)> delete_team_team_delete_post_with_http_info(delete_team_request, opts)
|
217
|
+
|
218
|
+
```ruby
|
219
|
+
begin
|
220
|
+
# Delete Team
|
221
|
+
data, status_code, headers = api_instance.delete_team_team_delete_post_with_http_info(delete_team_request, opts)
|
222
|
+
p status_code # => 2xx
|
223
|
+
p headers # => { ... }
|
224
|
+
p data # => Object
|
225
|
+
rescue LiteLLMClient::ApiError => e
|
226
|
+
puts "Error when calling TeamManagementApi->delete_team_team_delete_post_with_http_info: #{e}"
|
227
|
+
end
|
228
|
+
```
|
229
|
+
|
230
|
+
### Parameters
|
231
|
+
|
232
|
+
| Name | Type | Description | Notes |
|
233
|
+
| ---- | ---- | ----------- | ----- |
|
234
|
+
| **delete_team_request** | [**DeleteTeamRequest**](DeleteTeamRequest.md) | | |
|
235
|
+
| **litellm_changed_by** | **String** | The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability | [optional] |
|
236
|
+
|
237
|
+
### Return type
|
238
|
+
|
239
|
+
**Object**
|
240
|
+
|
241
|
+
### Authorization
|
242
|
+
|
243
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
244
|
+
|
245
|
+
### HTTP request headers
|
246
|
+
|
247
|
+
- **Content-Type**: application/json
|
248
|
+
- **Accept**: application/json
|
249
|
+
|
250
|
+
|
251
|
+
## disable_team_logging_team_team_id_disable_logging_post
|
252
|
+
|
253
|
+
> Object disable_team_logging_team_team_id_disable_logging_post(team_id)
|
254
|
+
|
255
|
+
Disable Team Logging
|
256
|
+
|
257
|
+
Disable all logging callbacks for a team Parameters: - team_id (str, required): The unique identifier for the team Example curl: ``` curl -X POST 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/disable_logging' -H 'Authorization: Bearer sk-1234' ```
|
258
|
+
|
259
|
+
### Examples
|
260
|
+
|
261
|
+
```ruby
|
262
|
+
require 'time'
|
263
|
+
require 'litellm_client'
|
264
|
+
# setup authorization
|
265
|
+
LiteLLMClient.configure do |config|
|
266
|
+
# Configure API key authorization: APIKeyHeader
|
267
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
268
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
269
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
270
|
+
end
|
271
|
+
|
272
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
273
|
+
team_id = 'team_id_example' # String |
|
274
|
+
|
275
|
+
begin
|
276
|
+
# Disable Team Logging
|
277
|
+
result = api_instance.disable_team_logging_team_team_id_disable_logging_post(team_id)
|
278
|
+
p result
|
279
|
+
rescue LiteLLMClient::ApiError => e
|
280
|
+
puts "Error when calling TeamManagementApi->disable_team_logging_team_team_id_disable_logging_post: #{e}"
|
281
|
+
end
|
282
|
+
```
|
283
|
+
|
284
|
+
#### Using the disable_team_logging_team_team_id_disable_logging_post_with_http_info variant
|
285
|
+
|
286
|
+
This returns an Array which contains the response data, status code and headers.
|
287
|
+
|
288
|
+
> <Array(Object, Integer, Hash)> disable_team_logging_team_team_id_disable_logging_post_with_http_info(team_id)
|
289
|
+
|
290
|
+
```ruby
|
291
|
+
begin
|
292
|
+
# Disable Team Logging
|
293
|
+
data, status_code, headers = api_instance.disable_team_logging_team_team_id_disable_logging_post_with_http_info(team_id)
|
294
|
+
p status_code # => 2xx
|
295
|
+
p headers # => { ... }
|
296
|
+
p data # => Object
|
297
|
+
rescue LiteLLMClient::ApiError => e
|
298
|
+
puts "Error when calling TeamManagementApi->disable_team_logging_team_team_id_disable_logging_post_with_http_info: #{e}"
|
299
|
+
end
|
300
|
+
```
|
301
|
+
|
302
|
+
### Parameters
|
303
|
+
|
304
|
+
| Name | Type | Description | Notes |
|
305
|
+
| ---- | ---- | ----------- | ----- |
|
306
|
+
| **team_id** | **String** | | |
|
307
|
+
|
308
|
+
### Return type
|
309
|
+
|
310
|
+
**Object**
|
311
|
+
|
312
|
+
### Authorization
|
313
|
+
|
314
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
315
|
+
|
316
|
+
### HTTP request headers
|
317
|
+
|
318
|
+
- **Content-Type**: Not defined
|
319
|
+
- **Accept**: application/json
|
320
|
+
|
321
|
+
|
322
|
+
## get_team_callbacks_team_team_id_callback_get
|
323
|
+
|
324
|
+
> Object get_team_callbacks_team_team_id_callback_get(team_id)
|
325
|
+
|
326
|
+
Get Team Callbacks
|
327
|
+
|
328
|
+
Get the success/failure callbacks and variables for a team Parameters: - team_id (str, required): The unique identifier for the team Example curl: ``` curl -X GET 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback' -H 'Authorization: Bearer sk-1234' ``` This will return the callback settings for the team with id dbe2f686-a686-4896-864a-4c3924458709 Returns { \"status\": \"success\", \"data\": { \"team_id\": team_id, \"success_callbacks\": team_callback_settings_obj.success_callback, \"failure_callbacks\": team_callback_settings_obj.failure_callback, \"callback_vars\": team_callback_settings_obj.callback_vars, }, }
|
329
|
+
|
330
|
+
### Examples
|
331
|
+
|
332
|
+
```ruby
|
333
|
+
require 'time'
|
334
|
+
require 'litellm_client'
|
335
|
+
# setup authorization
|
336
|
+
LiteLLMClient.configure do |config|
|
337
|
+
# Configure API key authorization: APIKeyHeader
|
338
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
339
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
340
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
341
|
+
end
|
342
|
+
|
343
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
344
|
+
team_id = 'team_id_example' # String |
|
345
|
+
|
346
|
+
begin
|
347
|
+
# Get Team Callbacks
|
348
|
+
result = api_instance.get_team_callbacks_team_team_id_callback_get(team_id)
|
349
|
+
p result
|
350
|
+
rescue LiteLLMClient::ApiError => e
|
351
|
+
puts "Error when calling TeamManagementApi->get_team_callbacks_team_team_id_callback_get: #{e}"
|
352
|
+
end
|
353
|
+
```
|
354
|
+
|
355
|
+
#### Using the get_team_callbacks_team_team_id_callback_get_with_http_info variant
|
356
|
+
|
357
|
+
This returns an Array which contains the response data, status code and headers.
|
358
|
+
|
359
|
+
> <Array(Object, Integer, Hash)> get_team_callbacks_team_team_id_callback_get_with_http_info(team_id)
|
360
|
+
|
361
|
+
```ruby
|
362
|
+
begin
|
363
|
+
# Get Team Callbacks
|
364
|
+
data, status_code, headers = api_instance.get_team_callbacks_team_team_id_callback_get_with_http_info(team_id)
|
365
|
+
p status_code # => 2xx
|
366
|
+
p headers # => { ... }
|
367
|
+
p data # => Object
|
368
|
+
rescue LiteLLMClient::ApiError => e
|
369
|
+
puts "Error when calling TeamManagementApi->get_team_callbacks_team_team_id_callback_get_with_http_info: #{e}"
|
370
|
+
end
|
371
|
+
```
|
372
|
+
|
373
|
+
### Parameters
|
374
|
+
|
375
|
+
| Name | Type | Description | Notes |
|
376
|
+
| ---- | ---- | ----------- | ----- |
|
377
|
+
| **team_id** | **String** | | |
|
378
|
+
|
379
|
+
### Return type
|
380
|
+
|
381
|
+
**Object**
|
382
|
+
|
383
|
+
### Authorization
|
384
|
+
|
385
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
386
|
+
|
387
|
+
### HTTP request headers
|
388
|
+
|
389
|
+
- **Content-Type**: Not defined
|
390
|
+
- **Accept**: application/json
|
391
|
+
|
392
|
+
|
393
|
+
## get_team_daily_activity_team_daily_activity_get
|
394
|
+
|
395
|
+
> <SpendAnalyticsPaginatedResponse> get_team_daily_activity_team_daily_activity_get(opts)
|
396
|
+
|
397
|
+
Get Team Daily Activity
|
398
|
+
|
399
|
+
Get daily activity for specific teams or all teams. Args: team_ids (Optional[str]): Comma-separated list of team IDs to filter by. If not provided, returns data for all teams. start_date (Optional[str]): Start date for the activity period (YYYY-MM-DD). end_date (Optional[str]): End date for the activity period (YYYY-MM-DD). model (Optional[str]): Filter by model name. api_key (Optional[str]): Filter by API key. page (int): Page number for pagination. page_size (int): Number of items per page. exclude_team_ids (Optional[str]): Comma-separated list of team IDs to exclude. Returns: SpendAnalyticsPaginatedResponse: Paginated response containing daily activity data.
|
400
|
+
|
401
|
+
### Examples
|
402
|
+
|
403
|
+
```ruby
|
404
|
+
require 'time'
|
405
|
+
require 'litellm_client'
|
406
|
+
# setup authorization
|
407
|
+
LiteLLMClient.configure do |config|
|
408
|
+
# Configure API key authorization: APIKeyHeader
|
409
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
410
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
411
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
412
|
+
end
|
413
|
+
|
414
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
415
|
+
opts = {
|
416
|
+
team_ids: 'team_ids_example', # String |
|
417
|
+
start_date: 'start_date_example', # String |
|
418
|
+
end_date: 'end_date_example', # String |
|
419
|
+
model: 'model_example', # String |
|
420
|
+
api_key: 'api_key_example', # String |
|
421
|
+
page: 56, # Integer |
|
422
|
+
page_size: 56, # Integer |
|
423
|
+
exclude_team_ids: 'exclude_team_ids_example' # String |
|
424
|
+
}
|
425
|
+
|
426
|
+
begin
|
427
|
+
# Get Team Daily Activity
|
428
|
+
result = api_instance.get_team_daily_activity_team_daily_activity_get(opts)
|
429
|
+
p result
|
430
|
+
rescue LiteLLMClient::ApiError => e
|
431
|
+
puts "Error when calling TeamManagementApi->get_team_daily_activity_team_daily_activity_get: #{e}"
|
432
|
+
end
|
433
|
+
```
|
434
|
+
|
435
|
+
#### Using the get_team_daily_activity_team_daily_activity_get_with_http_info variant
|
436
|
+
|
437
|
+
This returns an Array which contains the response data, status code and headers.
|
438
|
+
|
439
|
+
> <Array(<SpendAnalyticsPaginatedResponse>, Integer, Hash)> get_team_daily_activity_team_daily_activity_get_with_http_info(opts)
|
440
|
+
|
441
|
+
```ruby
|
442
|
+
begin
|
443
|
+
# Get Team Daily Activity
|
444
|
+
data, status_code, headers = api_instance.get_team_daily_activity_team_daily_activity_get_with_http_info(opts)
|
445
|
+
p status_code # => 2xx
|
446
|
+
p headers # => { ... }
|
447
|
+
p data # => <SpendAnalyticsPaginatedResponse>
|
448
|
+
rescue LiteLLMClient::ApiError => e
|
449
|
+
puts "Error when calling TeamManagementApi->get_team_daily_activity_team_daily_activity_get_with_http_info: #{e}"
|
450
|
+
end
|
451
|
+
```
|
452
|
+
|
453
|
+
### Parameters
|
454
|
+
|
455
|
+
| Name | Type | Description | Notes |
|
456
|
+
| ---- | ---- | ----------- | ----- |
|
457
|
+
| **team_ids** | **String** | | [optional] |
|
458
|
+
| **start_date** | **String** | | [optional] |
|
459
|
+
| **end_date** | **String** | | [optional] |
|
460
|
+
| **model** | **String** | | [optional] |
|
461
|
+
| **api_key** | **String** | | [optional] |
|
462
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
463
|
+
| **page_size** | **Integer** | | [optional][default to 10] |
|
464
|
+
| **exclude_team_ids** | **String** | | [optional] |
|
465
|
+
|
466
|
+
### Return type
|
467
|
+
|
468
|
+
[**SpendAnalyticsPaginatedResponse**](SpendAnalyticsPaginatedResponse.md)
|
469
|
+
|
470
|
+
### Authorization
|
471
|
+
|
472
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
473
|
+
|
474
|
+
### HTTP request headers
|
475
|
+
|
476
|
+
- **Content-Type**: Not defined
|
477
|
+
- **Accept**: application/json
|
478
|
+
|
479
|
+
|
480
|
+
## list_team_team_list_get
|
481
|
+
|
482
|
+
> Object list_team_team_list_get(opts)
|
483
|
+
|
484
|
+
List Team
|
485
|
+
|
486
|
+
``` curl --location --request GET 'http://0.0.0.0:4000/team/list' --header 'Authorization: Bearer sk-1234' ``` Parameters: - user_id: str - Optional. If passed will only return teams that the user_id is a member of. - organization_id: str - Optional. If passed will only return teams that belong to the organization_id. Pass 'default_organization' to get all teams without organization_id.
|
487
|
+
|
488
|
+
### Examples
|
489
|
+
|
490
|
+
```ruby
|
491
|
+
require 'time'
|
492
|
+
require 'litellm_client'
|
493
|
+
# setup authorization
|
494
|
+
LiteLLMClient.configure do |config|
|
495
|
+
# Configure API key authorization: APIKeyHeader
|
496
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
497
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
498
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
499
|
+
end
|
500
|
+
|
501
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
502
|
+
opts = {
|
503
|
+
user_id: 'user_id_example', # String | Only return teams which this 'user_id' belongs to
|
504
|
+
organization_id: 'organization_id_example' # String |
|
505
|
+
}
|
506
|
+
|
507
|
+
begin
|
508
|
+
# List Team
|
509
|
+
result = api_instance.list_team_team_list_get(opts)
|
510
|
+
p result
|
511
|
+
rescue LiteLLMClient::ApiError => e
|
512
|
+
puts "Error when calling TeamManagementApi->list_team_team_list_get: #{e}"
|
513
|
+
end
|
514
|
+
```
|
515
|
+
|
516
|
+
#### Using the list_team_team_list_get_with_http_info variant
|
517
|
+
|
518
|
+
This returns an Array which contains the response data, status code and headers.
|
519
|
+
|
520
|
+
> <Array(Object, Integer, Hash)> list_team_team_list_get_with_http_info(opts)
|
521
|
+
|
522
|
+
```ruby
|
523
|
+
begin
|
524
|
+
# List Team
|
525
|
+
data, status_code, headers = api_instance.list_team_team_list_get_with_http_info(opts)
|
526
|
+
p status_code # => 2xx
|
527
|
+
p headers # => { ... }
|
528
|
+
p data # => Object
|
529
|
+
rescue LiteLLMClient::ApiError => e
|
530
|
+
puts "Error when calling TeamManagementApi->list_team_team_list_get_with_http_info: #{e}"
|
531
|
+
end
|
532
|
+
```
|
533
|
+
|
534
|
+
### Parameters
|
535
|
+
|
536
|
+
| Name | Type | Description | Notes |
|
537
|
+
| ---- | ---- | ----------- | ----- |
|
538
|
+
| **user_id** | **String** | Only return teams which this 'user_id' belongs to | [optional] |
|
539
|
+
| **organization_id** | **String** | | [optional] |
|
540
|
+
|
541
|
+
### Return type
|
542
|
+
|
543
|
+
**Object**
|
544
|
+
|
545
|
+
### Authorization
|
546
|
+
|
547
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
548
|
+
|
549
|
+
### HTTP request headers
|
550
|
+
|
551
|
+
- **Content-Type**: Not defined
|
552
|
+
- **Accept**: application/json
|
553
|
+
|
554
|
+
|
555
|
+
## list_team_v2_v2_team_list_get
|
556
|
+
|
557
|
+
> <TeamListResponse> list_team_v2_v2_team_list_get(opts)
|
558
|
+
|
559
|
+
List Team V2
|
560
|
+
|
561
|
+
Get a paginated list of teams with filtering and sorting options. Parameters: user_id: Optional[str] Only return teams which this user belongs to organization_id: Optional[str] Only return teams which belong to this organization team_id: Optional[str] Filter teams by exact team_id match team_alias: Optional[str] Filter teams by partial team_alias match page: int The page number to return page_size: int The number of items per page sort_by: Optional[str] Column to sort by (e.g. 'team_id', 'team_alias', 'created_at') sort_order: str Sort order ('asc' or 'desc')
|
562
|
+
|
563
|
+
### Examples
|
564
|
+
|
565
|
+
```ruby
|
566
|
+
require 'time'
|
567
|
+
require 'litellm_client'
|
568
|
+
# setup authorization
|
569
|
+
LiteLLMClient.configure do |config|
|
570
|
+
# Configure API key authorization: APIKeyHeader
|
571
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
572
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
573
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
574
|
+
end
|
575
|
+
|
576
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
577
|
+
opts = {
|
578
|
+
user_id: 'user_id_example', # String | Only return teams which this 'user_id' belongs to
|
579
|
+
organization_id: 'organization_id_example', # String | Only return teams which this 'organization_id' belongs to
|
580
|
+
team_id: 'team_id_example', # String | Only return teams which this 'team_id' belongs to
|
581
|
+
team_alias: 'team_alias_example', # String | Only return teams which this 'team_alias' belongs to. Supports partial matching.
|
582
|
+
page: 56, # Integer | Page number for pagination
|
583
|
+
page_size: 56, # Integer | Number of teams per page
|
584
|
+
sort_by: 'sort_by_example', # String | Column to sort by (e.g. 'team_id', 'team_alias', 'created_at')
|
585
|
+
sort_order: 'sort_order_example' # String | Sort order ('asc' or 'desc')
|
586
|
+
}
|
587
|
+
|
588
|
+
begin
|
589
|
+
# List Team V2
|
590
|
+
result = api_instance.list_team_v2_v2_team_list_get(opts)
|
591
|
+
p result
|
592
|
+
rescue LiteLLMClient::ApiError => e
|
593
|
+
puts "Error when calling TeamManagementApi->list_team_v2_v2_team_list_get: #{e}"
|
594
|
+
end
|
595
|
+
```
|
596
|
+
|
597
|
+
#### Using the list_team_v2_v2_team_list_get_with_http_info variant
|
598
|
+
|
599
|
+
This returns an Array which contains the response data, status code and headers.
|
600
|
+
|
601
|
+
> <Array(<TeamListResponse>, Integer, Hash)> list_team_v2_v2_team_list_get_with_http_info(opts)
|
602
|
+
|
603
|
+
```ruby
|
604
|
+
begin
|
605
|
+
# List Team V2
|
606
|
+
data, status_code, headers = api_instance.list_team_v2_v2_team_list_get_with_http_info(opts)
|
607
|
+
p status_code # => 2xx
|
608
|
+
p headers # => { ... }
|
609
|
+
p data # => <TeamListResponse>
|
610
|
+
rescue LiteLLMClient::ApiError => e
|
611
|
+
puts "Error when calling TeamManagementApi->list_team_v2_v2_team_list_get_with_http_info: #{e}"
|
612
|
+
end
|
613
|
+
```
|
614
|
+
|
615
|
+
### Parameters
|
616
|
+
|
617
|
+
| Name | Type | Description | Notes |
|
618
|
+
| ---- | ---- | ----------- | ----- |
|
619
|
+
| **user_id** | **String** | Only return teams which this 'user_id' belongs to | [optional] |
|
620
|
+
| **organization_id** | **String** | Only return teams which this 'organization_id' belongs to | [optional] |
|
621
|
+
| **team_id** | **String** | Only return teams which this 'team_id' belongs to | [optional] |
|
622
|
+
| **team_alias** | **String** | Only return teams which this 'team_alias' belongs to. Supports partial matching. | [optional] |
|
623
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
624
|
+
| **page_size** | **Integer** | Number of teams per page | [optional][default to 10] |
|
625
|
+
| **sort_by** | **String** | Column to sort by (e.g. 'team_id', 'team_alias', 'created_at') | [optional] |
|
626
|
+
| **sort_order** | **String** | Sort order ('asc' or 'desc') | [optional][default to 'asc'] |
|
627
|
+
|
628
|
+
### Return type
|
629
|
+
|
630
|
+
[**TeamListResponse**](TeamListResponse.md)
|
631
|
+
|
632
|
+
### Authorization
|
633
|
+
|
634
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
635
|
+
|
636
|
+
### HTTP request headers
|
637
|
+
|
638
|
+
- **Content-Type**: Not defined
|
639
|
+
- **Accept**: application/json
|
640
|
+
|
641
|
+
|
642
|
+
## new_team_team_new_post
|
643
|
+
|
644
|
+
> <LiteLLMTeamTable> new_team_team_new_post(new_team_request, opts)
|
645
|
+
|
646
|
+
New Team
|
647
|
+
|
648
|
+
Allow users to create a new team. Apply user permissions to their team. 👉 [Detailed Doc on setting team budgets](https://docs.litellm.ai/docs/proxy/team_budgets) Parameters: - team_alias: Optional[str] - User defined team alias - team_id: Optional[str] - The team id of the user. If none passed, we'll generate it. - members_with_roles: List[{\"role\": \"admin\" or \"user\", \"user_id\": \"<user-id>\"}] - A list of users and their roles in the team. Get user_id when making a new user via `/user/new`. - team_member_permissions: Optional[List[str]] - A list of routes that non-admin team members can access. example: [\"/key/generate\", \"/key/update\", \"/key/delete\"] - metadata: Optional[dict] - Metadata for team, store information for team. Example metadata = {\"extra_info\": \"some info\"} - tpm_limit: Optional[int] - The TPM (Tokens Per Minute) limit for this team - all keys with this team_id will have at max this TPM limit - rpm_limit: Optional[int] - The RPM (Requests Per Minute) limit for this team - all keys associated with this team_id will have at max this RPM limit - max_budget: Optional[float] - The maximum budget allocated to the team - all keys for this team_id will have at max this max_budget - budget_duration: Optional[str] - The duration of the budget for the team. Doc [here](https://docs.litellm.ai/docs/proxy/team_budgets) - models: Optional[list] - A list of models associated with the team - all keys for this team_id will have at most, these models. If empty, assumes all models are allowed. - blocked: bool - Flag indicating if the team is blocked or not - will stop all calls from keys with this team_id. - members: Optional[List] - Control team members via `/team/member/add` and `/team/member/delete`. - tags: Optional[List[str]] - Tags for [tracking spend](https://litellm.vercel.app/docs/proxy/enterprise#tracking-spend-for-custom-tags) and/or doing [tag-based routing](https://litellm.vercel.app/docs/proxy/tag_routing). - organization_id: Optional[str] - The organization id of the team. Default is None. Create via `/organization/new`. - model_aliases: Optional[dict] - Model aliases for the team. [Docs](https://docs.litellm.ai/docs/proxy/team_based_routing#create-team-with-model-alias) - guardrails: Optional[List[str]] - Guardrails for the team. [Docs](https://docs.litellm.ai/docs/proxy/guardrails) - object_permission: Optional[LiteLLM_ObjectPermissionBase] - team-specific object permission. Example - {\"vector_stores\": [\"vector_store_1\", \"vector_store_2\"]}. IF null or {} then no object permission. Returns: - team_id: (str) Unique team id - used for tracking spend across multiple keys for same team id. _deprecated_params: - admins: list - A list of user_id's for the admin role - users: list - A list of user_id's for the user role Example Request: ``` curl --location 'http://0.0.0.0:4000/team/new' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ \"team_alias\": \"my-new-team_2\", \"members_with_roles\": [{\"role\": \"admin\", \"user_id\": \"user-1234\"}, {\"role\": \"user\", \"user_id\": \"user-2434\"}] }' ``` ``` curl --location 'http://0.0.0.0:4000/team/new' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ \"team_alias\": \"QA Prod Bot\", \"max_budget\": 0.000000001, \"budget_duration\": \"1d\" }' ```
|
649
|
+
|
650
|
+
### Examples
|
651
|
+
|
652
|
+
```ruby
|
653
|
+
require 'time'
|
654
|
+
require 'litellm_client'
|
655
|
+
# setup authorization
|
656
|
+
LiteLLMClient.configure do |config|
|
657
|
+
# Configure API key authorization: APIKeyHeader
|
658
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
659
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
660
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
661
|
+
end
|
662
|
+
|
663
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
664
|
+
new_team_request = LiteLLMClient::NewTeamRequest.new # NewTeamRequest |
|
665
|
+
opts = {
|
666
|
+
litellm_changed_by: 'litellm_changed_by_example' # String | The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability
|
667
|
+
}
|
668
|
+
|
669
|
+
begin
|
670
|
+
# New Team
|
671
|
+
result = api_instance.new_team_team_new_post(new_team_request, opts)
|
672
|
+
p result
|
673
|
+
rescue LiteLLMClient::ApiError => e
|
674
|
+
puts "Error when calling TeamManagementApi->new_team_team_new_post: #{e}"
|
675
|
+
end
|
676
|
+
```
|
677
|
+
|
678
|
+
#### Using the new_team_team_new_post_with_http_info variant
|
679
|
+
|
680
|
+
This returns an Array which contains the response data, status code and headers.
|
681
|
+
|
682
|
+
> <Array(<LiteLLMTeamTable>, Integer, Hash)> new_team_team_new_post_with_http_info(new_team_request, opts)
|
683
|
+
|
684
|
+
```ruby
|
685
|
+
begin
|
686
|
+
# New Team
|
687
|
+
data, status_code, headers = api_instance.new_team_team_new_post_with_http_info(new_team_request, opts)
|
688
|
+
p status_code # => 2xx
|
689
|
+
p headers # => { ... }
|
690
|
+
p data # => <LiteLLMTeamTable>
|
691
|
+
rescue LiteLLMClient::ApiError => e
|
692
|
+
puts "Error when calling TeamManagementApi->new_team_team_new_post_with_http_info: #{e}"
|
693
|
+
end
|
694
|
+
```
|
695
|
+
|
696
|
+
### Parameters
|
697
|
+
|
698
|
+
| Name | Type | Description | Notes |
|
699
|
+
| ---- | ---- | ----------- | ----- |
|
700
|
+
| **new_team_request** | [**NewTeamRequest**](NewTeamRequest.md) | | |
|
701
|
+
| **litellm_changed_by** | **String** | The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability | [optional] |
|
702
|
+
|
703
|
+
### Return type
|
704
|
+
|
705
|
+
[**LiteLLMTeamTable**](LiteLLMTeamTable.md)
|
706
|
+
|
707
|
+
### Authorization
|
708
|
+
|
709
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
710
|
+
|
711
|
+
### HTTP request headers
|
712
|
+
|
713
|
+
- **Content-Type**: application/json
|
714
|
+
- **Accept**: application/json
|
715
|
+
|
716
|
+
|
717
|
+
## team_info_team_info_get
|
718
|
+
|
719
|
+
> Object team_info_team_info_get(opts)
|
720
|
+
|
721
|
+
Team Info
|
722
|
+
|
723
|
+
get info on team + related keys Parameters: - team_id: str - Required. The unique identifier of the team to get info on. ``` curl --location 'http://localhost:4000/team/info?team_id=your_team_id_here' --header 'Authorization: Bearer your_api_key_here' ```
|
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::TeamManagementApi.new
|
739
|
+
opts = {
|
740
|
+
team_id: 'team_id_example' # String | Team ID in the request parameters
|
741
|
+
}
|
742
|
+
|
743
|
+
begin
|
744
|
+
# Team Info
|
745
|
+
result = api_instance.team_info_team_info_get(opts)
|
746
|
+
p result
|
747
|
+
rescue LiteLLMClient::ApiError => e
|
748
|
+
puts "Error when calling TeamManagementApi->team_info_team_info_get: #{e}"
|
749
|
+
end
|
750
|
+
```
|
751
|
+
|
752
|
+
#### Using the team_info_team_info_get_with_http_info variant
|
753
|
+
|
754
|
+
This returns an Array which contains the response data, status code and headers.
|
755
|
+
|
756
|
+
> <Array(Object, Integer, Hash)> team_info_team_info_get_with_http_info(opts)
|
757
|
+
|
758
|
+
```ruby
|
759
|
+
begin
|
760
|
+
# Team Info
|
761
|
+
data, status_code, headers = api_instance.team_info_team_info_get_with_http_info(opts)
|
762
|
+
p status_code # => 2xx
|
763
|
+
p headers # => { ... }
|
764
|
+
p data # => Object
|
765
|
+
rescue LiteLLMClient::ApiError => e
|
766
|
+
puts "Error when calling TeamManagementApi->team_info_team_info_get_with_http_info: #{e}"
|
767
|
+
end
|
768
|
+
```
|
769
|
+
|
770
|
+
### Parameters
|
771
|
+
|
772
|
+
| Name | Type | Description | Notes |
|
773
|
+
| ---- | ---- | ----------- | ----- |
|
774
|
+
| **team_id** | **String** | Team ID in the request parameters | [optional] |
|
775
|
+
|
776
|
+
### Return type
|
777
|
+
|
778
|
+
**Object**
|
779
|
+
|
780
|
+
### Authorization
|
781
|
+
|
782
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
783
|
+
|
784
|
+
### HTTP request headers
|
785
|
+
|
786
|
+
- **Content-Type**: Not defined
|
787
|
+
- **Accept**: application/json
|
788
|
+
|
789
|
+
|
790
|
+
## team_member_add_team_member_add_post
|
791
|
+
|
792
|
+
> <TeamAddMemberResponse> team_member_add_team_member_add_post(team_member_add_request)
|
793
|
+
|
794
|
+
Team Member Add
|
795
|
+
|
796
|
+
[BETA] Add new members (either via user_email or user_id) to a team If user doesn't exist, new user row will also be added to User Table Only proxy_admin or admin of team, allowed to access this endpoint. ``` curl -X POST 'http://0.0.0.0:4000/team/member_add' -H 'Authorization: Bearer sk-1234' -H 'Content-Type: application/json' -d '{\"team_id\": \"45e3e396-ee08-4a61-a88e-16b3ce7e0849\", \"member\": {\"role\": \"user\", \"user_id\": \"krrish247652@berri.ai\"}}' ```
|
797
|
+
|
798
|
+
### Examples
|
799
|
+
|
800
|
+
```ruby
|
801
|
+
require 'time'
|
802
|
+
require 'litellm_client'
|
803
|
+
# setup authorization
|
804
|
+
LiteLLMClient.configure do |config|
|
805
|
+
# Configure API key authorization: APIKeyHeader
|
806
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
807
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
808
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
809
|
+
end
|
810
|
+
|
811
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
812
|
+
team_member_add_request = LiteLLMClient::TeamMemberAddRequest.new({member: LiteLLMClient::Member2.new({role: 'admin'}), team_id: 'team_id_example'}) # TeamMemberAddRequest |
|
813
|
+
|
814
|
+
begin
|
815
|
+
# Team Member Add
|
816
|
+
result = api_instance.team_member_add_team_member_add_post(team_member_add_request)
|
817
|
+
p result
|
818
|
+
rescue LiteLLMClient::ApiError => e
|
819
|
+
puts "Error when calling TeamManagementApi->team_member_add_team_member_add_post: #{e}"
|
820
|
+
end
|
821
|
+
```
|
822
|
+
|
823
|
+
#### Using the team_member_add_team_member_add_post_with_http_info variant
|
824
|
+
|
825
|
+
This returns an Array which contains the response data, status code and headers.
|
826
|
+
|
827
|
+
> <Array(<TeamAddMemberResponse>, Integer, Hash)> team_member_add_team_member_add_post_with_http_info(team_member_add_request)
|
828
|
+
|
829
|
+
```ruby
|
830
|
+
begin
|
831
|
+
# Team Member Add
|
832
|
+
data, status_code, headers = api_instance.team_member_add_team_member_add_post_with_http_info(team_member_add_request)
|
833
|
+
p status_code # => 2xx
|
834
|
+
p headers # => { ... }
|
835
|
+
p data # => <TeamAddMemberResponse>
|
836
|
+
rescue LiteLLMClient::ApiError => e
|
837
|
+
puts "Error when calling TeamManagementApi->team_member_add_team_member_add_post_with_http_info: #{e}"
|
838
|
+
end
|
839
|
+
```
|
840
|
+
|
841
|
+
### Parameters
|
842
|
+
|
843
|
+
| Name | Type | Description | Notes |
|
844
|
+
| ---- | ---- | ----------- | ----- |
|
845
|
+
| **team_member_add_request** | [**TeamMemberAddRequest**](TeamMemberAddRequest.md) | | |
|
846
|
+
|
847
|
+
### Return type
|
848
|
+
|
849
|
+
[**TeamAddMemberResponse**](TeamAddMemberResponse.md)
|
850
|
+
|
851
|
+
### Authorization
|
852
|
+
|
853
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
854
|
+
|
855
|
+
### HTTP request headers
|
856
|
+
|
857
|
+
- **Content-Type**: application/json
|
858
|
+
- **Accept**: application/json
|
859
|
+
|
860
|
+
|
861
|
+
## team_member_delete_team_member_delete_post
|
862
|
+
|
863
|
+
> Object team_member_delete_team_member_delete_post(team_member_delete_request)
|
864
|
+
|
865
|
+
Team Member Delete
|
866
|
+
|
867
|
+
[BETA] delete members (either via user_email or user_id) from a team If user doesn't exist, an exception will be raised ``` curl -X POST 'http://0.0.0.0:8000/team/member_delete' -H 'Authorization: Bearer sk-1234' -H 'Content-Type: application/json' -d '{ \"team_id\": \"45e3e396-ee08-4a61-a88e-16b3ce7e0849\", \"user_id\": \"krrish247652@berri.ai\" }' ```
|
868
|
+
|
869
|
+
### Examples
|
870
|
+
|
871
|
+
```ruby
|
872
|
+
require 'time'
|
873
|
+
require 'litellm_client'
|
874
|
+
# setup authorization
|
875
|
+
LiteLLMClient.configure do |config|
|
876
|
+
# Configure API key authorization: APIKeyHeader
|
877
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
878
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
879
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
880
|
+
end
|
881
|
+
|
882
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
883
|
+
team_member_delete_request = LiteLLMClient::TeamMemberDeleteRequest.new({team_id: 'team_id_example'}) # TeamMemberDeleteRequest |
|
884
|
+
|
885
|
+
begin
|
886
|
+
# Team Member Delete
|
887
|
+
result = api_instance.team_member_delete_team_member_delete_post(team_member_delete_request)
|
888
|
+
p result
|
889
|
+
rescue LiteLLMClient::ApiError => e
|
890
|
+
puts "Error when calling TeamManagementApi->team_member_delete_team_member_delete_post: #{e}"
|
891
|
+
end
|
892
|
+
```
|
893
|
+
|
894
|
+
#### Using the team_member_delete_team_member_delete_post_with_http_info variant
|
895
|
+
|
896
|
+
This returns an Array which contains the response data, status code and headers.
|
897
|
+
|
898
|
+
> <Array(Object, Integer, Hash)> team_member_delete_team_member_delete_post_with_http_info(team_member_delete_request)
|
899
|
+
|
900
|
+
```ruby
|
901
|
+
begin
|
902
|
+
# Team Member Delete
|
903
|
+
data, status_code, headers = api_instance.team_member_delete_team_member_delete_post_with_http_info(team_member_delete_request)
|
904
|
+
p status_code # => 2xx
|
905
|
+
p headers # => { ... }
|
906
|
+
p data # => Object
|
907
|
+
rescue LiteLLMClient::ApiError => e
|
908
|
+
puts "Error when calling TeamManagementApi->team_member_delete_team_member_delete_post_with_http_info: #{e}"
|
909
|
+
end
|
910
|
+
```
|
911
|
+
|
912
|
+
### Parameters
|
913
|
+
|
914
|
+
| Name | Type | Description | Notes |
|
915
|
+
| ---- | ---- | ----------- | ----- |
|
916
|
+
| **team_member_delete_request** | [**TeamMemberDeleteRequest**](TeamMemberDeleteRequest.md) | | |
|
917
|
+
|
918
|
+
### Return type
|
919
|
+
|
920
|
+
**Object**
|
921
|
+
|
922
|
+
### Authorization
|
923
|
+
|
924
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
925
|
+
|
926
|
+
### HTTP request headers
|
927
|
+
|
928
|
+
- **Content-Type**: application/json
|
929
|
+
- **Accept**: application/json
|
930
|
+
|
931
|
+
|
932
|
+
## team_member_permissions_team_permissions_list_get
|
933
|
+
|
934
|
+
> <GetTeamMemberPermissionsResponse> team_member_permissions_team_permissions_list_get(opts)
|
935
|
+
|
936
|
+
Team Member Permissions
|
937
|
+
|
938
|
+
Get the team member permissions for a team
|
939
|
+
|
940
|
+
### Examples
|
941
|
+
|
942
|
+
```ruby
|
943
|
+
require 'time'
|
944
|
+
require 'litellm_client'
|
945
|
+
# setup authorization
|
946
|
+
LiteLLMClient.configure do |config|
|
947
|
+
# Configure API key authorization: APIKeyHeader
|
948
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
949
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
950
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
951
|
+
end
|
952
|
+
|
953
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
954
|
+
opts = {
|
955
|
+
team_id: 'team_id_example' # String | Team ID in the request parameters
|
956
|
+
}
|
957
|
+
|
958
|
+
begin
|
959
|
+
# Team Member Permissions
|
960
|
+
result = api_instance.team_member_permissions_team_permissions_list_get(opts)
|
961
|
+
p result
|
962
|
+
rescue LiteLLMClient::ApiError => e
|
963
|
+
puts "Error when calling TeamManagementApi->team_member_permissions_team_permissions_list_get: #{e}"
|
964
|
+
end
|
965
|
+
```
|
966
|
+
|
967
|
+
#### Using the team_member_permissions_team_permissions_list_get_with_http_info variant
|
968
|
+
|
969
|
+
This returns an Array which contains the response data, status code and headers.
|
970
|
+
|
971
|
+
> <Array(<GetTeamMemberPermissionsResponse>, Integer, Hash)> team_member_permissions_team_permissions_list_get_with_http_info(opts)
|
972
|
+
|
973
|
+
```ruby
|
974
|
+
begin
|
975
|
+
# Team Member Permissions
|
976
|
+
data, status_code, headers = api_instance.team_member_permissions_team_permissions_list_get_with_http_info(opts)
|
977
|
+
p status_code # => 2xx
|
978
|
+
p headers # => { ... }
|
979
|
+
p data # => <GetTeamMemberPermissionsResponse>
|
980
|
+
rescue LiteLLMClient::ApiError => e
|
981
|
+
puts "Error when calling TeamManagementApi->team_member_permissions_team_permissions_list_get_with_http_info: #{e}"
|
982
|
+
end
|
983
|
+
```
|
984
|
+
|
985
|
+
### Parameters
|
986
|
+
|
987
|
+
| Name | Type | Description | Notes |
|
988
|
+
| ---- | ---- | ----------- | ----- |
|
989
|
+
| **team_id** | **String** | Team ID in the request parameters | [optional] |
|
990
|
+
|
991
|
+
### Return type
|
992
|
+
|
993
|
+
[**GetTeamMemberPermissionsResponse**](GetTeamMemberPermissionsResponse.md)
|
994
|
+
|
995
|
+
### Authorization
|
996
|
+
|
997
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
998
|
+
|
999
|
+
### HTTP request headers
|
1000
|
+
|
1001
|
+
- **Content-Type**: Not defined
|
1002
|
+
- **Accept**: application/json
|
1003
|
+
|
1004
|
+
|
1005
|
+
## team_member_update_team_member_update_post
|
1006
|
+
|
1007
|
+
> <TeamMemberUpdateResponse> team_member_update_team_member_update_post(team_member_update_request)
|
1008
|
+
|
1009
|
+
Team Member Update
|
1010
|
+
|
1011
|
+
[BETA] Update team member budgets and team member role
|
1012
|
+
|
1013
|
+
### Examples
|
1014
|
+
|
1015
|
+
```ruby
|
1016
|
+
require 'time'
|
1017
|
+
require 'litellm_client'
|
1018
|
+
# setup authorization
|
1019
|
+
LiteLLMClient.configure do |config|
|
1020
|
+
# Configure API key authorization: APIKeyHeader
|
1021
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
1022
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1023
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
1027
|
+
team_member_update_request = LiteLLMClient::TeamMemberUpdateRequest.new({team_id: 'team_id_example'}) # TeamMemberUpdateRequest |
|
1028
|
+
|
1029
|
+
begin
|
1030
|
+
# Team Member Update
|
1031
|
+
result = api_instance.team_member_update_team_member_update_post(team_member_update_request)
|
1032
|
+
p result
|
1033
|
+
rescue LiteLLMClient::ApiError => e
|
1034
|
+
puts "Error when calling TeamManagementApi->team_member_update_team_member_update_post: #{e}"
|
1035
|
+
end
|
1036
|
+
```
|
1037
|
+
|
1038
|
+
#### Using the team_member_update_team_member_update_post_with_http_info variant
|
1039
|
+
|
1040
|
+
This returns an Array which contains the response data, status code and headers.
|
1041
|
+
|
1042
|
+
> <Array(<TeamMemberUpdateResponse>, Integer, Hash)> team_member_update_team_member_update_post_with_http_info(team_member_update_request)
|
1043
|
+
|
1044
|
+
```ruby
|
1045
|
+
begin
|
1046
|
+
# Team Member Update
|
1047
|
+
data, status_code, headers = api_instance.team_member_update_team_member_update_post_with_http_info(team_member_update_request)
|
1048
|
+
p status_code # => 2xx
|
1049
|
+
p headers # => { ... }
|
1050
|
+
p data # => <TeamMemberUpdateResponse>
|
1051
|
+
rescue LiteLLMClient::ApiError => e
|
1052
|
+
puts "Error when calling TeamManagementApi->team_member_update_team_member_update_post_with_http_info: #{e}"
|
1053
|
+
end
|
1054
|
+
```
|
1055
|
+
|
1056
|
+
### Parameters
|
1057
|
+
|
1058
|
+
| Name | Type | Description | Notes |
|
1059
|
+
| ---- | ---- | ----------- | ----- |
|
1060
|
+
| **team_member_update_request** | [**TeamMemberUpdateRequest**](TeamMemberUpdateRequest.md) | | |
|
1061
|
+
|
1062
|
+
### Return type
|
1063
|
+
|
1064
|
+
[**TeamMemberUpdateResponse**](TeamMemberUpdateResponse.md)
|
1065
|
+
|
1066
|
+
### Authorization
|
1067
|
+
|
1068
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
1069
|
+
|
1070
|
+
### HTTP request headers
|
1071
|
+
|
1072
|
+
- **Content-Type**: application/json
|
1073
|
+
- **Accept**: application/json
|
1074
|
+
|
1075
|
+
|
1076
|
+
## team_model_add_team_model_add_post
|
1077
|
+
|
1078
|
+
> Object team_model_add_team_model_add_post(team_model_add_request)
|
1079
|
+
|
1080
|
+
Team Model Add
|
1081
|
+
|
1082
|
+
Add models to a team's allowed model list. Only proxy admin or team admin can add models. Parameters: - team_id: str - Required. The team to add models to - models: List[str] - Required. List of models to add to the team Example Request: ``` curl --location 'http://0.0.0.0:4000/team/model/add' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ \"team_id\": \"team-1234\", \"models\": [\"gpt-4\", \"claude-2\"] }' ```
|
1083
|
+
|
1084
|
+
### Examples
|
1085
|
+
|
1086
|
+
```ruby
|
1087
|
+
require 'time'
|
1088
|
+
require 'litellm_client'
|
1089
|
+
# setup authorization
|
1090
|
+
LiteLLMClient.configure do |config|
|
1091
|
+
# Configure API key authorization: APIKeyHeader
|
1092
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
1093
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1094
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
1098
|
+
team_model_add_request = LiteLLMClient::TeamModelAddRequest.new({team_id: 'team_id_example', models: ['models_example']}) # TeamModelAddRequest |
|
1099
|
+
|
1100
|
+
begin
|
1101
|
+
# Team Model Add
|
1102
|
+
result = api_instance.team_model_add_team_model_add_post(team_model_add_request)
|
1103
|
+
p result
|
1104
|
+
rescue LiteLLMClient::ApiError => e
|
1105
|
+
puts "Error when calling TeamManagementApi->team_model_add_team_model_add_post: #{e}"
|
1106
|
+
end
|
1107
|
+
```
|
1108
|
+
|
1109
|
+
#### Using the team_model_add_team_model_add_post_with_http_info variant
|
1110
|
+
|
1111
|
+
This returns an Array which contains the response data, status code and headers.
|
1112
|
+
|
1113
|
+
> <Array(Object, Integer, Hash)> team_model_add_team_model_add_post_with_http_info(team_model_add_request)
|
1114
|
+
|
1115
|
+
```ruby
|
1116
|
+
begin
|
1117
|
+
# Team Model Add
|
1118
|
+
data, status_code, headers = api_instance.team_model_add_team_model_add_post_with_http_info(team_model_add_request)
|
1119
|
+
p status_code # => 2xx
|
1120
|
+
p headers # => { ... }
|
1121
|
+
p data # => Object
|
1122
|
+
rescue LiteLLMClient::ApiError => e
|
1123
|
+
puts "Error when calling TeamManagementApi->team_model_add_team_model_add_post_with_http_info: #{e}"
|
1124
|
+
end
|
1125
|
+
```
|
1126
|
+
|
1127
|
+
### Parameters
|
1128
|
+
|
1129
|
+
| Name | Type | Description | Notes |
|
1130
|
+
| ---- | ---- | ----------- | ----- |
|
1131
|
+
| **team_model_add_request** | [**TeamModelAddRequest**](TeamModelAddRequest.md) | | |
|
1132
|
+
|
1133
|
+
### Return type
|
1134
|
+
|
1135
|
+
**Object**
|
1136
|
+
|
1137
|
+
### Authorization
|
1138
|
+
|
1139
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
1140
|
+
|
1141
|
+
### HTTP request headers
|
1142
|
+
|
1143
|
+
- **Content-Type**: application/json
|
1144
|
+
- **Accept**: application/json
|
1145
|
+
|
1146
|
+
|
1147
|
+
## team_model_delete_team_model_delete_post
|
1148
|
+
|
1149
|
+
> Object team_model_delete_team_model_delete_post(team_model_delete_request)
|
1150
|
+
|
1151
|
+
Team Model Delete
|
1152
|
+
|
1153
|
+
Remove models from a team's allowed model list. Only proxy admin or team admin can remove models. Parameters: - team_id: str - Required. The team to remove models from - models: List[str] - Required. List of models to remove from the team Example Request: ``` curl --location 'http://0.0.0.0:4000/team/model/delete' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ \"team_id\": \"team-1234\", \"models\": [\"gpt-4\"] }' ```
|
1154
|
+
|
1155
|
+
### Examples
|
1156
|
+
|
1157
|
+
```ruby
|
1158
|
+
require 'time'
|
1159
|
+
require 'litellm_client'
|
1160
|
+
# setup authorization
|
1161
|
+
LiteLLMClient.configure do |config|
|
1162
|
+
# Configure API key authorization: APIKeyHeader
|
1163
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
1164
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1165
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
1169
|
+
team_model_delete_request = LiteLLMClient::TeamModelDeleteRequest.new({team_id: 'team_id_example', models: ['models_example']}) # TeamModelDeleteRequest |
|
1170
|
+
|
1171
|
+
begin
|
1172
|
+
# Team Model Delete
|
1173
|
+
result = api_instance.team_model_delete_team_model_delete_post(team_model_delete_request)
|
1174
|
+
p result
|
1175
|
+
rescue LiteLLMClient::ApiError => e
|
1176
|
+
puts "Error when calling TeamManagementApi->team_model_delete_team_model_delete_post: #{e}"
|
1177
|
+
end
|
1178
|
+
```
|
1179
|
+
|
1180
|
+
#### Using the team_model_delete_team_model_delete_post_with_http_info variant
|
1181
|
+
|
1182
|
+
This returns an Array which contains the response data, status code and headers.
|
1183
|
+
|
1184
|
+
> <Array(Object, Integer, Hash)> team_model_delete_team_model_delete_post_with_http_info(team_model_delete_request)
|
1185
|
+
|
1186
|
+
```ruby
|
1187
|
+
begin
|
1188
|
+
# Team Model Delete
|
1189
|
+
data, status_code, headers = api_instance.team_model_delete_team_model_delete_post_with_http_info(team_model_delete_request)
|
1190
|
+
p status_code # => 2xx
|
1191
|
+
p headers # => { ... }
|
1192
|
+
p data # => Object
|
1193
|
+
rescue LiteLLMClient::ApiError => e
|
1194
|
+
puts "Error when calling TeamManagementApi->team_model_delete_team_model_delete_post_with_http_info: #{e}"
|
1195
|
+
end
|
1196
|
+
```
|
1197
|
+
|
1198
|
+
### Parameters
|
1199
|
+
|
1200
|
+
| Name | Type | Description | Notes |
|
1201
|
+
| ---- | ---- | ----------- | ----- |
|
1202
|
+
| **team_model_delete_request** | [**TeamModelDeleteRequest**](TeamModelDeleteRequest.md) | | |
|
1203
|
+
|
1204
|
+
### Return type
|
1205
|
+
|
1206
|
+
**Object**
|
1207
|
+
|
1208
|
+
### Authorization
|
1209
|
+
|
1210
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
1211
|
+
|
1212
|
+
### HTTP request headers
|
1213
|
+
|
1214
|
+
- **Content-Type**: application/json
|
1215
|
+
- **Accept**: application/json
|
1216
|
+
|
1217
|
+
|
1218
|
+
## unblock_team_team_unblock_post
|
1219
|
+
|
1220
|
+
> Object unblock_team_team_unblock_post(block_team_request)
|
1221
|
+
|
1222
|
+
Unblock Team
|
1223
|
+
|
1224
|
+
Blocks all calls from keys with this team id. Parameters: - team_id: str - Required. The unique identifier of the team to unblock. Example: ``` curl --location 'http://0.0.0.0:4000/team/unblock' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ \"team_id\": \"team-1234\" }' ```
|
1225
|
+
|
1226
|
+
### Examples
|
1227
|
+
|
1228
|
+
```ruby
|
1229
|
+
require 'time'
|
1230
|
+
require 'litellm_client'
|
1231
|
+
# setup authorization
|
1232
|
+
LiteLLMClient.configure do |config|
|
1233
|
+
# Configure API key authorization: APIKeyHeader
|
1234
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
1235
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1236
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
1240
|
+
block_team_request = LiteLLMClient::BlockTeamRequest.new({team_id: 'team_id_example'}) # BlockTeamRequest |
|
1241
|
+
|
1242
|
+
begin
|
1243
|
+
# Unblock Team
|
1244
|
+
result = api_instance.unblock_team_team_unblock_post(block_team_request)
|
1245
|
+
p result
|
1246
|
+
rescue LiteLLMClient::ApiError => e
|
1247
|
+
puts "Error when calling TeamManagementApi->unblock_team_team_unblock_post: #{e}"
|
1248
|
+
end
|
1249
|
+
```
|
1250
|
+
|
1251
|
+
#### Using the unblock_team_team_unblock_post_with_http_info variant
|
1252
|
+
|
1253
|
+
This returns an Array which contains the response data, status code and headers.
|
1254
|
+
|
1255
|
+
> <Array(Object, Integer, Hash)> unblock_team_team_unblock_post_with_http_info(block_team_request)
|
1256
|
+
|
1257
|
+
```ruby
|
1258
|
+
begin
|
1259
|
+
# Unblock Team
|
1260
|
+
data, status_code, headers = api_instance.unblock_team_team_unblock_post_with_http_info(block_team_request)
|
1261
|
+
p status_code # => 2xx
|
1262
|
+
p headers # => { ... }
|
1263
|
+
p data # => Object
|
1264
|
+
rescue LiteLLMClient::ApiError => e
|
1265
|
+
puts "Error when calling TeamManagementApi->unblock_team_team_unblock_post_with_http_info: #{e}"
|
1266
|
+
end
|
1267
|
+
```
|
1268
|
+
|
1269
|
+
### Parameters
|
1270
|
+
|
1271
|
+
| Name | Type | Description | Notes |
|
1272
|
+
| ---- | ---- | ----------- | ----- |
|
1273
|
+
| **block_team_request** | [**BlockTeamRequest**](BlockTeamRequest.md) | | |
|
1274
|
+
|
1275
|
+
### Return type
|
1276
|
+
|
1277
|
+
**Object**
|
1278
|
+
|
1279
|
+
### Authorization
|
1280
|
+
|
1281
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
1282
|
+
|
1283
|
+
### HTTP request headers
|
1284
|
+
|
1285
|
+
- **Content-Type**: application/json
|
1286
|
+
- **Accept**: application/json
|
1287
|
+
|
1288
|
+
|
1289
|
+
## update_team_member_permissions_team_permissions_update_post
|
1290
|
+
|
1291
|
+
> <LiteLLMTeamTable> update_team_member_permissions_team_permissions_update_post(update_team_member_permissions_request)
|
1292
|
+
|
1293
|
+
Update Team Member Permissions
|
1294
|
+
|
1295
|
+
Update the team member permissions for a team
|
1296
|
+
|
1297
|
+
### Examples
|
1298
|
+
|
1299
|
+
```ruby
|
1300
|
+
require 'time'
|
1301
|
+
require 'litellm_client'
|
1302
|
+
# setup authorization
|
1303
|
+
LiteLLMClient.configure do |config|
|
1304
|
+
# Configure API key authorization: APIKeyHeader
|
1305
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
1306
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1307
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
1308
|
+
end
|
1309
|
+
|
1310
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
1311
|
+
update_team_member_permissions_request = LiteLLMClient::UpdateTeamMemberPermissionsRequest.new({team_id: 'team_id_example', team_member_permissions: ['team_member_permissions_example']}) # UpdateTeamMemberPermissionsRequest |
|
1312
|
+
|
1313
|
+
begin
|
1314
|
+
# Update Team Member Permissions
|
1315
|
+
result = api_instance.update_team_member_permissions_team_permissions_update_post(update_team_member_permissions_request)
|
1316
|
+
p result
|
1317
|
+
rescue LiteLLMClient::ApiError => e
|
1318
|
+
puts "Error when calling TeamManagementApi->update_team_member_permissions_team_permissions_update_post: #{e}"
|
1319
|
+
end
|
1320
|
+
```
|
1321
|
+
|
1322
|
+
#### Using the update_team_member_permissions_team_permissions_update_post_with_http_info variant
|
1323
|
+
|
1324
|
+
This returns an Array which contains the response data, status code and headers.
|
1325
|
+
|
1326
|
+
> <Array(<LiteLLMTeamTable>, Integer, Hash)> update_team_member_permissions_team_permissions_update_post_with_http_info(update_team_member_permissions_request)
|
1327
|
+
|
1328
|
+
```ruby
|
1329
|
+
begin
|
1330
|
+
# Update Team Member Permissions
|
1331
|
+
data, status_code, headers = api_instance.update_team_member_permissions_team_permissions_update_post_with_http_info(update_team_member_permissions_request)
|
1332
|
+
p status_code # => 2xx
|
1333
|
+
p headers # => { ... }
|
1334
|
+
p data # => <LiteLLMTeamTable>
|
1335
|
+
rescue LiteLLMClient::ApiError => e
|
1336
|
+
puts "Error when calling TeamManagementApi->update_team_member_permissions_team_permissions_update_post_with_http_info: #{e}"
|
1337
|
+
end
|
1338
|
+
```
|
1339
|
+
|
1340
|
+
### Parameters
|
1341
|
+
|
1342
|
+
| Name | Type | Description | Notes |
|
1343
|
+
| ---- | ---- | ----------- | ----- |
|
1344
|
+
| **update_team_member_permissions_request** | [**UpdateTeamMemberPermissionsRequest**](UpdateTeamMemberPermissionsRequest.md) | | |
|
1345
|
+
|
1346
|
+
### Return type
|
1347
|
+
|
1348
|
+
[**LiteLLMTeamTable**](LiteLLMTeamTable.md)
|
1349
|
+
|
1350
|
+
### Authorization
|
1351
|
+
|
1352
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
1353
|
+
|
1354
|
+
### HTTP request headers
|
1355
|
+
|
1356
|
+
- **Content-Type**: application/json
|
1357
|
+
- **Accept**: application/json
|
1358
|
+
|
1359
|
+
|
1360
|
+
## update_team_team_update_post
|
1361
|
+
|
1362
|
+
> Object update_team_team_update_post(update_team_request, opts)
|
1363
|
+
|
1364
|
+
Update Team
|
1365
|
+
|
1366
|
+
Use `/team/member_add` AND `/team/member/delete` to add/remove new team members You can now update team budget / rate limits via /team/update Parameters: - team_id: str - The team id of the user. Required param. - team_alias: Optional[str] - User defined team alias - team_member_permissions: Optional[List[str]] - A list of routes that non-admin team members can access. example: [\"/key/generate\", \"/key/update\", \"/key/delete\"] - metadata: Optional[dict] - Metadata for team, store information for team. Example metadata = {\"team\": \"core-infra\", \"app\": \"app2\", \"email\": \"ishaan@berri.ai\" } - tpm_limit: Optional[int] - The TPM (Tokens Per Minute) limit for this team - all keys with this team_id will have at max this TPM limit - rpm_limit: Optional[int] - The RPM (Requests Per Minute) limit for this team - all keys associated with this team_id will have at max this RPM limit - max_budget: Optional[float] - The maximum budget allocated to the team - all keys for this team_id will have at max this max_budget - budget_duration: Optional[str] - The duration of the budget for the team. Doc [here](https://docs.litellm.ai/docs/proxy/team_budgets) - models: Optional[list] - A list of models associated with the team - all keys for this team_id will have at most, these models. If empty, assumes all models are allowed. - blocked: bool - Flag indicating if the team is blocked or not - will stop all calls from keys with this team_id. - tags: Optional[List[str]] - Tags for [tracking spend](https://litellm.vercel.app/docs/proxy/enterprise#tracking-spend-for-custom-tags) and/or doing [tag-based routing](https://litellm.vercel.app/docs/proxy/tag_routing). - organization_id: Optional[str] - The organization id of the team. Default is None. Create via `/organization/new`. - model_aliases: Optional[dict] - Model aliases for the team. [Docs](https://docs.litellm.ai/docs/proxy/team_based_routing#create-team-with-model-alias) - guardrails: Optional[List[str]] - Guardrails for the team. [Docs](https://docs.litellm.ai/docs/proxy/guardrails) - object_permission: Optional[LiteLLM_ObjectPermissionBase] - team-specific object permission. Example - {\"vector_stores\": [\"vector_store_1\", \"vector_store_2\"]}. IF null or {} then no object permission. Example - update team TPM Limit ``` curl --location 'http://0.0.0.0:4000/team/update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{ \"team_id\": \"8d916b1c-510d-4894-a334-1c16a93344f5\", \"tpm_limit\": 100 }' ``` Example - Update Team `max_budget` budget ``` curl --location 'http://0.0.0.0:4000/team/update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{ \"team_id\": \"8d916b1c-510d-4894-a334-1c16a93344f5\", \"max_budget\": 10 }' ```
|
1367
|
+
|
1368
|
+
### Examples
|
1369
|
+
|
1370
|
+
```ruby
|
1371
|
+
require 'time'
|
1372
|
+
require 'litellm_client'
|
1373
|
+
# setup authorization
|
1374
|
+
LiteLLMClient.configure do |config|
|
1375
|
+
# Configure API key authorization: APIKeyHeader
|
1376
|
+
config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
|
1377
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1378
|
+
# config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
api_instance = LiteLLMClient::TeamManagementApi.new
|
1382
|
+
update_team_request = LiteLLMClient::UpdateTeamRequest.new({team_id: 'team_id_example'}) # UpdateTeamRequest |
|
1383
|
+
opts = {
|
1384
|
+
litellm_changed_by: 'litellm_changed_by_example' # String | The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability
|
1385
|
+
}
|
1386
|
+
|
1387
|
+
begin
|
1388
|
+
# Update Team
|
1389
|
+
result = api_instance.update_team_team_update_post(update_team_request, opts)
|
1390
|
+
p result
|
1391
|
+
rescue LiteLLMClient::ApiError => e
|
1392
|
+
puts "Error when calling TeamManagementApi->update_team_team_update_post: #{e}"
|
1393
|
+
end
|
1394
|
+
```
|
1395
|
+
|
1396
|
+
#### Using the update_team_team_update_post_with_http_info variant
|
1397
|
+
|
1398
|
+
This returns an Array which contains the response data, status code and headers.
|
1399
|
+
|
1400
|
+
> <Array(Object, Integer, Hash)> update_team_team_update_post_with_http_info(update_team_request, opts)
|
1401
|
+
|
1402
|
+
```ruby
|
1403
|
+
begin
|
1404
|
+
# Update Team
|
1405
|
+
data, status_code, headers = api_instance.update_team_team_update_post_with_http_info(update_team_request, opts)
|
1406
|
+
p status_code # => 2xx
|
1407
|
+
p headers # => { ... }
|
1408
|
+
p data # => Object
|
1409
|
+
rescue LiteLLMClient::ApiError => e
|
1410
|
+
puts "Error when calling TeamManagementApi->update_team_team_update_post_with_http_info: #{e}"
|
1411
|
+
end
|
1412
|
+
```
|
1413
|
+
|
1414
|
+
### Parameters
|
1415
|
+
|
1416
|
+
| Name | Type | Description | Notes |
|
1417
|
+
| ---- | ---- | ----------- | ----- |
|
1418
|
+
| **update_team_request** | [**UpdateTeamRequest**](UpdateTeamRequest.md) | | |
|
1419
|
+
| **litellm_changed_by** | **String** | The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability | [optional] |
|
1420
|
+
|
1421
|
+
### Return type
|
1422
|
+
|
1423
|
+
**Object**
|
1424
|
+
|
1425
|
+
### Authorization
|
1426
|
+
|
1427
|
+
[APIKeyHeader](../README.md#APIKeyHeader)
|
1428
|
+
|
1429
|
+
### HTTP request headers
|
1430
|
+
|
1431
|
+
- **Content-Type**: application/json
|
1432
|
+
- **Accept**: application/json
|
1433
|
+
|