feat: add LITELLM_PROXY_HOST to configure address litellm listens on

This commit is contained in:
Jun Siang Cheah
2024-04-23 19:19:16 +01:00
parent 0ea9e19d79
commit 9e9306fd2b
2 changed files with 3 additions and 1 deletions

View File

@@ -507,3 +507,4 @@ AUDIO_OPENAI_API_KEY = os.getenv("AUDIO_OPENAI_API_KEY", OPENAI_API_KEY)
LITELLM_PROXY_PORT = int(os.getenv("LITELLM_PROXY_PORT", "14365"))
if LITELLM_PROXY_PORT < 0 or LITELLM_PROXY_PORT > 65535:
raise ValueError("Invalid port number for LITELLM_PROXY_PORT")
LITELLM_PROXY_HOST = os.getenv("LITELLM_PROXY_HOST", "127.0.0.1")