mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
Ports the Task Insights feature from litellm_task_insights_poc (b11cf90c4b) onto07c7229895so the seeded demo can reuse the published multi-arch image built from that commit for the compiled extension and Python dependencies. litellm/accounting/worker.py, litellm/repositories/accounting_delivery_repository.py and litellm/proxy/deps/repositories.py are adapted by hand to the older accounting worker. The feature's tests come along except tests/unit/accounting/test_worker.py, which does not exist at this base. docker/task_insights/demo.sh builds the preview image (dashboard only, 4 GiB Node heap), starts Postgres, Redis and the gateway in their own Compose project on localhost, seeds sample data and says how to sign in. It writes random credentials only when missing, refuses a busy port, and keeps the database on stop. The image build fails when the base image's compiled extension lacks a function the Python package expects. Only the seeded flow is verified on this branch. Live discovery and bucketing were verified on the feature branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
575 B
YAML
27 lines
575 B
YAML
# Seeded preview overrides for docker/task_insights/demo.sh: build Dockerfile.light instead of compiling LiteLLM.
|
|
x-logs: &logs
|
|
driver: json-file
|
|
options:
|
|
max-size: 10m
|
|
max-file: "3"
|
|
|
|
x-preview: &preview
|
|
image: litellm-task-insights:demo
|
|
pull_policy: never
|
|
read_only: false
|
|
|
|
services:
|
|
litellm:
|
|
<<: *preview
|
|
build:
|
|
context: ../..
|
|
dockerfile: docker/task_insights/Dockerfile.light
|
|
target: preview
|
|
task-insights-seed:
|
|
<<: *preview
|
|
task-insights-traffic:
|
|
<<: *preview
|
|
db:
|
|
logging: *logs
|
|
redis:
|
|
logging: *logs
|