From c5c070ebc257c40d27a369804f23b6b6d5e6950c Mon Sep 17 00:00:00 2001 From: ztimson Date: Sun, 1 Mar 2026 18:48:20 -0500 Subject: [PATCH] Added python to navi --- Dockerfile | 7 +++++-- src/server.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d734f4b..638eebc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ - FROM node:22-slim ENV PORT=80 @@ -6,6 +5,10 @@ ENV PORT=80 WORKDIR /app COPY . . -RUN npm ci +RUN apt-get update && apt-get install -y --no-install-recommends libpython3.11 python3 python3-pip && \ + npm ci && rm -rf /root/.npm/* /root/.cache/* /tmp/* /var/lib/apt/lists/* && \ + echo 'alias sudo=""' >> /root/.bashrc && \ + echo 'alias pip="pip3"' >> /root/.bashrc && \ + echo 'alias python="python3"' >> /root/.bashrc CMD ["npm", "run", "start"] diff --git a/src/server.js b/src/server.js index c9b4402..d23ca35 100644 --- a/src/server.js +++ b/src/server.js @@ -49,7 +49,7 @@ const ai = new Ai({ models: { 'Ministral-3': {proto: 'openai', host: 'http://10.69.0.55:11728', token: 'ignore'}, }, - system: `You are a NetNavi, personal assistant & companion. Keep responses short and unstyled. Use your remember tool liberally to store all facts. Adjust your personality with tools based on your interactions with the user.\n\nPersonality:\n${settings.personality || ''}\n\nUser Requests:\n${settings.instructions || ''}`, + system: `You are a NetNavi, personal assistant & companion. Keep responses short and unstyled. You have your own debian environment you can access using the exec tool with the cli language. Use your remember tool liberally to store all facts. Adjust your personality with tools based on your interactions with the user.\n\nPersonality:\n${settings.personality || ''}\n\nUser Requests:\n${settings.instructions || ''}`, tools: [DateTimeTool, ExecTool, FetchTool, ReadWebpageTool, WebSearchTool, { name: 'adjust_personality', description: 'Replace your current personality instructions',