-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from wandb/task/upgrades-9-24
Update frontend deps, setup uv, add support for custom endpoint, README
- Loading branch information
Showing
10 changed files
with
6,763 additions
and
2,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
openui | ||
3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
# Build the virtualenv as a separate step: Only re-execute this step when pyproject.toml changes | ||
FROM python:3.12-bookworm AS build-venv | ||
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS builder | ||
|
||
WORKDIR /build | ||
COPY pyproject.toml . | ||
COPY README.md . | ||
|
||
RUN mkdir -p openui/util && \ | ||
python -m venv /venv && \ | ||
/venv/bin/pip install --upgrade pip setuptools wheel && \ | ||
/venv/bin/pip install --disable-pip-version-check .[litellm] | ||
WORKDIR /app | ||
|
||
# Copy the virtualenv into a distroless image | ||
FROM python:3.12-slim-bookworm | ||
ENV UV_LINK_MODE=copy UV_COMPILE_BYTECODE=1 | ||
|
||
ENV PATH="/venv/bin:$PATH" | ||
RUN --mount=type=cache,target=/root/.cache/uv \ | ||
--mount=type=bind,source=uv.lock,target=uv.lock \ | ||
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \ | ||
uv sync --frozen --extra litellm --no-install-project --no-dev | ||
|
||
COPY --from=build-venv /venv /venv | ||
COPY . /app | ||
|
||
RUN --mount=type=cache,target=/root/.cache/uv \ | ||
uv sync --frozen --extra litellm --no-dev | ||
|
||
# Copy the virtualenv into a distroless image | ||
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install --no-deps -U /app | ||
COPY --from=builder --chown=app:app /app /app | ||
|
||
ENV PATH="/app/.venv/bin:$PATH" | ||
|
||
ENTRYPOINT ["python", "-m", "openui", "--litellm"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.