mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
add semantic_router
This commit is contained in:
parent
ea2ae786c6
commit
537b672887
3 changed files with 6 additions and 1 deletions
|
|
@ -35,6 +35,8 @@ RUN pip install dist/*.whl
|
|||
|
||||
# install dependencies as wheels
|
||||
RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt
|
||||
# install semantic_router without dependencies to avoid litellm conflict
|
||||
RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ --no-deps semantic_router==0.1.10
|
||||
|
||||
# ensure pyjwt is used, not jwt
|
||||
RUN pip uninstall jwt -y
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ RUN pip install dist/*.whl
|
|||
|
||||
# install dependencies as wheels
|
||||
RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt
|
||||
# install semantic_router without dependencies to avoid litellm conflict
|
||||
RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ --no-deps semantic_router==0.1.10
|
||||
|
||||
# Runtime stage
|
||||
FROM $LITELLM_RUNTIME_IMAGE AS runtime
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
|
|||
# Build package and wheel dependencies
|
||||
RUN rm -rf dist/* && python -m build && \
|
||||
pip install dist/*.whl && \
|
||||
pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt
|
||||
pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt && \
|
||||
pip wheel --no-cache-dir --wheel-dir=/wheels/ --no-deps semantic_router==0.1.10
|
||||
|
||||
# -----------------
|
||||
# Runtime Stage
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue