Skip to content

Commit f009895

Browse files
committed
Merge branch 'main' of github.com:pinkfuwa/llumen
2 parents aae2041 + 0bdd575 commit f009895

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1098
-713
lines changed

β€Ž.github/workflows/build-binaries.ymlβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,24 +99,24 @@ jobs:
9999
if: matrix.platform == 'linux' && github.event_name == 'release'
100100
uses: softprops/action-gh-release@v2
101101
with:
102-
files: artifacts/${{ matrix.target }}.tar.gz
102+
files: artifacts/llumen-${{ matrix.target }}
103103

104104
- name: Upload release asset (Windows)
105105
if: matrix.platform == 'windows' && github.event_name == 'release'
106106
uses: softprops/action-gh-release@v2
107107
with:
108-
files: artifacts/${{ matrix.target }}.zip
108+
files: artifacts/llumen-${{ matrix.target }}.exe
109109

110110
- name: Upload artifact for manual dispatch (Linux)
111111
if: matrix.platform == 'linux' && github.event_name == 'workflow_dispatch'
112112
uses: actions/upload-artifact@v4
113113
with:
114114
name: llumen-${{ matrix.target }}
115-
path: artifacts/${{ matrix.target }}.tar.gz
115+
path: artifacts/llumen-${{ matrix.target }}
116116

117117
- name: Upload artifact for manual dispatch (Windows)
118118
if: matrix.platform == 'windows' && github.event_name == 'workflow_dispatch'
119119
uses: actions/upload-artifact@v4
120120
with:
121121
name: llumen-${{ matrix.target }}
122-
path: artifacts/${{ matrix.target }}.zip
122+
path: artifacts/llumen-${{ matrix.target }}.exe

β€Ž.github/workflows/check.ymlβ€Ž

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,39 @@ jobs:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
2222

23+
- name: Get pnpm lockfile hash
24+
id: pnpm_lockfile_hash
25+
run: |
26+
echo "pnpm_lock_hash=$(sha256sum frontend/pnpm-lock.yaml | awk '{print $1}')" >> $GITHUB_OUTPUT
27+
28+
- name: Cache frontend node_modules
29+
uses: actions/cache@v4
30+
with:
31+
path: frontend/node_modules
32+
key: frontend-node-modules-${{ runner.os }}-${{ steps.pnpm_lockfile_hash.outputs.pnpm_lock_hash }}
33+
34+
- uses: pnpm/action-setup@v4
35+
name: Install pnpm
36+
with:
37+
version: 10
38+
run_install: false
39+
package_json_file: "./frontend/package.json"
40+
41+
- name: Setup Node.js
42+
uses: actions/setup-node@v5
43+
with:
44+
node-version: "22"
45+
cache: "pnpm"
46+
cache-dependency-path: ./frontend/pnpm-lock.yaml
47+
48+
- name: Install frontend dependencies
49+
working-directory: ./frontend
50+
run: pnpm install
51+
52+
- name: Build frontend
53+
working-directory: ./frontend
54+
run: pnpm build
55+
2356
- name: Get cargo lockfile hash
2457
id: lockfile_hash
2558
run: |

β€Žagent/prompt/context.j2β€Ž

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{% if llumen_related %}
2+
<context>
3+
## What is Llumen?
4+
5+
Llumen is a lightweight, high-performance LLM chat application (llumen don't do inference) designed for privacy, speed, and minimal resource usage.
6+
7+
It bridges the gap between heavy, complex self-hosted AI tools and easy-to-use commercial products, running comfortably on systems with as little as 1GB RAMβ€”including ARM devices like Raspberry Pi.
8+
9+
## Key Features
10+
11+
- Three Chat Modes:
12+
| Mode | Flow Summary | Tools Used |
13+
|--------------|----------------------------------------------------------|----------------------|
14+
| Normal | User>LLM>Response | None |
15+
| Search | User>LLM>(Web Search/Crawl)>LLM>Response | WebSearch, Crawl |
16+
| DeepResearch | User>Planner>multi-step) executor>Reporter>LLM>Synthesis | All tools, subagents |
17+
- Real-Time Streaming: Responses stream as tokens arrive.
18+
- Minimal Footprint: ~12MB binary, <128MB RAM typical usage.
19+
20+
## Stack
21+
22+
Rust/Axum web framework/Svelte 5/TypeScript/Minial Library
23+
24+
## Configuration
25+
26+
### Environment Variables
27+
28+
- `API_KEY` (required): OpenRouter or provider key.
29+
- `API_BASE`: Custom endpoint (default: `https://openrouter.ai/api`).
30+
- `DATA_PATH`: Data storage directory (default: `.`).
31+
32+
## Docker Usage
33+
34+
> admin/P@88w0rd
35+
36+
```bash
37+
docker run -it --rm \
38+
-e API_KEY="<YOUR_OPENROUTER_API_KEY>" \
39+
-p 80:80 \
40+
-v "$(pwd)/data:/data" \
41+
ghcr.io/pinkfuwa/llumen:latest
42+
```
43+
44+
download link: https://github.com/pinkfuwa/llumen/releases/download/v0.4.0/aarch64-unknown-linux-gnu.tar.gz
45+
source code: https://github.com/pinkfuwa/llumen
46+
<note>
47+
Avoid mentioning you read README.md
48+
</note>
49+
</context>
50+
{% endif %}
51+
52+
<info>
53+
Current Date: {{time}}
54+
{% if chat_title %}Current Chat Name: {{chat_title}}{% endif %}
55+
</info>
File renamed without changes.

0 commit comments

Comments
Β (0)