浏览代码

fix: DATA_DIR was not respected when loading litellm configs

Jun Siang Cheah 1 年之前
父节点
当前提交
58bead0398
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/apps/litellm/main.py

+ 1 - 1
backend/apps/litellm/main.py

@@ -96,7 +96,7 @@ async def run_background_process(command):
 async def start_litellm_background():
     log.info("start_litellm_background")
     # Command to run in the background
-    command = f"litellm --port {LITELLM_PROXY_PORT} --host {LITELLM_PROXY_HOST} --telemetry False --config ./data/litellm/config.yaml"
+    command = f"litellm --port {LITELLM_PROXY_PORT} --host {LITELLM_PROXY_HOST} --telemetry False --config {LITELLM_CONFIG_DIR}"
 
     await run_background_process(command)