The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix: update calendly on repo
Krrish Dholakiaa26f83fd3c2f
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlindex b0679411236..4744ab048c7 100644--- a/.github/ISSUE_TEMPLATE/config.yml+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -1,7 +1,7 @@blank_issues_enabled: truecontact_links:- name: Schedule Demo- url: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat+ url: https://calendly.com/d/cx9p-5yf-2nm/litellm-introductionsabout: Speak directly with Krrish and Ishaan, the founders, to discuss issues, share feedback, or explore improvements for LiteLLM- name: Discordurl: https://discord.com/invite/wuPM9dRgDwdiff --git a/.github/workflows/interpret_load_test.py b/.github/workflows/interpret_load_test.pyindex 0b5df738626..348ff300fff 100644--- a/.github/workflows/interpret_load_test.py+++ b/.github/workflows/interpret_load_test.py@@ -123,7 +123,7 @@ if __name__ == "__main__":+ docker_run_command+ "\n\n"+ "### Don't want to maintain your internal proxy? get in touch 🎉"- + "\nHosted Proxy Alpha: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat"+ + "\nHosted Proxy Alpha: https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions"+ "\n\n"+ "## Load Test LiteLLM Proxy Results"+ "\n\n"diff --git a/README.md b/README.mdindex 7790c67afd5..3ebaefb10ca 100644--- a/README.md+++ b/README.md@@ -399,7 +399,7 @@ Support for more providers. Missing a provider or LLM Platform, raise a [feature# EnterpriseFor companies that need better security, user management and professional support-[Talk to founders](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Talk to founders](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions)This covers:- ✅ **Features under the [LiteLLM Commercial License](https://docs.litellm.ai/docs/proxy/enterprise):**diff --git a/cookbook/benchmark/readme.md b/cookbook/benchmark/readme.mdindex a543d910114..57115eb96a9 100644--- a/cookbook/benchmark/readme.md+++ b/cookbook/benchmark/readme.md@@ -178,4 +178,4 @@ Benchmark Results for 'When will BerriAI IPO?':```## Support-**🤝 Schedule a 1-on-1 Session:** Book a [1-on-1 session](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat) with Krrish and Ishaan, the founders, to discuss any issues, provide feedback, or explore how we can improve LiteLLM for you.+**🤝 Schedule a 1-on-1 Session:** Book a [1-on-1 session](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions) with Krrish and Ishaan, the founders, to discuss any issues, provide feedback, or explore how we can improve LiteLLM for you.diff --git a/docs/my-website/docs/enterprise.md b/docs/my-website/docs/enterprise.mdindex 0a1b47f0621..6dccf7ff4e7 100644--- a/docs/my-website/docs/enterprise.md+++ b/docs/my-website/docs/enterprise.md@@ -4,7 +4,7 @@ import Image from '@theme/IdealImage';:::info- ✨ SSO is free for up to 5 users. After that, an enterprise license is required. [Get Started with Enterprise here](https://www.litellm.ai/enterprise)-- Who is Enterprise for? Companies giving access to 100+ users **OR** 10+ AI use-cases. If you're not sure, [get in touch with us](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat) to discuss your needs.+- Who is Enterprise for? Companies giving access to 100+ users **OR** 10+ AI use-cases. If you're not sure, [get in touch with us](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions) to discuss your needs.:::For companies that need SSO, user management and professional support for LiteLLM Proxy@@ -36,7 +36,7 @@ Manage Yourself - you can deploy our Docker Image or build a custom image from o### What’s the cost of the Self-Managed Enterprise edition?-Self-Managed Enterprise deployments require our team to understand your exact needs. [Get in touch with us to learn more](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+Self-Managed Enterprise deployments require our team to understand your exact needs. [Get in touch with us to learn more](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions)### How does deployment with Enterprise License work?@@ -106,7 +106,7 @@ Professional Support can assist with LLM/Provider integrations, deployment, upgrPricing is based on usage. We can figure out a price that works for your team, on the call.-[**Contact Us to learn more**](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[**Contact Us to learn more**](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions)diff --git a/docs/my-website/docs/fine_tuning.md b/docs/my-website/docs/fine_tuning.mdindex 2779a478f8f..d0bd98a76f9 100644--- a/docs/my-website/docs/fine_tuning.md+++ b/docs/my-website/docs/fine_tuning.md@@ -6,7 +6,7 @@ import TabItem from '@theme/TabItem';:::info-This is an Enterprise only endpoint [Get Started with Enterprise here](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+This is an Enterprise only endpoint [Get Started with Enterprise here](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/observability/gcs_bucket_integration.md b/docs/my-website/docs/observability/gcs_bucket_integration.mdindex 40509708080..69b956950e5 100644--- a/docs/my-website/docs/observability/gcs_bucket_integration.md+++ b/docs/my-website/docs/observability/gcs_bucket_integration.md@@ -6,7 +6,7 @@ Log LLM Logs to [Google Cloud Storage Buckets](https://cloud.google.com/storage?:::info-✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/cost_tracking.md b/docs/my-website/docs/proxy/cost_tracking.mdindex 26a4920c093..baebdf0f31d 100644--- a/docs/my-website/docs/proxy/cost_tracking.md+++ b/docs/my-website/docs/proxy/cost_tracking.md@@ -161,7 +161,7 @@ Use this when you want non-proxy admins to access `/spend` endpoints:::info-Schedule a [meeting with us to get your Enterprise License](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+Schedule a [meeting with us to get your Enterprise License](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/email.md b/docs/my-website/docs/proxy/email.mdindex ad158cb3429..86a79cbcfc8 100644--- a/docs/my-website/docs/proxy/email.md+++ b/docs/my-website/docs/proxy/email.md@@ -203,7 +203,7 @@ After regenerating the key, the user will receive an email notification with::::info-Customizing Email Branding is an Enterprise Feature [Get in touch with us for a Free Trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+Customizing Email Branding is an Enterprise Feature [Get in touch with us for a Free Trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/enterprise.md b/docs/my-website/docs/proxy/enterprise.mdindex 26d25873207..4b525837a20 100644--- a/docs/my-website/docs/proxy/enterprise.md+++ b/docs/my-website/docs/proxy/enterprise.md@@ -5,7 +5,7 @@ import TabItem from '@theme/TabItem';# ✨ Enterprise Features:::tip-To get a license, get in touch with us [here](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+To get a license, get in touch with us [here](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/guardrails/aporia_api.md b/docs/my-website/docs/proxy/guardrails/aporia_api.mdindex 8c5c1ec1947..ceafc19a1cc 100644--- a/docs/my-website/docs/proxy/guardrails/aporia_api.md+++ b/docs/my-website/docs/proxy/guardrails/aporia_api.md@@ -139,7 +139,7 @@ curl -i http://localhost:4000/v1/chat/completions \:::info-✨ This is an Enterprise only feature [Contact us to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+✨ This is an Enterprise only feature [Contact us to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/guardrails/custom_guardrail.md b/docs/my-website/docs/proxy/guardrails/custom_guardrail.mdindex 365fdf81aa5..c9115cf8265 100644--- a/docs/my-website/docs/proxy/guardrails/custom_guardrail.md+++ b/docs/my-website/docs/proxy/guardrails/custom_guardrail.md@@ -409,7 +409,7 @@ curl -i -X POST http://localhost:4000/v1/chat/completions \:::info-✨ This is an Enterprise only feature [Contact us to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+✨ This is an Enterprise only feature [Contact us to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/guardrails/guardrails_ai.md b/docs/my-website/docs/proxy/guardrails/guardrails_ai.mdindex ddeccaf16d3..55d586aee7b 100644--- a/docs/my-website/docs/proxy/guardrails/guardrails_ai.md+++ b/docs/my-website/docs/proxy/guardrails/guardrails_ai.md@@ -59,7 +59,7 @@ curl -i http://localhost:4000/v1/chat/completions \:::info-✨ This is an Enterprise only feature [Contact us to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+✨ This is an Enterprise only feature [Contact us to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/ip_address.md b/docs/my-website/docs/proxy/ip_address.mdindex 80d5561da41..8f042d9f183 100644--- a/docs/my-website/docs/proxy/ip_address.md+++ b/docs/my-website/docs/proxy/ip_address.md@@ -3,7 +3,7 @@:::info-You need a LiteLLM License to unlock this feature. [Grab time](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat), to get one today!+You need a LiteLLM License to unlock this feature. [Grab time](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions), to get one today!:::diff --git a/docs/my-website/docs/proxy/logging.md b/docs/my-website/docs/proxy/logging.mdindex 1abb127dfda..74a79776fbd 100644--- a/docs/my-website/docs/proxy/logging.md+++ b/docs/my-website/docs/proxy/logging.md@@ -1109,7 +1109,7 @@ Log LLM Logs to [Google Cloud Storage Buckets](https://cloud.google.com/storage?:::info-✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::@@ -1194,7 +1194,7 @@ Log LLM Logs/SpendLogs to [Google Cloud Storage PubSub Topic](https://cloud.goog:::info-✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::@@ -1497,7 +1497,7 @@ Log LLM Logs to [Azure Data Lake Storage](https://learn.microsoft.com/en-us/azur:::info-✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/multiple_admins.md b/docs/my-website/docs/proxy/multiple_admins.mdindex cf122f85b99..8d39674df19 100644--- a/docs/my-website/docs/proxy/multiple_admins.md+++ b/docs/my-website/docs/proxy/multiple_admins.md@@ -20,7 +20,7 @@ LiteLLM tracks changes to the following entities and actions::::tip-Requires Enterprise License, Get in touch with us [here](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+Requires Enterprise License, Get in touch with us [here](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/oauth2.md b/docs/my-website/docs/proxy/oauth2.mdindex ec076d8fae3..41c4110e447 100644--- a/docs/my-website/docs/proxy/oauth2.md+++ b/docs/my-website/docs/proxy/oauth2.md@@ -4,7 +4,7 @@ Use this if you want to use an Oauth2.0 token to make `/chat`, `/embeddings` req:::info-This is an Enterprise Feature - [get in touch with us if you want a free trial to test if this feature meets your needs]((https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat))+This is an Enterprise Feature - [get in touch with us if you want a free trial to test if this feature meets your needs]((https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions)):::diff --git a/docs/my-website/docs/proxy/prod.md b/docs/my-website/docs/proxy/prod.mdindex 994788a3ad9..26cb484cbe9 100644--- a/docs/my-website/docs/proxy/prod.md+++ b/docs/my-website/docs/proxy/prod.md@@ -47,7 +47,7 @@ export LITELLM_LOG="ERROR":::info-Need Help or want dedicated support ? Talk to a founder [here]: (https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+Need Help or want dedicated support ? Talk to a founder [here]: (https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/public_routes.md b/docs/my-website/docs/proxy/public_routes.mdindex 21a92a00be5..d5f3941751f 100644--- a/docs/my-website/docs/proxy/public_routes.md+++ b/docs/my-website/docs/proxy/public_routes.md@@ -5,7 +5,7 @@ import TabItem from '@theme/TabItem';:::info-Requires a LiteLLM Enterprise License. [Get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat).+Requires a LiteLLM Enterprise License. [Get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions).:::diff --git a/docs/my-website/docs/proxy/tag_routing.md b/docs/my-website/docs/proxy/tag_routing.mdindex 838b2a09d76..399c43d2c0f 100644--- a/docs/my-website/docs/proxy/tag_routing.md+++ b/docs/my-website/docs/proxy/tag_routing.md@@ -215,7 +215,7 @@ LiteLLM Proxy supports team-based tag routing, allowing you to associate specifi:::info-This is an enterprise feature, [Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+This is an enterprise feature, [Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/team_logging.md b/docs/my-website/docs/proxy/team_logging.mdindex bb35839bb25..2ad7e2a4a8e 100644--- a/docs/my-website/docs/proxy/team_logging.md+++ b/docs/my-website/docs/proxy/team_logging.md@@ -26,7 +26,7 @@ Team 3 -> Disabled Logging (for GDPR compliance):::info-✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::@@ -248,7 +248,7 @@ Use the `/key/generate` or `/key/update` endpoints to add logging callbacks to a:::info-✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+✨ This is an Enterprise only feature [Get Started with Enterprise here](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/team_model_add.md b/docs/my-website/docs/proxy/team_model_add.mdindex a8a6878fd59..7db59a3300e 100644--- a/docs/my-website/docs/proxy/team_model_add.md+++ b/docs/my-website/docs/proxy/team_model_add.md@@ -5,7 +5,7 @@This is an Enterprise feature.[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/proxy/token_auth.md b/docs/my-website/docs/proxy/token_auth.mdindex 78cd144d56d..e8634f0faf5 100644--- a/docs/my-website/docs/proxy/token_auth.md+++ b/docs/my-website/docs/proxy/token_auth.md@@ -11,7 +11,7 @@ Use JWT's to auth admins / users / projects into the proxy.[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/secret.md b/docs/my-website/docs/secret.mdindex 21eb639581e..c5c80311475 100644--- a/docs/my-website/docs/secret.md+++ b/docs/my-website/docs/secret.md@@ -6,7 +6,7 @@[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/secret_managers/aws_kms.md b/docs/my-website/docs/secret_managers/aws_kms.mdindex 79dc80897fc..7f69d91fe87 100644--- a/docs/my-website/docs/secret_managers/aws_kms.md+++ b/docs/my-website/docs/secret_managers/aws_kms.md@@ -6,7 +6,7 @@[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/secret_managers/aws_secret_manager.md b/docs/my-website/docs/secret_managers/aws_secret_manager.mdindex 5b7ab1e3e7b..c49797a15dd 100644--- a/docs/my-website/docs/secret_managers/aws_secret_manager.md+++ b/docs/my-website/docs/secret_managers/aws_secret_manager.md@@ -9,7 +9,7 @@ import TabItem from '@theme/TabItem';[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/secret_managers/azure_key_vault.md b/docs/my-website/docs/secret_managers/azure_key_vault.mdindex 6ec95b378b2..81aeaa32159 100644--- a/docs/my-website/docs/secret_managers/azure_key_vault.md+++ b/docs/my-website/docs/secret_managers/azure_key_vault.md@@ -6,7 +6,7 @@[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/secret_managers/cyberark.md b/docs/my-website/docs/secret_managers/cyberark.mdindex c33aa286703..0a17c0afc30 100644--- a/docs/my-website/docs/secret_managers/cyberark.md+++ b/docs/my-website/docs/secret_managers/cyberark.md@@ -8,7 +8,7 @@ import Image from '@theme/IdealImage';[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/secret_managers/google_kms.md b/docs/my-website/docs/secret_managers/google_kms.mdindex 0c6f66846ff..31fd6195bdb 100644--- a/docs/my-website/docs/secret_managers/google_kms.md+++ b/docs/my-website/docs/secret_managers/google_kms.md@@ -6,7 +6,7 @@[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/secret_managers/google_secret_manager.md b/docs/my-website/docs/secret_managers/google_secret_manager.mdindex a545e7a85b9..81878b7e398 100644--- a/docs/my-website/docs/secret_managers/google_secret_manager.md+++ b/docs/my-website/docs/secret_managers/google_secret_manager.md@@ -6,7 +6,7 @@[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/secret_managers/hashicorp_vault.md b/docs/my-website/docs/secret_managers/hashicorp_vault.mdindex e9e0116f4f3..52d9b556200 100644--- a/docs/my-website/docs/secret_managers/hashicorp_vault.md+++ b/docs/my-website/docs/secret_managers/hashicorp_vault.md@@ -8,7 +8,7 @@ import Image from '@theme/IdealImage';[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/secret_managers/overview.md b/docs/my-website/docs/secret_managers/overview.mdindex a987c72d767..bf7386ab89c 100644--- a/docs/my-website/docs/secret_managers/overview.md+++ b/docs/my-website/docs/secret_managers/overview.md@@ -8,7 +8,7 @@ import Image from '@theme/IdealImage';[Enterprise Pricing](https://www.litellm.ai/#pricing)-[Contact us here to get a free trial](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)+[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions):::diff --git a/docs/my-website/docs/tutorials/compare_llms.md b/docs/my-website/docs/tutorials/compare_llms.mdindex d7fdf8d7d93..02877b46607 100644--- a/docs/my-website/docs/tutorials/compare_llms.md+++ b/docs/my-website/docs/tutorials/compare_llms.md@@ -82,7 +82,7 @@ Benchmark Results for 'When will BerriAI IPO?':+-----------------+----------------------------------------------------------------------------------+---------------------------+------------+```## Support-**🤝 Schedule a 1-on-1 Session:** Book a [1-on-1 session](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat) with Krrish and Ishaan, the founders, to discuss any issues, provide feedback, or explore how we can improve LiteLLM for you.+**🤝 Schedule a 1-on-1 Session:** Book a [1-on-1 session](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions) with Krrish and Ishaan, the founders, to discuss any issues, provide feedback, or explore how we can improve LiteLLM for you.<!--diff --git a/enterprise/LICENSE.md b/enterprise/LICENSE.mdindex 5cd298ce658..c14a2a0c487 100644--- a/enterprise/LICENSE.md+++ b/enterprise/LICENSE.md@@ -7,7 +7,7 @@ With regard to the BerriAI Software:This software and associated documentation files (the "Software") may only beused in production, if you (and any entity that you represent) have agreed to,and are in compliance with, the BerriAI Subscription Terms of Service, available-via [call](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat) or email ([email protected]) (the "Enterprise Terms"), or other+via [call](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions) or email ([email protected]) (the "Enterprise Terms"), or otheragreement governing the use of the Software, as agreed by you and BerriAI,and otherwise have a valid BerriAI Enterprise license for thecorrect number of user seats. Subject to the foregoing sentence, you are free todiff --git a/enterprise/README.md b/enterprise/README.mdindex d5c27bab679..3b2ada6dd82 100644--- a/enterprise/README.md+++ b/enterprise/README.md@@ -4,6 +4,6 @@ Code in this folder is licensed under a commercial license. Please review the [L**These features are covered under the LiteLLM Enterprise contract**-👉 **Using in an Enterprise / Need specific features ?** Meet with us [here](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat?month=2024-02)+👉 **Using in an Enterprise / Need specific features ?** Meet with us [here](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions?month=2024-02)See all Enterprise Features here 👉 [Docs](https://docs.litellm.ai/docs/proxy/enterprise)diff --git a/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py b/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.pyindex d3e04769300..2f2e444850a 100644--- a/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py+++ b/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py@@ -16,6 +16,10 @@ from litellm_enterprise.types.enterprise_callbacks.send_emails import (from litellm._logging import verbose_proxy_loggerfrom litellm.caching.caching import DualCache+from litellm.constants import (+ EMAIL_BUDGET_ALERT_MAX_SPEND_ALERT_PERCENTAGE,+ EMAIL_BUDGET_ALERT_TTL,+)from litellm.integrations.custom_logger import CustomLoggerfrom litellm.integrations.email_templates.email_footer import EMAIL_FOOTERfrom litellm.integrations.email_templates.key_created_email import (@@ -24,14 +28,14 @@ from litellm.integrations.email_templates.key_created_email import (from litellm.integrations.email_templates.key_rotated_email import (KEY_ROTATED_EMAIL_TEMPLATE,)-from litellm.integrations.email_templates.user_invitation_email import (- USER_INVITATION_EMAIL_TEMPLATE,-)from litellm.integrations.email_templates.templates import (MAX_BUDGET_ALERT_EMAIL_TEMPLATE,SOFT_BUDGET_ALERT_EMAIL_TEMPLATE,TEAM_SOFT_BUDGET_ALERT_EMAIL_TEMPLATE,)+from litellm.integrations.email_templates.user_invitation_email import (+ USER_INVITATION_EMAIL_TEMPLATE,+)from litellm.proxy._types import (CallInfo,InvitationNew,@@ -41,10 +45,6 @@ from litellm.proxy._types import ()from litellm.secret_managers.main import get_secret_boolfrom litellm.types.integrations.slack_alerting import LITELLM_LOGO_URL-from litellm.constants import (- EMAIL_BUDGET_ALERT_MAX_SPEND_ALERT_PERCENTAGE,- EMAIL_BUDGET_ALERT_TTL,-)class BaseEmailLogger(CustomLogger):@@ -121,10 +121,16 @@ class BaseEmailLogger(CustomLogger):)# Check if API key should be included in email- include_api_key = get_secret_bool(secret_name="EMAIL_INCLUDE_API_KEY", default_value=True)+ include_api_key = get_secret_bool(+ secret_name="EMAIL_INCLUDE_API_KEY", default_value=True+ )if include_api_key is None:include_api_key = True # Default to True if not set- key_token_display = send_key_created_email_event.virtual_key if include_api_key else "[Key hidden for security - retrieve from dashboard]"+ key_token_display = (+ send_key_created_email_event.virtual_key+ if include_api_key+ else "[Key hidden for security - retrieve from dashboard]"+ )email_html_content = KEY_CREATED_EMAIL_TEMPLATE.format(email_logo_url=email_params.logo_url,@@ -162,10 +168,16 @@ class BaseEmailLogger(CustomLogger):)# Check if API key should be included in email- include_api_key = get_secret_bool(secret_name="EMAIL_INCLUDE_API_KEY", default_value=True)+ include_api_key = get_secret_bool(+ secret_name="EMAIL_INCLUDE_API_KEY", default_value=True+ )if include_api_key is None:include_api_key = True # Default to True if not set- key_token_display = send_key_rotated_email_event.virtual_key if include_api_key else "[Key hidden for security - retrieve from dashboard]"+ key_token_display = (+ send_key_rotated_email_event.virtual_key+ if include_api_key+ else "[Key hidden for security - retrieve from dashboard]"+ )email_html_content = KEY_ROTATED_EMAIL_TEMPLATE.format(email_logo_url=email_params.logo_url,@@ -201,7 +213,9 @@ class BaseEmailLogger(CustomLogger):)# Format budget values- soft_budget_str = f"${event.soft_budget}" if event.soft_budget is not None else "N/A"+ soft_budget_str = (+ f"${event.soft_budget}" if event.soft_budget is not None else "N/A"+ )spend_str = f"${event.spend}" if event.spend is not None else "$0.00"max_budget_info = ""if event.max_budget is not None:@@ -231,13 +245,13 @@ class BaseEmailLogger(CustomLogger):"""# Collect all recipient emailsrecipient_emails: List[str] = []-+# Add additional alert emails from team metadata.soft_budget_alert_emailsif hasattr(event, "alert_emails") and event.alert_emails:for email in event.alert_emails:if email and email not in recipient_emails: # Avoid duplicatesrecipient_emails.append(email)-+# If no recipients found, skip sendingif not recipient_emails:verbose_proxy_logger.warning(@@ -268,7 +282,9 @@ class BaseEmailLogger(CustomLogger):)# Format budget values- soft_budget_str = f"${event.soft_budget}" if event.soft_budget is not None else "N/A"+ soft_budget_str = (+ f"${event.soft_budget}" if event.soft_budget is not None else "N/A"+ )spend_str = f"${event.spend}" if event.spend is not None else "$0.00"max_budget_info = ""if event.max_budget is not None:@@ -286,7 +302,7 @@ class BaseEmailLogger(CustomLogger):base_url=email_params.base_url,email_support_contact=email_params.support_contact,)-+# Send email to all recipientsawait self.send_email(from_email=self.DEFAULT_LITELLM_EMAIL,@@ -313,11 +329,17 @@ class BaseEmailLogger(CustomLogger):# Format budget valuesspend_str = f"${event.spend}" if event.spend is not None else "$0.00"- max_budget_str = f"${event.max_budget}" if event.max_budget is not None else "N/A"-+ max_budget_str = (+ f"${event.max_budget}" if event.max_budget is not None else "N/A"+ )+# Calculate percentage and alert thresholdpercentage = int(EMAIL_BUDGET_ALERT_MAX_SPEND_ALERT_PERCENTAGE * 100)- alert_threshold_str = f"${event.max_budget * EMAIL_BUDGET_ALERT_MAX_SPEND_ALERT_PERCENTAGE:.2f}" if event.max_budget is not None else "N/A"+ alert_threshold_str = (+ f"${event.max_budget * EMAIL_BUDGET_ALERT_MAX_SPEND_ALERT_PERCENTAGE:.2f}"+ if event.max_budget is not None+ else "N/A"+ )email_html_content = MAX_BUDGET_ALERT_EMAIL_TEMPLATE.format(email_logo_url=email_params.logo_url,@@ -382,7 +404,10 @@ class BaseEmailLogger(CustomLogger):# For non-team alerts, require either max_budget or soft_budgetif user_info.max_budget is None and user_info.soft_budget is None:return- if user_info.soft_budget is not None and user_info.spend >= user_info.soft_budget:+ if (+ user_info.soft_budget is not None+ and user_info.spend >= user_info.soft_budget+ ):# Generate cache key based on event type and identifier# Use appropriate ID based on event_group to ensure unique cache keys per entity typeif user_info.event_group == Litellm_EntityType.TEAM:@@ -395,7 +420,7 @@ class BaseEmailLogger(CustomLogger):# For KEY and other types, use token or user_id_id = user_info.token or user_info.user_id or "default_id"_cache_key = f"email_budget_alerts:soft_budget_crossed:{_id}"-+# Check if we've already sent this alertresult = await _cache.async_get_cache(key=_cache_key)if result is None:@@ -420,14 +445,14 @@ class BaseEmailLogger(CustomLogger):event_group=user_info.event_group,alert_emails=user_info.alert_emails,)-+try:# Use team-specific function for team alerts, otherwise use standard functionif user_info.event_group == Litellm_EntityType.TEAM:await self.send_team_soft_budget_alert_email(webhook_event)else:await self.send_soft_budget_alert_email(webhook_event)-+# Cache the alert to prevent duplicate sendsawait _cache.async_set_cache(key=_cache_key,@@ -444,20 +469,27 @@ class BaseEmailLogger(CustomLogger):# For max_budget_alert, check if we've already sent an alertif type == "max_budget_alert":if user_info.max_budget is not None and user_info.spend is not None:- alert_threshold = user_info.max_budget * EMAIL_BUDGET_ALERT_MAX_SPEND_ALERT_PERCENTAGE-+ alert_threshold = (+ user_info.max_budget * EMAIL_BUDGET_ALERT_MAX_SPEND_ALERT_PERCENTAGE+ )+# Only alert if we've crossed the threshold but haven't exceeded max_budget yet- if user_info.spend >= alert_threshold and user_info.spend < user_info.max_budget:+ if (+ user_info.spend >= alert_threshold+ and user_info.spend < user_info.max_budget+ ):# Generate cache key based on event type and identifier_id = user_info.token or user_info.user_id or "default_id"_cache_key = f"email_budget_alerts:max_budget_alert:{_id}"-+# Check if we've already sent this alertresult = await _cache.async_get_cache(key=_cache_key)if result is None:# Calculate percentage- percentage = int(EMAIL_BUDGET_ALERT_MAX_SPEND_ALERT_PERCENTAGE * 100)-+ percentage = int(+ EMAIL_BUDGET_ALERT_MAX_SPEND_ALERT_PERCENTAGE * 100+ )+# Create WebhookEvent for max budget alertevent_message = f"Max Budget Alert - {percentage}% of Maximum Budget Reached"webhook_event = WebhookEvent(@@ -478,10 +510,10 @@ class BaseEmailLogger(CustomLogger):projected_spend=user_info.projected_spend,event_group=user_info.event_group,)-+try:await self.send_max_budget_alert_email(webhook_event)-+# Cache the alert to prevent duplicate sendsawait _cache.async_set_cache(key=_cache_key,@@ -525,9 +557,14 @@ class BaseEmailLogger(CustomLogger):unused_custom_fields = []# Function to safely get custom value or default- def get_custom_or_default(custom_value: Optional[str], default_value: str, field_name: str) -> str:- if custom_value is not None: # Only check premium if trying to use custom value+ def get_custom_or_default(+ custom_value: Optional[str], default_value: str, field_name: str+ ) -> str:+ if (+ custom_value is not None+ ): # Only check premium if trying to use custom valuefrom litellm.proxy.proxy_server import premium_user+if premium_user is not True:unused_custom_fields.append(field_name)return default_value@@ -536,38 +573,48 @@ class BaseEmailLogger(CustomLogger):# Get parameters, falling back to defaults if custom values aren't allowedlogo_url = get_custom_or_default(custom_logo, LITELLM_LOGO_URL, "logo URL")- support_contact = get_custom_or_default(custom_support, self.DEFAULT_SUPPORT_EMAIL, "support contact")- base_url = os.getenv("PROXY_BASE_URL", "http://0.0.0.0:4000") # Not a premium feature- signature = get_custom_or_default(custom_signature, EMAIL_FOOTER, "email signature")+ support_contact = get_custom_or_default(+ custom_support, self.DEFAULT_SUPPORT_EMAIL, "support contact"+ )+ base_url = os.getenv(+ "PROXY_BASE_URL", "http://0.0.0.0:4000"+ ) # Not a premium feature+ signature = get_custom_or_default(+ custom_signature, EMAIL_FOOTER, "email signature"+ )# Get custom subject template based on email event typeif email_event == EmailEvent.new_user_invitation:subject_template = get_custom_or_default(custom_subject_invitation,self.DEFAULT_SUBJECT_TEMPLATES[EmailEvent.new_user_invitation],- "invitation subject template"+ "invitation subject template",)elif email_event == EmailEvent.virtual_key_created:subject_template = get_custom_or_default(custom_subject_key_created,self.DEFAULT_SUBJECT_TEMPLATES[EmailEvent.virtual_key_created],- "key created subject template"+ "key created subject template",)elif email_event == EmailEvent.virtual_key_rotated:custom_subject_key_rotated = os.getenv("EMAIL_SUBJECT_KEY_ROTATED", None)subject_template = get_custom_or_default(custom_subject_key_rotated,self.DEFAULT_SUBJECT_TEMPLATES[EmailEvent.virtual_key_rotated],- "key rotated subject template"+ "key rotated subject template",)else:subject_template = "LiteLLM: {event_message}"- subject = subject_template.format(event_message=event_message) if event_message else "LiteLLM Notification"+ subject = (+ subject_template.format(event_message=event_message)+ if event_message+ else "LiteLLM Notification"+ )- recipient_email: Optional[- str- ] = user_email or await self._lookup_user_email_from_db(user_id=user_id)+ recipient_email: Optional[str] = (+ user_email or await self._lookup_user_email_from_db(user_id=user_id)+ )if recipient_email is None:raise ValueError(f"User email not found for user_id: {user_id}. User email is required to send email."@@ -585,11 +632,9 @@ class BaseEmailLogger(CustomLogger):warning_msg = (f"Email sent with default values instead of custom values for: {fields_str}. ""This is an Enterprise feature. To use custom email fields, please upgrade to LiteLLM Enterprise. "- "Schedule a meeting here: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat"- )- verbose_proxy_logger.warning(- f"{warning_msg}"+ "Schedule a meeting here: https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions")+ verbose_proxy_logger.warning(f"{warning_msg}")return EmailParams(logo_url=logo_url,@@ -636,44 +681,49 @@ class BaseEmailLogger(CustomLogger):if not user_id:verbose_proxy_logger.debug("No user_id provided for invitation link")return base_url-+if not await self._is_prisma_client_available():return base_url-+# Wait for any concurrent invitation creation to completeawait self._wait_for_invitation_creation()-+# Get or create invitationinvitation = await self._get_or_create_invitation(user_id)if not invitation:- verbose_proxy_logger.warning(f"Failed to get/create invitation for user_id: {user_id}")+ verbose_proxy_logger.warning(+ f"Failed to get/create invitation for user_id: {user_id}"+ )return base_url-+return self._construct_invitation_link(invitation.id, base_url)async def _is_prisma_client_available(self) -> bool:"""Check if Prisma client is available"""from litellm.proxy.proxy_server import prisma_client-+if prisma_client is None:- verbose_proxy_logger.debug("Prisma client not found. Unable to lookup invitation")+ verbose_proxy_logger.debug(+ "Prisma client not found. Unable to lookup invitation"+ )return Falsereturn Trueasync def _wait_for_invitation_creation(self) -> None:"""Wait for any concurrent invitation creation to complete.-+The UI calls /invitation/new to generate the invitation link.We wait to ensure any pending invitation creation is completed."""import asyncio+await asyncio.sleep(10)async def _get_or_create_invitation(self, user_id: str):"""Get existing invitation or create a new one for the user-+Returns:Invitation object with id attribute, or None if failed"""@@ -681,31 +731,41 @@ class BaseEmailLogger(CustomLogger):create_invitation_for_user,)from litellm.proxy.proxy_server import prisma_client-+if prisma_client is None:- verbose_proxy_logger.error("Prisma client is None in _get_or_create_invitation")+ verbose_proxy_logger.error(+ "Prisma client is None in _get_or_create_invitation"+ )return None-+try:# Try to get existing invitation- existing_invitations = await prisma_client.db.litellm_invitationlink.find_many(- where={"user_id": user_id},- order={"created_at": "desc"},+ existing_invitations = (+ await prisma_client.db.litellm_invitationlink.find_many(+ where={"user_id": user_id},+ order={"created_at": "desc"},+ ))-+if existing_invitations and len(existing_invitations) > 0:- verbose_proxy_logger.debug(f"Found existing invitation for user_id: {user_id}")+ verbose_proxy_logger.debug(+ f"Found existing invitation for user_id: {user_id}"+ )return existing_invitations[0]-+# Create new invitation if none exists- verbose_proxy_logger.debug(f"Creating new invitation for user_id: {user_id}")+ verbose_proxy_logger.debug(+ f"Creating new invitation for user_id: {user_id}"+ )return await create_invitation_for_user(data=InvitationNew(user_id=user_id),user_api_key_dict=UserAPIKeyAuth(user_id=user_id),)-+except Exception as e:- verbose_proxy_logger.error(f"Error getting/creating invitation for user_id {user_id}: {e}")+ verbose_proxy_logger.error(+ f"Error getting/creating invitation for user_id {user_id}: {e}"+ )return Nonedef _construct_invitation_link(self, invitation_id: str, base_url: str) -> str:diff --git a/litellm/proxy/management_endpoints/ui_sso.py b/litellm/proxy/management_endpoints/ui_sso.pyindex 17e266bdeae..5a1b31aebb8 100644--- a/litellm/proxy/management_endpoints/ui_sso.py+++ b/litellm/proxy/management_endpoints/ui_sso.py@@ -214,29 +214,41 @@ def process_sso_jwt_access_token(if isinstance(result, dict):result_team_ids: Optional[List[str]] = result.get("team_ids", [])if not result_team_ids:- team_ids = sso_jwt_handler.get_team_ids_from_jwt(access_token_payload)+ team_ids = sso_jwt_handler.get_team_ids_from_jwt(+ access_token_payload+ )result["team_ids"] = team_idselse:result_team_ids = getattr(result, "team_ids", []) if result else []if not result_team_ids:- team_ids = sso_jwt_handler.get_team_ids_from_jwt(access_token_payload)+ team_ids = sso_jwt_handler.get_team_ids_from_jwt(+ access_token_payload+ )setattr(result, "team_ids", team_ids)# Extract user role from access token if not already set from UserInfo- existing_role = result.get("user_role") if isinstance(result, dict) else getattr(result, "user_role", None)+ existing_role = (+ result.get("user_role")+ if isinstance(result, dict)+ else getattr(result, "user_role", None)+ )if existing_role is None:user_role: Optional[LitellmUserRoles] = None# Try role_mappings first (group-based role determination)if role_mappings is not None and role_mappings.roles:group_claim = role_mappings.group_claim- user_groups_raw: Any = get_nested_value(access_token_payload, group_claim)+ user_groups_raw: Any = get_nested_value(+ access_token_payload, group_claim+ )user_groups: List[str] = []if isinstance(user_groups_raw, list):user_groups = [str(g) for g in user_groups_raw]elif isinstance(user_groups_raw, str):- user_groups = [g.strip() for g in user_groups_raw.split(",") if g.strip()]+ user_groups = [+ g.strip() for g in user_groups_raw.split(",") if g.strip()+ ]elif user_groups_raw is not None:user_groups = [str(user_groups_raw)]@@ -250,8 +262,12 @@ def process_sso_jwt_access_token(# Fallback: try GENERIC_USER_ROLE_ATTRIBUTE on the access token payloadif user_role is None:- generic_user_role_attribute_name = os.getenv("GENERIC_USER_ROLE_ATTRIBUTE", "role")- user_role_from_token = get_nested_value(access_token_payload, generic_user_role_attribute_name)+ generic_user_role_attribute_name = os.getenv(+ "GENERIC_USER_ROLE_ATTRIBUTE", "role"+ )+ user_role_from_token = get_nested_value(+ access_token_payload, generic_user_role_attribute_name+ )if user_role_from_token is not None:user_role = get_litellm_user_role(user_role_from_token)verbose_proxy_logger.debug(@@ -309,7 +325,7 @@ async def google_login(total_users = await prisma_client.db.litellm_usertable.count()if total_users and total_users > 5:raise ProxyException(- message="You must be a LiteLLM Enterprise user to use SSO for more than 5 users. If you have a license please set `LITELLM_LICENSE` in your env. If you want to obtain a license meet with us here: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat You are seeing this error message because You set one of `MICROSOFT_CLIENT_ID`, `GOOGLE_CLIENT_ID`, or `GENERIC_CLIENT_ID` in your env. Please unset this",+ message="You must be a LiteLLM Enterprise user to use SSO for more than 5 users. If you have a license please set `LITELLM_LICENSE` in your env. If you want to obtain a license meet with us here: https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions You are seeing this error message because You set one of `MICROSOFT_CLIENT_ID`, `GOOGLE_CLIENT_ID`, or `GENERIC_CLIENT_ID` in your env. Please unset this",type=ProxyErrorTypes.auth_error,param="premium_user",code=status.HTTP_403_FORBIDDEN,@@ -662,13 +678,11 @@ async def _setup_role_mappings() -> Optional["RoleMappings"]:import asttry:- generic_user_role_mappings_data: Dict[- LitellmUserRoles, List[str]- ] = ast.literal_eval(generic_role_mappings)+ generic_user_role_mappings_data: Dict[LitellmUserRoles, List[str]] = (+ ast.literal_eval(generic_role_mappings)+ )if isinstance(generic_user_role_mappings_data, dict):- from litellm.types.proxy.management_endpoints.ui_sso import (- RoleMappings,- )+ from litellm.types.proxy.management_endpoints.ui_sso import RoleMappingsrole_mappings_data = {"provider": "generic",@@ -770,7 +784,9 @@ async def get_generic_sso_response()access_token_str: Optional[str] = generic_sso.access_token- process_sso_jwt_access_token(access_token_str, sso_jwt_handler, result, role_mappings=role_mappings)+ process_sso_jwt_access_token(+ access_token_str, sso_jwt_handler, result, role_mappings=role_mappings+ )except Exception as e:verbose_proxy_logger.exception(@@ -1000,9 +1016,9 @@ def apply_user_info_values_to_sso_user_defined_values(else:# SSO didn't provide a valid role, fall back to DB role or defaultif user_info is None or user_info.user_role is None:- user_defined_values[- "user_role"- ] = LitellmUserRoles.INTERNAL_USER_VIEW_ONLY.value+ user_defined_values["user_role"] = (+ LitellmUserRoles.INTERNAL_USER_VIEW_ONLY.value+ )verbose_proxy_logger.debug("No SSO or DB role found, using default: INTERNAL_USER_VIEW_ONLY")@@ -1430,9 +1446,9 @@ async def insert_sso_user(if user_defined_values.get("max_budget") is None:user_defined_values["max_budget"] = litellm.max_internal_user_budgetif user_defined_values.get("budget_duration") is None:- user_defined_values[- "budget_duration"- ] = litellm.internal_user_budget_duration+ user_defined_values["budget_duration"] = (+ litellm.internal_user_budget_duration+ )if user_defined_values["user_role"] is None:user_defined_values["user_role"] = LitellmUserRoles.INTERNAL_USER_VIEW_ONLY@@ -2533,9 +2549,9 @@ class MicrosoftSSOHandler:# if user is trying to get the raw sso response for debugging, return the raw sso responseif return_raw_sso_response:- original_msft_result[- MicrosoftSSOHandler.GRAPH_API_RESPONSE_KEY- ] = user_team_ids+ original_msft_result[MicrosoftSSOHandler.GRAPH_API_RESPONSE_KEY] = (+ user_team_ids+ )original_msft_result["app_roles"] = app_rolesreturn original_msft_result or {}@@ -2654,9 +2670,9 @@ class MicrosoftSSOHandler:# Fetch user membership from Microsoft Graph APIall_group_ids = []- next_link: Optional[- str- ] = MicrosoftSSOHandler.graph_api_user_groups_endpoint+ next_link: Optional[str] = (+ MicrosoftSSOHandler.graph_api_user_groups_endpoint+ )auth_headers = {"Authorization": f"Bearer {access_token}"}page_count = 0@@ -2885,7 +2901,7 @@ async def debug_sso_login(request: Request):):if premium_user is not True:raise ProxyException(- message="You must be a LiteLLM Enterprise user to use SSO. If you have a license please set `LITELLM_LICENSE` in your env. If you want to obtain a license meet with us here: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat You are seeing this error message because You set one of `MICROSOFT_CLIENT_ID`, `GOOGLE_CLIENT_ID`, or `GENERIC_CLIENT_ID` in your env. Please unset this",+ message="You must be a LiteLLM Enterprise user to use SSO. If you have a license please set `LITELLM_LICENSE` in your env. If you want to obtain a license meet with us here: https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions You are seeing this error message because You set one of `MICROSOFT_CLIENT_ID`, `GOOGLE_CLIENT_ID`, or `GENERIC_CLIENT_ID` in your env. Please unset this",type=ProxyErrorTypes.auth_error,param="premium_user",code=status.HTTP_403_FORBIDDEN,