Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
reorganize directories
Jeffrey Morganb361fa72ecd2
diff --git a/.gitignore b/.gitignoreindex 94f1119ef..aee3f4231 100644--- a/.gitignore+++ b/.gitignore@@ -1,2 +1,7 @@.DS_Store.vscode+.env+.venv+*.spec+build+distdiff --git a/README.md b/README.mdindex bc9631205..65e0bd973 100644--- a/README.md+++ b/README.md@@ -1,8 +1,58 @@-# Prototype+# proto-## Setup+🙊++## Running++Install dependencies:```-brew install npm+pip install -r requirements.txt```+Put your model in `models/` and run:++```+python proto.py+```++To run the app:++```+cd desktop+npm install+npm start+```++## Building++If using Apple silicon, you need a Python version that supports arm64:++```bash+wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh+bash Miniforge3-MacOSX-arm64.sh+```++Get the dependencies:++```bash+pip install -r requirements.txt+```++```bash+python3 build.py+```++Then to build the app:++```+cd desktop+npm run package+```++## API++### `POST /generate`++model: `string` - The name of the model to use in the `models` folder.+prompt: `string` - The prompt to use.diff --git a/server/build.py b/build.pysimilarity index 96%rename from server/build.pyrename to build.pyindex f1fecafdc..ec00ff9d0 100644--- a/server/build.py+++ b/build.py@@ -7,7 +7,7 @@ site_packages_dir = site.getsitepackages()[0]llama_cpp_dir = os.path.join(site_packages_dir, "llama_cpp")args = [- "server.py",+ "proto.py","--paths",site_packages_dir,"--add-data",@@ -17,4 +17,3 @@ args = [# generate the .spec file and run PyInstallerpyi_run(args)-diff --git a/client/.eslintrc.json b/desktop/.eslintrc.jsonsimilarity index 100%rename from client/.eslintrc.jsonrename to desktop/.eslintrc.jsondiff --git a/client/.gitignore b/desktop/.gitignoresimilarity index 100%rename from client/.gitignorerename to desktop/.gitignorediff --git a/.prettierrc.json b/desktop/.prettierrc.jsonsimilarity index 100%rename from .prettierrc.jsonrename to desktop/.prettierrc.jsondiff --git a/client/forge.config.ts b/desktop/forge.config.tssimilarity index 100%rename from client/forge.config.tsrename to desktop/forge.config.tsdiff --git a/client/images/icon.icns b/desktop/images/icon.icnssimilarity index 100%rename from client/images/icon.icnsrename to desktop/images/icon.icnsdiff --git a/client/package-lock.json b/desktop/package-lock.jsonsimilarity index 100%rename from client/package-lock.jsonrename to desktop/package-lock.jsondiff --git a/client/package.json b/desktop/package.jsonsimilarity index 100%rename from client/package.jsonrename to desktop/package.jsondiff --git a/client/postcss.config.js b/desktop/postcss.config.jssimilarity index 100%rename from client/postcss.config.jsrename to desktop/postcss.config.jsdiff --git a/client/src/app.css b/desktop/src/app.csssimilarity index 100%rename from client/src/app.cssrename to desktop/src/app.cssdiff --git a/client/src/app.tsx b/desktop/src/app.tsxsimilarity index 100%rename from client/src/app.tsxrename to desktop/src/app.tsxdiff --git a/client/src/index.html b/desktop/src/index.htmlsimilarity index 100%rename from client/src/index.htmlrename to desktop/src/index.htmldiff --git a/client/src/index.ts b/desktop/src/index.tssimilarity index 100%rename from client/src/index.tsrename to desktop/src/index.tsdiff --git a/client/src/preload.ts b/desktop/src/preload.tssimilarity index 100%rename from client/src/preload.tsrename to desktop/src/preload.tsdiff --git a/client/src/renderer.tsx b/desktop/src/renderer.tsxsimilarity index 100%rename from client/src/renderer.tsxrename to desktop/src/renderer.tsxdiff --git a/client/tailwind.config.js b/desktop/tailwind.config.jssimilarity index 100%rename from client/tailwind.config.jsrename to desktop/tailwind.config.jsdiff --git a/client/tsconfig.json b/desktop/tsconfig.jsonsimilarity index 100%rename from client/tsconfig.jsonrename to desktop/tsconfig.jsondiff --git a/client/webpack.main.config.ts b/desktop/webpack.main.config.tssimilarity index 100%rename from client/webpack.main.config.tsrename to desktop/webpack.main.config.tsdiff --git a/client/webpack.plugins.ts b/desktop/webpack.plugins.tssimilarity index 100%rename from client/webpack.plugins.tsrename to desktop/webpack.plugins.tsdiff --git a/client/webpack.renderer.config.ts b/desktop/webpack.renderer.config.tssimilarity index 100%rename from client/webpack.renderer.config.tsrename to desktop/webpack.renderer.config.tsdiff --git a/client/webpack.rules.ts b/desktop/webpack.rules.tssimilarity index 100%rename from client/webpack.rules.tsrename to desktop/webpack.rules.tsdiff --git a/server/server.py b/proto.pysimilarity index 100%rename from server/server.pyrename to proto.pydiff --git a/server/requirements.txt b/requirements.txtsimilarity index 100%rename from server/requirements.txtrename to requirements.txtdiff --git a/server/.gitignore b/server/.gitignoredeleted file mode 100644index 1b1d3c683..000000000--- a/server/.gitignore+++ /dev/null@@ -1,5 +0,0 @@-.env-.venv-*.spec-build-distdiff --git a/server/README.md b/server/README.mddeleted file mode 100644index ea9ba6c3a..000000000--- a/server/README.md+++ /dev/null@@ -1,39 +0,0 @@-# Server--🙊--## Installation--If using Apple silicon, you need a Python version that supports arm64:--```bash-wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh-bash Miniforge3-MacOSX-arm64.sh-```--Get the dependencies:--```bash-pip install -r requirements.txt-```--## Building--```bash-python3 build.py-```--## Running--Put your model in `models/` and run:--```bash-python server.py-```--## API--### `POST /generate`--model: `string` - The name of the model to use in the `models` folder.-prompt: `string` - The prompt to use.