From 6bf3a2cb3c534c564c407ac94099382fe1311b8e Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 6 Aug 2024 11:33:23 -0700 Subject: [PATCH] docs(prod.md): add litellm salt key to prod docs --- docs/my-website/docs/proxy/prod.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/my-website/docs/proxy/prod.md b/docs/my-website/docs/proxy/prod.md index b59360a4f39..654d8cc2d86 100644 --- a/docs/my-website/docs/proxy/prod.md +++ b/docs/my-website/docs/proxy/prod.md @@ -84,6 +84,20 @@ Set `export LITELLM_MODE="PRODUCTION"` This disables the load_dotenv() functionality, which will automatically load your environment credentials from the local `.env`. +## 5. Set LiteLLM Salt Key + +If you plan on using the DB, set a salt key for encrypting/decrypting variables in the DB. + +Do not change this after adding a model. It is used to encrypt / decrypt your LLM API Key credentials + +We recommned - https://1password.com/password-generator/ password generator to get a random hash for litellm salt key. + +```bash +export LITELLM_SALT_KEY="sk-1234" +``` + +[**See Code**](https://github.com/BerriAI/litellm/blob/036a6821d588bd36d170713dcf5a72791a694178/litellm/proxy/common_utils/encrypt_decrypt_utils.py#L15) + ## Extras ### Expected Performance in Production