From 74b14d5febbea231ec9f5e38b5aa53b59ffb0631 Mon Sep 17 00:00:00 2001 From: arch3rPro Date: Fri, 3 Apr 2026 15:07:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(litellm):=20=E6=B7=BB=E5=8A=A0v1.83.0-nigh?= =?UTF-8?q?tly=E7=89=88=E6=9C=AC=E5=B9=B6=E6=9B=B4=E6=96=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新latest版本的docker-compose.yml和data.yml配置,添加v1.83.0-nightly版本的配置文件 将LITELLM_MASTER_KEY字段类型改为password并更新默认值 --- apps/litellm/latest/data.yml | 8 +++--- apps/litellm/latest/data/.gitkeep | 0 apps/litellm/latest/docker-compose.yml | 24 ++++++++--------- apps/litellm/latest/prometheus.yml | 2 +- .../data.yml | 8 +++--- apps/litellm/v1.83.0-nightly/data/.gitkeep | 0 .../docker-compose.yml | 26 +++++++++---------- .../prometheus.yml | 2 +- 8 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 apps/litellm/latest/data/.gitkeep rename apps/litellm/{main-v1.82.6-nightly => v1.83.0-nightly}/data.yml (75%) create mode 100644 apps/litellm/v1.83.0-nightly/data/.gitkeep rename apps/litellm/{main-v1.82.6-nightly => v1.83.0-nightly}/docker-compose.yml (62%) rename apps/litellm/{main-v1.82.6-nightly => v1.83.0-nightly}/prometheus.yml (52%) diff --git a/apps/litellm/latest/data.yml b/apps/litellm/latest/data.yml index 17c2a8d..a28508c 100644 --- a/apps/litellm/latest/data.yml +++ b/apps/litellm/latest/data.yml @@ -9,13 +9,13 @@ additionalProperties: type: number edit: true rule: paramPort - - default: sk-1234 + - default: sk-litellm-change-in-production envKey: LITELLM_MASTER_KEY label: en: LITELLM_MASTER_KEY zh: LITELLM密钥 required: true - type: text + type: password edit: true - rule: paramCommon - values: [] + rule: paramComplexity + random: true diff --git a/apps/litellm/latest/data/.gitkeep b/apps/litellm/latest/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/litellm/latest/docker-compose.yml b/apps/litellm/latest/docker-compose.yml index b114e3d..685eaca 100644 --- a/apps/litellm/latest/docker-compose.yml +++ b/apps/litellm/latest/docker-compose.yml @@ -10,19 +10,19 @@ services: # - "--config=/app/config.yaml" ############################################## ports: - - ${PANEL_APP_PORT_HTTP}:4000 # Map the container port to the host, change the host port if necessary + - "${PANEL_APP_PORT_HTTP}:4000" environment: DATABASE_URL: "postgresql://llmproxy:dbpassword9090@db:5432/litellm" - STORE_MODEL_IN_DB: "True" # allows adding models to proxy via UI + STORE_MODEL_IN_DB: "True" LITELLM_MASTER_KEY: ${LITELLM_MASTER_KEY} depends_on: - - db # Indicates that this service depends on the 'db' service, ensuring 'db' starts first - healthcheck: # Defines the health check configuration for the container - test: [ "CMD-SHELL", "wget --no-verbose --tries=1 http://localhost:4000/health/liveliness || exit 1" ] # Command to execute for health check - interval: 30s # Perform health check every 30 seconds - timeout: 10s # Health check command times out after 10 seconds - retries: 3 # Retry up to 3 times if health check fails - start_period: 40s # Wait 40 seconds after container start before beginning health checks + - db + healthcheck: + test: [ "CMD-SHELL", "wget --no-verbose --tries=1 http://localhost:4000/health/liveliness || exit 1" ] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s networks: - 1panel-network @@ -39,7 +39,7 @@ services: ports: - "5432:5432" volumes: - - postgres_data:/var/lib/postgresql/data # Persists Postgres data across container restarts + - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -d litellm -U llmproxy"] interval: 1s @@ -72,8 +72,8 @@ volumes: prometheus_data: driver: local postgres_data: - name: litellm_postgres_data # Named volume for Postgres data persistence + name: litellm_postgres_data networks: 1panel-network: - external: true \ No newline at end of file + external: true diff --git a/apps/litellm/latest/prometheus.yml b/apps/litellm/latest/prometheus.yml index 5cb4f90..8672fc5 100644 --- a/apps/litellm/latest/prometheus.yml +++ b/apps/litellm/latest/prometheus.yml @@ -4,4 +4,4 @@ global: scrape_configs: - job_name: 'litellm' static_configs: - - targets: ['litellm:4000'] # Assuming Litellm exposes metrics at port 4000 + - targets: ['litellm:4000'] diff --git a/apps/litellm/main-v1.82.6-nightly/data.yml b/apps/litellm/v1.83.0-nightly/data.yml similarity index 75% rename from apps/litellm/main-v1.82.6-nightly/data.yml rename to apps/litellm/v1.83.0-nightly/data.yml index 17c2a8d..a28508c 100644 --- a/apps/litellm/main-v1.82.6-nightly/data.yml +++ b/apps/litellm/v1.83.0-nightly/data.yml @@ -9,13 +9,13 @@ additionalProperties: type: number edit: true rule: paramPort - - default: sk-1234 + - default: sk-litellm-change-in-production envKey: LITELLM_MASTER_KEY label: en: LITELLM_MASTER_KEY zh: LITELLM密钥 required: true - type: text + type: password edit: true - rule: paramCommon - values: [] + rule: paramComplexity + random: true diff --git a/apps/litellm/v1.83.0-nightly/data/.gitkeep b/apps/litellm/v1.83.0-nightly/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/litellm/main-v1.82.6-nightly/docker-compose.yml b/apps/litellm/v1.83.0-nightly/docker-compose.yml similarity index 62% rename from apps/litellm/main-v1.82.6-nightly/docker-compose.yml rename to apps/litellm/v1.83.0-nightly/docker-compose.yml index 9eafe38..d82bbe8 100644 --- a/apps/litellm/main-v1.82.6-nightly/docker-compose.yml +++ b/apps/litellm/v1.83.0-nightly/docker-compose.yml @@ -1,6 +1,6 @@ services: litellm: - image: ghcr.io/berriai/litellm:main-v1.82.6-nightly + image: ghcr.io/berriai/litellm:v1.83.0-nightly container_name: ${CONTAINER_NAME} ######################################### ## Uncomment these lines to start proxy with a config.yaml file ## @@ -10,19 +10,19 @@ services: # - "--config=/app/config.yaml" ############################################## ports: - - ${PANEL_APP_PORT_HTTP}:4000 # Map the container port to the host, change the host port if necessary + - "${PANEL_APP_PORT_HTTP}:4000" environment: DATABASE_URL: "postgresql://llmproxy:dbpassword9090@db:5432/litellm" - STORE_MODEL_IN_DB: "True" # allows adding models to proxy via UI + STORE_MODEL_IN_DB: "True" LITELLM_MASTER_KEY: ${LITELLM_MASTER_KEY} depends_on: - - db # Indicates that this service depends on the 'db' service, ensuring 'db' starts first - healthcheck: # Defines the health check configuration for the container - test: [ "CMD-SHELL", "wget --no-verbose --tries=1 http://localhost:4000/health/liveliness || exit 1" ] # Command to execute for health check - interval: 30s # Perform health check every 30 seconds - timeout: 10s # Health check command times out after 10 seconds - retries: 3 # Retry up to 3 times if health check fails - start_period: 40s # Wait 40 seconds after container start before beginning health checks + - db + healthcheck: + test: [ "CMD-SHELL", "wget --no-verbose --tries=1 http://localhost:4000/health/liveliness || exit 1" ] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s networks: - 1panel-network @@ -39,7 +39,7 @@ services: ports: - "5432:5432" volumes: - - postgres_data:/var/lib/postgresql/data # Persists Postgres data across container restarts + - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -d litellm -U llmproxy"] interval: 1s @@ -72,8 +72,8 @@ volumes: prometheus_data: driver: local postgres_data: - name: litellm_postgres_data # Named volume for Postgres data persistence + name: litellm_postgres_data networks: 1panel-network: - external: true \ No newline at end of file + external: true diff --git a/apps/litellm/main-v1.82.6-nightly/prometheus.yml b/apps/litellm/v1.83.0-nightly/prometheus.yml similarity index 52% rename from apps/litellm/main-v1.82.6-nightly/prometheus.yml rename to apps/litellm/v1.83.0-nightly/prometheus.yml index 5cb4f90..8672fc5 100644 --- a/apps/litellm/main-v1.82.6-nightly/prometheus.yml +++ b/apps/litellm/v1.83.0-nightly/prometheus.yml @@ -4,4 +4,4 @@ global: scrape_configs: - job_name: 'litellm' static_configs: - - targets: ['litellm:4000'] # Assuming Litellm exposes metrics at port 4000 + - targets: ['litellm:4000']