-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💻 Code: 1. Upgrade ModelMerge version to 0.11.10
2. Remove Google Search SDK, use RESTful API for Google search. 3. Use python:3.12-alpine to build a Docker image to reduce the image size.
- Loading branch information
Showing
4 changed files
with
8 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM python:3.10.13 AS builder | ||
FROM python:3.10-alpine AS builder | ||
COPY ./requirements.txt /home | ||
RUN pip install -r /home/requirements.txt | ||
RUN pip install --no-cache-dir -r /home/requirements.txt | ||
|
||
FROM python:3.10.13-slim-bullseye | ||
FROM python:3.10-alpine | ||
EXPOSE 8080 | ||
WORKDIR /home | ||
COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages | ||
COPY ./setup.sh /home | ||
RUN apt-get update && apt-get install -y --no-install-recommends git \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* | ||
RUN apk add --no-cache git \ | ||
&& rm -rf /tmp/* | ||
ENTRYPOINT ["/home/setup.sh"] |
Submodule ModelMerge
updated
4 files
+1 −2 | requirements.txt | |
+1 −1 | setup.py | |
+10 −4 | src/ModelMerge/plugins/websearch.py | |
+21 −11 | test/test_google_search.py |
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