Skip to content

Commit b0f6d66

Browse files
authoredAug 1, 2024··
Add main example (chat UI) (#99)
* bootstrap main example + mockup UI * first working version * more features * add CI build step * add more models * run prettier * more models * fix build * test ci * ok
1 parent 83a2b4e commit b0f6d66

Some content is hidden

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

49 files changed

+6734
-417
lines changed
 

‎.github/workflows/generate-docs.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy docs to GitHub Pages
1+
name: Deploy docs and demo to GitHub Pages
22

33
on:
44
# Runs on pushes targeting the default branch
@@ -44,6 +44,14 @@ jobs:
4444
rm .gitignore
4545
rm -rf node_modules
4646
47+
- name: Build main example
48+
working-directory: ./examples/main
49+
run: |
50+
npm i
51+
npm run build
52+
rm .gitignore
53+
rm -rf node_modules
54+
4755
- name: Upload artifact
4856
uses: actions/upload-pages-artifact@v3
4957
with:

‎.prettierignore

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
**/.vscode
2+
**/.github
3+
**/.git
4+
**/.svn
5+
**/.hg
6+
**/node_modules
7+
**/dist
8+
**/docs
9+
10+
/llama.cpp
11+
12+
/examples/advanced
13+
/examples/basic
14+
/examples/embeddings
15+
16+
/scripts
17+
/esm
18+
/models
19+
/build
20+
21+
/src/multi-thread
22+
/src/single-thread
23+
24+
*.md
25+
*.mdx
26+
*.json
27+
*.lock
28+
*.yml
29+
*.cpp
30+
*.hpp
31+
32+
*.config.js

0 commit comments

Comments
 (0)
Please sign in to comment.