Skip to content

Commit dae3bef

Browse files
authored
Update/next2 (#3)
* use single open-webui ollama image * Update bundling process to use Deno emit module * Update long description and version bump
1 parent 19c04f8 commit dae3bef

File tree

5 files changed

+17
-33
lines changed

5 files changed

+17
-33
lines changed

Dockerfile

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,20 @@
1-
FROM ghcr.io/open-webui/open-webui:0.3.10 AS gui
2-
FROM ollama/ollama:0.2.8 AS ollama
3-
4-
COPY --from=gui /app /app
5-
# COPY --from=gui /root/.cache/chroma/onnx_models/all-MiniLM-L6-v2/onnx /root/.cache/chroma/onnx_models/all-MiniLM-L6-v2/onnx
6-
7-
WORKDIR /app/backend
8-
9-
RUN apt-get update && \
10-
apt-get install -y --no-install-recommends python3.11 python3-pip pandoc netcat-openbsd curl ffmpeg libsm6 libxext6 && \
11-
rm -rf /var/lib/apt/lists/* && \
12-
mkdir -p /root/.cache/chroma/onnx_models/all-MiniLM-L6-v2 && \
13-
chown root:root -R /root/.cache/chroma && \
14-
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir && \
15-
pip3 install -r requirements.txt --no-cache-dir
16-
# python -c "import os; from sentence_transformers import SentenceTransformer; SentenceTransformer(os.environ['RAG_EMBEDDING_MODEL'], device='cpu')" && \
17-
# python -c "import os; from faster_whisper import WhisperModel; WhisperModel(os.environ['WHISPER_MODEL'], device='cpu', compute_type='int8', download_root=os.environ['WHISPER_MODEL_DIR'])"
1+
FROM ghcr.io/open-webui/open-webui:0.5.7-ollama
182

193
ADD ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
204
RUN chmod a+x /usr/local/bin/docker_entrypoint.sh
215
COPY icon.png /app/build/static/favicon.png
226
COPY icon.png /app/build/static/splash.png
237
COPY icon.png /app/build/static/splash-dark.png
248

25-
RUN sed -i 's/WEBUI_NAME != "Open WebUI"/WEBUI_NAME != "FreeGPT-2"/g' /app/backend/config.py
26-
RUN sed -i 's#WEBUI_FAVICON_URL = "https://openwebui.com/favicon.png"#WEBUI_FAVICON_URL = "/static/favicon.png"#g' /app/backend/config.py
27-
RUN sed -i 's/flex w-full justify-between items-center/flex w-full justify-between items-center hidden/g' /app/build/_app/immutable/nodes/2.*.js
9+
# RUN sed -i 's/WEBUI_NAME = data\["name"\]/WEBUI_NAME = "FreeGPT-2"/g' /app/backend/open_webui/config.py
10+
# RUN sed -i 's#WEBUI_FAVICON_URL = "https://openwebui.com/favicon.png"#WEBUI_FAVICON_URL = "/static/favicon.png"#g' /app/backend/open_webui/config.py
11+
# RUN sed -i 's/flex w-full justify-between items-center/flex w-full justify-between items-center hidden/g' /app/build/_app/immutable/nodes/2.*.js
2812
ADD ./scripts/check-ui.sh /usr/local/bin/check-ui.sh
2913
RUN chmod a+x /usr/local/bin/check-ui.sh
3014

3115
ENV ENV=prod
32-
ENV OPENAI_API_BASE_URL=""
33-
ENV OPENAI_API_KEY=""
3416
ENV WEBUI_NAME="FreeGPT-2"
35-
ENV WEBUI_SECRET_KEY=""
17+
ENV WEBUI_FAVICON_URL="/app/build/static/favicon.png"
3618
ENV SCARF_NO_ANALYTICS=true
3719
ENV DO_NOT_TRACK=true
38-
ENV RAG_EMBEDDING_MODEL="all-MiniLM-L6-v2"
39-
ENV RAG_EMBEDDING_MODEL_DEVICE_TYPE="cpu"
20+
ENV RAG_EMBEDDING_MODEL_DEVICE_TYPE="cpu"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ clean-manifest:
2828
@echo; echo "Comments successfully removed from manifest.yaml file."; echo
2929

3030
scripts/embassy.js: $(TS_FILES)
31-
deno bundle scripts/embassy.ts scripts/embassy.js
31+
deno run --allow-read --allow-write --allow-env --allow-net scripts/bundle.ts
3232

3333
arm:
3434
@rm -f docker-images/x86_64.tar

manifest.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
id: free-gpt
22
title: "FreeGPT-2"
3-
version: 2.208.0310
3+
version: 2.507.0507
44
release-notes: |
55
- Ollama update to the latest version
66
- Updated UI to use latest version of Open WebUI
7-
- Added support for NuExtract, Mathstral, GLM-4, CodeGeeX4 and Gemma 2 models.
8-
- 🎙️ Hands-Free Voice Call Feature: Initiate voice calls without needing to use your hands, making interactions more seamless.
9-
- 🎛️ Enhanced UI for Voice Recording: Improved user interface for the voice recording feature, making it more intuitive and user-friendly.
10-
- And many, many more ...
7+
- Update bundling process to use Deno emit module
118
license: MIT
129
wrapper-repo: "https://github.com/Start9Labs/freegpt2-startos"
1310
upstream-repo: "https://github.com/Start9Labs/freegpt2-startos"
@@ -17,7 +14,7 @@ build: ["make"]
1714
description:
1815
short: FreeGPT-2 is a tool for running large language models locally.
1916
long: |
20-
FreeGPT-2 simplifies local language model usage. Get you up and running with Llama 2, Mistral, Llava and other large language models in an self sovereign fashion.
17+
FreeGPT-2 combines the power of Ollama for running large language models locally with the user-friendly interface of Open WebUI. This combination provides a clean and intuitive experience for working with locally hosted language models in a sovereign fashion.
2118
assets:
2219
license: LICENSE
2320
icon: icon.png

scripts/bundle.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// scripts/bundle.ts
2+
import { bundle } from "https://deno.land/x/emit@0.40.0/mod.ts";
3+
4+
const result = await bundle("scripts/embassy.ts");
5+
6+
await Deno.writeTextFile("scripts/embassy.js", result.code);

scripts/procedures/migrations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { compat, types as T } from "../deps.ts";
22

33
export const migration: T.ExpectedExports.migration = compat.migrations
4-
.fromMapping({}, "2.208.0310" );
4+
.fromMapping({}, "2.507.0507" );

0 commit comments

Comments
 (0)